Skip to content

Commit 5d963a5

Browse files
committed
Move webidl2js to dev dependencies
Generating files on user machines is generally indesirable, therefore webidl2js generated files must be packaged but not versioned.
1 parent a50e958 commit 5d963a5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

package-lock.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,23 @@
2727
".": "./lib/index.js"
2828
},
2929
"scripts": {
30+
"build": "npm run build:interface && npm run build:definitions",
3031
"build:definitions": "npm run build:definitions:extract && npm run build:definitions:initial",
3132
"build:definitions:extract": "node ./scripts/extract.js",
3233
"build:definitions:initial": "node ./scripts/initial.js",
3334
"build:interface": "node ./scripts/interface.js",
3435
"lint": "eslint",
35-
"prepare": "npm run build:interface",
36-
"safe-publish": "npm run lint && npm run test && npm publish",
36+
"safe-publish": "npm run build && npm run lint && npm run test && npm publish",
3737
"test": "jest",
3838
"test:inspect": "node --inspect-brk=0.0.0.0:9222 ./node_modules/.bin/jest --runInBand --watchAll -b",
3939
"test:watch": "jest --watchAll -b"
4040
},
41-
"dependencies": {
42-
"webidl2js": "^18.0.0"
43-
},
4441
"devDependencies": {
4542
"@cdoublev/eslint-config": "^0.12.0",
4643
"eslint": "^9.0.0",
4744
"jest": "^30.0.0",
4845
"jest-junit": "^16.0.0",
46+
"webidl2js": "^18.0.0",
4947
"webref": "w3c/webref#d5712c019c67e55859bce6e3b654529d86ef994a"
5048
},
5149
"publishConfig": {

0 commit comments

Comments
 (0)