Skip to content

Commit 40ea056

Browse files
committed
Use a published packages as file: dependency doesn't work
1 parent d5b9c58 commit 40ea056

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

chokidar2/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
2-
"name": "chokidar2",
2+
"name": "watchpack-chokidar2",
33
"version": "2.0.0",
4-
"private": true,
54
"engines": {
65
"node": "<8.10.0"
76
},
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/webpack/watchpack.git"
10+
},
11+
"author": "Tobias Koppers @sokra",
12+
"license": "MIT",
13+
"bugs": {
14+
"url": "https://github.com/webpack/watchpack/issues"
15+
},
16+
"homepage": "https://github.com/webpack/watchpack",
817
"dependencies": {
918
"chokidar": "^2.1.8"
1019
}

lib/chokidar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ try {
88

99
var v2Err;
1010
try {
11-
module.exports = require("chokidar2");
11+
module.exports = require("watchpack-chokidar2");
1212
return;
1313
} catch(e) {
1414
v2Err = e;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"optionalDependencies": {
4141
"chokidar": "^3.4.0",
42-
"chokidar2": "file:./chokidar2"
42+
"watchpack-chokidar2": "^2.0.0"
4343
},
4444
"dependencies": {
4545
"graceful-fs": "^4.1.2",

0 commit comments

Comments
 (0)