great-sunset-35510/07/2023, 7:52 AM
module exports? To me, it looks like an unfortunate design choice. Because these have nothing to do with each other.
little-cartoon-1056910/07/2023, 8:00 PM
clever-sunset-7658510/07/2023, 11:46 PM
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-35510/08/2023, 9:52 AM
function available in other languages because that does not clash with the language design.
clever-sunset-7658510/08/2023, 9:56 AM