pulumi/sdk/nodejs/npm
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
..
testdata Replace Rome with Biome in the NodeJS SDK (#16456) 2024-06-24 11:14:56 +00:00
manager.go Fix dependency installation for nodejs projects with a main property (#17391) 2024-09-26 15:22:28 +00:00
manager_test.go Add packagemanager prompt to pulumi new for nodejs (#16417) 2024-06-21 11:35:06 +00:00
npm.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
npm_test.go Fix TestNPMInstallCmd 2023-05-29 14:16:23 +01:00
pnpm.go Display an actionable error message when dependency installation fails (#16489) 2024-06-28 23:22:17 +00:00
workspaces.go Detect pnpm workspaces (#15525) 2024-06-18 13:37:06 +00:00
workspaces_test.go Detect pnpm workspaces (#15525) 2024-06-18 13:37:06 +00:00
yarn.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00