mirror of https://github.com/pulumi/pulumi.git
6bc7b1cc67
This follows up on the changes in #7764 with three additions: * Support for passing args directly to node so that ESM loaders and other node process level configuration can be accessed via Pulumi * Support the same default behaviour for loading a ESM module from Pulumi as for node <program>, including support for resolving main entrypoint from package folder. * Add test cases for .js, pre-complied .ts and ts-node-based `.ts. This includes test cases that show how to use top-level await in Node.js (which is only possible inside ESM), addressing #5161. Using ESM via the default ts-node-based TypeScript support is a little tricky, as it is dependent on experimental loader hook support in Node, upon which partially in-progress ts-node support has been added. We cannot make these the default experience yet, but the examples here show how users can configure things themselves to access these features. Once this support solidifies and we can rely on it in all supported Node and TypeScript versions, we may be able to update templates to support more of this by default. |
||
---|---|---|
.. | ||
src | ||
Pulumi.yaml | ||
package.json |