#npm

4 entries tagged “npm”.

npm

Missing files after npm publish: the files allowlist

Files missing from a published npm package: our vite UI build landed outside dist, so the files allowlist dropped it. Here's how I found and fixed it.

Read the entry →
node

Package subpath is not defined by exports

Package subpath is not defined by exports, plus ts(2307): the file exists, the exports map hides it. Here's how to import a public type instead.

Read the entry →
trusted-publishing

Switching to npm trusted publishers: mind the Node version

Moving GitProxy's npm publish from a token to OIDC trusted publishers took a few lines, except for one thing that kept failing.

Read the entry →
debugging

Setting environment variables on Windows npm scripts

Why "NODE_ENV=test" fails on Windows, and the one-line fix with cross-env.

Read the entry →