few-postman-20852
03/24/2023, 2:59 PMstocky-restaurant-98004
03/24/2023, 4:30 PMfew-postman-20852
03/25/2023, 9:00 AMpulumi.export("outputname", value)
in order to export the value. In javascript/typescript, you need to do a variable export like export const outputname = value
. The problem is that when you import this variable somewhere else, you are also running the rest of the code in the same file, not only importing the variable value. In the same file other infra oprations may be executed, which can cause trouble.
If instead there could be a way to do like python and export the value by explictly running the command I would avoid doing exports for things that should be exported as stack outputs. Today I need to export the value and export again in the index.ts
in order to have it as an output, like export {outputname} from "./resources/someResource"
.stocky-restaurant-98004
03/28/2023, 1:26 PMfew-postman-20852
04/04/2023, 11:58 AMstocky-restaurant-98004
04/04/2023, 3:00 PMfew-postman-20852
04/20/2023, 6:27 AMstocky-restaurant-98004
04/20/2023, 7:35 PM