Skip to content

Commit

Permalink
fix(node-resolve): use correct version when published
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Dec 14, 2021
1 parent 8c6ae32 commit 43dac73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/node-resolve/package.json
Expand Up @@ -32,6 +32,7 @@
"prebuild": "del-cli dist",
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
"prerelease": "pnpm build",
"prepublishOnly": "pnpm build",
"pretest": "pnpm build",
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
"test": "ava && pnpm test:ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-resolve/rollup.config.js
Expand Up @@ -9,7 +9,7 @@ export default {
plugins: [json()],
external: [...Object.keys(pkg.dependencies), 'fs', 'path', 'os', 'util', 'url'],
onwarn: (warning) => {
throw new Error(warning);
throw Object.assign(new Error(), warning);
},
output: [
{ file: pkg.main, format: 'cjs', exports: 'named' },
Expand Down

0 comments on commit 43dac73

Please sign in to comment.