Skip to content

Commit 01c7051

Browse files
committed
Set main file and add npm scripts
1 parent 9616722 commit 01c7051

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
"type": "git",
88
"url": "git+https://github.com/github/include-fragment-element.git"
99
},
10+
"main": "dist/index-umd.js",
11+
"files": [
12+
"dist"
13+
],
1014
"scripts": {
1115
"build": "babel include-fragment-element.js -o dist/index-umd.js",
12-
"clean": "rm -rf ./node_modules",
16+
"clean": "rm -rf ./node_modules ./dist",
1317
"lint": "eslint include-fragment-element.js test/*.js",
18+
"prebuild": "npm run clean && mkdir dist",
19+
"prepublishOnly": "npm run build",
1420
"pretest": "npm run lint",
1521
"test": "karma start ./test/karma.config.js"
1622
},

0 commit comments

Comments
 (0)