Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 429fd9c

Browse files
authored
Build parser before install (#7)
1 parent 2561bf9 commit 429fd9c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"description": "OData query string parser",
55
"main": "lib/index.js",
66
"scripts": {
7+
"build": "pegjs src/odata.pegjs lib/odata-parser.js",
78
"test": "rm -f lib/odata-parser.js && npm run-script prepublish && mocha -R spec",
8-
"prepublish": "pegjs src/odata.pegjs lib/odata-parser.js"
9+
"postinstall": "npm run build",
10+
"prepublish": "npm run build"
11+
},
12+
"dependencies": {
13+
"pegjs": "0.7.0"
914
},
10-
"dependencies": {},
1115
"devDependencies": {
12-
"pegjs": "0.7.0",
1316
"mocha": "2.1.0"
1417
},
1518
"repository": {

0 commit comments

Comments
 (0)