great-sunset-355
03/05/2023, 12:35 PMtsc
my package also contains .ts
files. How can I exclude .ts
files from the artifact?
I tried to look at synced folder repo for example.
But I when I compile my code into the bin
folder it does not contain package.json
like here https://github.com/pulumi/pulumi-synced-folder/blob/main/.github/workflows/release.yaml#LL132C11-L132C69
what step am I missing to get the package.json inside bin
?little-cartoon-10569
03/05/2023, 8:11 PMgreat-sunset-355
03/05/2023, 10:15 PMCommonJS
and NodeNext
ESM imports
https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs
It looks like you mess with the paths for imports
https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs
I will try to play around and see if I can get it working with pulumi. According to issues on github it should be supported since ~3.22.0little-cartoon-10569
03/05/2023, 11:04 PMnodeLinker: node-modules
in your Yarn config, if you use Yarn2.runtime:
name: nodejs
options:
nodeargs: "--loader ts-node/esm --no-warnings"