Skip to content

Commit 6367b02

Browse files
committed
chore: consolidate scripts-prepend-node-path setting to .npmrc
1 parent 0e24a2b commit 6367b02

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock=true
2+
scripts-prepend-node-path=true
3+

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install:
1010

1111
test_script:
1212
- npm run build
13-
- npm run mocha --scripts-prepend-node-path
13+
- npm run mocha
1414

1515
cache:
1616
- "%LOCALAPPDATA%\\Yarn"

docs/site/Testing-your-application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,8 @@ To set up code coverage:
10061006
"precoverage": "npm test",
10071007
"coverage": "open coverage/index.html",
10081008
"coverage:ci": "lb-nyc report --reporter=text-lcov | coveralls",
1009-
"test": "lb-nyc npm run mocha --scripts-prepend-node-path",
1010-
"test:ci": "lb-nyc npm run mocha --scripts-prepend-node-path"
1009+
"test": "lb-nyc npm run mocha",
1010+
"test:ci": "lb-nyc npm run mocha"
10111011
```
10121012

10131013
`converage:ci` sets up integration with [Coveralls](https://coveralls.io/).

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"build": "node packages/build/bin/compile-package -b",
6161
"build:full": "npm ci --ignore-scripts && lerna bootstrap --ci && npm run clean && npm run build",
6262
"pretest": "npm run clean && npm run build",
63-
"test": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
64-
"test:ci": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
63+
"test": "node packages/build/bin/run-nyc npm run mocha",
64+
"test:ci": "node packages/build/bin/run-nyc npm run mocha",
6565
"verify:docs": "npm run build:site -- --verify",
6666
"build:site": "./bin/build-docs-site.sh",
6767
"docs:prepare": "./docs/bin/build-preview-site.sh",

packages/build/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ npm run build
126126
"precoverage": "npm test",
127127
"coverage": "open coverage/index.html",
128128
"coverage:ci": "lb-nyc report --reporter=text-lcov | coveralls",
129-
"test": "lb-nyc npm run mocha --scripts-prepend-node-path",
130-
"test:ci": "lb-nyc npm run mocha --scripts-prepend-node-path"
129+
"test": "lb-nyc npm run mocha",
130+
"test:ci": "lb-nyc npm run mocha"
131131
```
132132

133133
`converage:ci` sets up integration with [Coveralls](https://coveralls.io/).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-lock=true
2+
scripts-prepend-node-path=true

0 commit comments

Comments
 (0)