Skip to content

Commit 49c5f3d

Browse files
committed
[Tests] allow npm install/npm test in the project root to work in both sub packages.
1 parent f0b6eea commit 49c5f3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"version": "2.0.0",
44
"description": "A mostly reasonable approach to JavaScript.",
55
"scripts": {
6-
"test": "echo \"Error: no test specified\" && exit 1"
6+
"preinstall": "npm run install:config && npm run install:config:base",
7+
"install:config": "cd packages/eslint-config-airbnb && npm install",
8+
"install:config:base": "cd packages/eslint-config-airbnb-base && npm install",
9+
"test": "npm run --silent test:config && npm run --silent test:config:base",
10+
"test:config": "cd packages/eslint-config-airbnb; npm test",
11+
"test:config:base": "cd packages/eslint-config-airbnb-base; npm test"
712
},
813
"repository": {
914
"type": "git",

0 commit comments

Comments
 (0)