Skip to content

Commit 2cfd72a

Browse files
committed
* Tweaks for publishing to npm
1 parent 2d848d4 commit 2cfd72a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src
2+
examples

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"name": "@nerdo/utils",
33
"version": "0.0.1-alpha",
44
"description": "nerdo's JavaScript utilities.",
5-
"main": "src/index.js",
5+
"main": "build/nerdo-utils.js",
66
"scripts": {
77
"test": "jest",
8-
"build": "rollup -c"
8+
"build": "rm -rf build/* && rollup -c",
9+
"prepublish": "npm run build"
910
},
1011
"author": "Dannel Albert <[email protected]>",
1112
"license": "MIT",

0 commit comments

Comments
 (0)