Skip to content

Commit e732f4d

Browse files
committed
Build browser files and package them.
Fixes estools#345.
1 parent f0488e1 commit e732f4d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ npm-debug.log
33
.vimrc.local
44
t.js
55
esprima.js
6-
escodegen.browser.js
76
.travis.yml
87
.npmignore
98
/tmp/

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"README.md",
1313
"bin",
1414
"escodegen.js",
15+
"escodegen.browser.js",
16+
"escodegen.browser.min.js",
1517
"package.json"
1618
],
1719
"version": "1.9.1",
@@ -56,6 +58,7 @@
5658
"lint": "gulp lint",
5759
"release": "node tools/release.js",
5860
"build-min": "./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",
59-
"build": "./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"
61+
"build": "./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js",
62+
"prepack": "npm run build && npm run build-min"
6063
}
6164
}

0 commit comments

Comments
 (0)