Skip to content

Commit 0ac6e0c

Browse files
committed
build new version before publishing
1 parent 4e1e7e0 commit 0ac6e0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "rollup -c",
99
"test": "echo \"Error: no test specified\"",
10-
"publish": "np"
10+
"publish": "npm run build && np"
1111
},
1212
"files": [
1313
"dist",

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import pkg from "./package.json";
22

33
export default {
44
input: "src/index.js",
5+
external: Object.keys(pkg.dependencies),
56
output: [
67
{ file: pkg.main, format: "cjs", exports: "auto" },
78
{ file: pkg.module, format: "es" },

0 commit comments

Comments
 (0)