Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2c788c

Browse filesBrowse files
authored
fix(node-resolve): use correct version when published (#1063)
1 parent b62ff77 commit d2c788c
Copy full SHA for d2c788c

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed

‎packages/node-resolve/package.json

Copy file name to clipboardExpand all lines: packages/node-resolve/package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
3232
"prebuild": "del-cli dist",
3333
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
34+
"prepublishOnly": "pnpm build",
3435
"prerelease": "pnpm build",
3536
"pretest": "pnpm build",
3637
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",

‎packages/node-resolve/rollup.config.js

Copy file name to clipboardExpand all lines: packages/node-resolve/rollup.config.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
plugins: [json()],
1010
external: [...Object.keys(pkg.dependencies), 'fs', 'path', 'os', 'util', 'url'],
1111
onwarn: (warning) => {
12-
throw new Error(warning);
12+
throw Object.assign(new Error(), warning);
1313
},
1414
output: [
1515
{ file: pkg.main, format: 'cjs', exports: 'named' },

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.