Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node-resolve): build before publishing for correct version #1063

Merged
merged 1 commit into from Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/node-resolve/package.json
Expand Up @@ -31,6 +31,7 @@
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
"prebuild": "del-cli dist",
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
"prepublishOnly": "pnpm build",
"prerelease": "pnpm build",
"pretest": "pnpm build",
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
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