sparse-intern-71089
11/24/2020, 10:46 PMbillowy-army-68599
export const foo = bar in a library file, and it's registering as a stack output, you just want it to be an exported method, right?salmon-honey-75627
11/24/2020, 10:49 PMbillowy-army-68599
export class foo extends pulumi.ComponentResource {
  // all my resources here
}
you can than set public functions on that component resource
public bar(): Output<string> {
        return this.resource.id;
    }
that way I can just import that into my main library. Is that an option? if it's not, i can get you some help from someone a bit more versed in this 🙂salmon-honey-75627
11/24/2020, 10:55 PMsalmon-honey-75627
11/24/2020, 10:55 PMbillowy-army-68599
salmon-honey-75627
11/24/2020, 10:57 PMindex.ts , it seemed like a good time to look into breaking everything downlittle-cartoon-10569
11/24/2020, 11:09 PMaliases: [{parent: this}] to be very useful to prevent Pulumi from deleting and re-creating all my moving resources...hundreds-musician-51496
11/24/2020, 11:32 PMindex.js becomes your stack outputs. Does index.js have a single exported function, with type pulumi.Output<...> or Promise<pulum.Output<...>>? If not, maybe you are getting some weird export behavior.hundreds-musician-51496
11/24/2020, 11:33 PMlittle-cartoon-10569
11/25/2020, 12:21 AMComponentResource helps with.salmon-honey-75627
11/25/2020, 1:49 AMsalmon-honey-75627
11/25/2020, 1:50 AM