pulumi/tests/integration/nodejs
Julien 719cfb116f
Fix dependency installation for nodejs projects with a main property (#17391)
After running the package manager installation, we check that a
`node_modules` directory exists. This check was done relative to the
"Program Directory", however the `node_modules` directory is created
next to `package.json`, which itself is often in the "Project
Directory". When `Pulumi.yaml` specifies a `main` property, these two
directories are different, and the check fails.

We probably did not run into this earlier, because for nodejs you often
don't use Pulumi's `main`, but instead use the nodejs `main` in
`package.json`.

Fixes https://github.com/pulumi/pulumi/issues/17292
2024-09-26 15:22:28 +00:00
..
codepaths Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-nested Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-no-dependencies [sdk/nodejs] Allow missing package.json dependencies (#16433) 2024-06-21 10:04:12 +00:00
codepaths-tsc Fix codepaths computation when working dir is nested relative to package.json (#15601) 2024-03-08 16:16:47 +00:00
codepaths-workspaces Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-workspaces-tsc Fix codepaths computation when working dir is nested relative to package.json (#15601) 2024-03-08 16:16:47 +00:00
compiler_options [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-js [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-js-main [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-package-json-in-parent-dir-without-main [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
esm-srcdir-ts Regenerate test `package-lock.json` files (#16387) 2024-06-13 10:52:59 +00:00
esm-ts [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-ts-compiled Bump nodejs integration test version 2022-11-15 16:36:18 -08:00
esm-ts-default-export [sdk/nodejs] Support top-level default exports in ESM (#8766) 2022-01-22 18:33:28 -08:00
esm-ts-nested-src [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
esm-ts-specifier-resolution-node [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-with-package-json-in-parent-dir [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
main-overrides-package-json Only look for main in package.json if no entyrpoint was set via Pulumi.yaml (#16363) 2024-06-11 11:36:34 +00:00
npm-and-yarn-not-a-workspace Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
npm-and-yarn-workspaces Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
omit-stacktrace updated error message to catch syntax errors (#10465) 2022-08-23 21:33:29 -05:00
oom Fix NodeJS OOM detection condition (#17045) 2024-08-22 15:06:16 +00:00
package-json-in-parent-dir-without-main [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
parameterized Add packageReferences feature flag (#17153) 2024-09-13 14:32:53 +00:00
pnpm-workspace Detect pnpm workspaces (#15525) 2024-06-18 13:37:06 +00:00
pulumi-main Fix dependency installation for nodejs projects with a main property (#17391) 2024-09-26 15:22:28 +00:00
regression-12301 Remove unused `package.json` files from tests (#13162) 2024-07-08 14:09:16 +00:00
ts-with-package-json-in-parent-dir [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
undefined-stack-output Warn about undefined stack outputs 2023-07-28 14:33:04 +01:00
yarn-workspaces-nohoist Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
.gitignore [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00