Skip to content

Commit bbf34e7

Browse files
committed
Update prepublish script to generate browser build from Typescript.
1 parent 623518e commit bbf34e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"build": "tsc",
1111
"test": "npm run build && mocha",
12-
"prepublishOnly": "browserify index.js -s GraphDataStructure -o graph-data-structure.js"
12+
"browserify": "browserify index.js -s GraphDataStructure -o graph-data-structure.js",
13+
"prepublishOnly": "npm run build && npm run browserify"
1314
},
1415
"repository": {
1516
"type": "git",

0 commit comments

Comments
 (0)