great-sunset-355
10/07/2023, 7:52 AMnodejs
module exports?
To me, it looks like an unfortunate design choice. Because these have nothing to do with each other.little-cartoon-10569
10/07/2023, 8:00 PMclever-sunset-76585
10/07/2023, 11:46 PMnodejs
runtime perhaps need not have used module exports in the top-level file, i.e. your main file, but the alternative would be to do what is done in the other languages i.e. to expose a Pulumi runtime function that you have to call to export outputs. To me, using the language-provided way to export stack outputs feels natural.great-sunset-355
10/08/2023, 9:52 AMpulumi.export
function available in other languages because that does not clash with the language design.clever-sunset-76585
10/08/2023, 9:56 AM