Skip to content

Commit adc13c9

Browse files
committed
Fixed broken npm install on Windows
1 parent dd482c7 commit adc13c9

File tree

2 files changed

+29
-39
lines changed

2 files changed

+29
-39
lines changed

package-lock.json

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

package.json

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,74 +9,61 @@
99
"url": "http://testdouble.com"
1010
},
1111
"main": "lib/index.js",
12-
"files": [
13-
"src",
14-
"lib",
15-
"dist",
16-
"index.d.ts"
17-
],
12+
"files": ["src", "lib", "dist", "index.d.ts"],
1813
"config": {
1914
"build_file": "dist/testdouble.js"
2015
},
2116
"scripts": {
22-
"clean": "rm -rf dist lib coverage",
17+
"clean": "rimraf dist lib coverage",
2318
"postclean": "mkdirp dist",
24-
"compile:browser": "browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p tsify -p headerify",
19+
"compile:browser":
20+
"cross-conf-env browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p tsify -p headerify",
2521
"compile:node": "tsc",
2622
"precompile": "npm run clean",
2723
"compile": "run-s compile:node compile:browser",
2824
"cover": "nyc --reporter=lcov --reporter=text-summary --reporter=html npm test",
2925
"cover:report": "codeclimate-test-reporter < coverage/lcov.info",
3026
"style": "run-p style:js style:ts",
3127
"style:js": "standard --fix",
32-
"style:ts": "standard --fix --parser typescript-eslint-parser --plugin typescript \"**/*.ts\"",
28+
"style:ts":
29+
"standard --fix --parser typescript-eslint-parser --plugin typescript \"**/*.ts\"",
3330
"test": "teenytest --helper test/helper.js \"test/**/*.test.{js,ts}\"",
3431
"test:all": "run-s test test:example",
3532
"test:unit": "teenytest --helper test/helper.js \"test/unit/**/*.test.{js,ts}\"",
3633
"test:safe": "teenytest --helper test/helper.js \"test/safe/**/*.test.{js,ts}\"",
3734
"test:ci": "npm run compile && run-p style test:all && echo \"All done!\"",
38-
"test:example": "npm link && run-p test:example:babel test:example:jest test:example:jest-broken test:example:plain-html test:example:node test:example:webpack",
35+
"test:example":
36+
"npm link && run-p test:example:babel test:example:jest test:example:jest-broken test:example:plain-html test:example:node test:example:webpack",
3937
"test:example:babel": "./script/run-examples babel",
4038
"test:example:jest": "./script/run-examples jest",
4139
"test:example:jest-broken": "./script/run-examples jest-broken",
4240
"test:example:plain-html": "./script/run-examples plain-html",
4341
"test:example:node": "./script/run-examples node",
4442
"test:example:webpack": "./script/run-examples webpack",
4543
"version:write": "echo \"export default '$npm_package_version'\" > src/version.js",
46-
"version:changelog": "if command -v github_changelog_generator &>/dev/null; then github_changelog_generator; git commit -m \"Changelog for $npm_package_version\" CHANGELOG.md; else echo Versioning requires you first run 'gem install github_changelog_generator' >&2; fi",
44+
"version:changelog":
45+
"if command -v github_changelog_generator &>/dev/null; then github_changelog_generator; git commit -m \"Changelog for $npm_package_version\" CHANGELOG.md; else echo Versioning requires you first run 'gem install github_changelog_generator' >&2; fi",
4746
"preversion": "git pull --rebase && npm run test:ci",
4847
"version": "npm run version:write && npm run compile && git add src/version.js",
49-
"postversion": "git push --tags && npm run version:changelog && git push && npm publish",
48+
"postversion":
49+
"git push --tags && npm run version:changelog && git push && npm publish",
5050
"prepare": "npm run compile"
5151
},
5252
"browser": {
5353
"./src/replace/module.js": "./src/replace/module.browser.js",
5454
"quibble": "./src/quibble.browser.js"
5555
},
5656
"standard": {
57-
"globals": [
58-
"td",
59-
"assert",
60-
"ES_SUPPORT"
61-
],
62-
"ignore": [
63-
"index.d.ts",
64-
"examples/**"
65-
]
57+
"globals": ["td", "assert", "ES_SUPPORT"],
58+
"ignore": ["index.d.ts", "examples/**"]
6659
},
6760
"nyc": {
68-
"include": [
69-
"src/**/*.js"
70-
],
71-
"exclude": [
72-
"examples"
73-
],
61+
"include": ["src/**/*.js"],
62+
"exclude": ["examples"],
7463
"all": true
7564
},
7665
"teenytest": {
77-
"plugins": [
78-
"test/support/tdify-plugin.js"
79-
]
66+
"plugins": ["test/support/tdify-plugin.js"]
8067
},
8168
"dependencies": {
8269
"es6-map": "^0.1.5",
@@ -87,13 +74,15 @@
8774
"devDependencies": {
8875
"browserify": "^16.1.0",
8976
"codeclimate-test-reporter": "^0.5.0",
77+
"cross-conf-env": "^1.1.2",
9078
"eslint-plugin-typescript": "^0.9.0",
9179
"headerify": "^1.0.1",
9280
"is-number": "^5.0.0",
9381
"mkdirp": "^0.5.1",
9482
"npm-run-all": "^4.1.2",
9583
"nyc": "^11.5.0",
9684
"pryjs": "^1.0.3",
85+
"rimraf": "^2.6.2",
9786
"standard": "^11.0.0",
9887
"teenytest": "^5.1.1",
9988
"testdouble": "^3.5.0",
@@ -109,15 +98,7 @@
10998
"src": "./src"
11099
},
111100
"typings": "./index.d.ts",
112-
"keywords": [
113-
"tdd",
114-
"bdd",
115-
"mock",
116-
"stub",
117-
"spy",
118-
"test double",
119-
"double"
120-
],
101+
"keywords": ["tdd", "bdd", "mock", "stub", "spy", "test double", "double"],
121102
"bugs": {
122103
"url": "https://github.com/testdouble/testdouble.js/issues"
123104
},

0 commit comments

Comments
 (0)