Don't force chokidar@2 to be downloaded from registry.npmjs.org (#12182)
This commit is contained in:
parent
19dc038907
commit
b877726a89
@ -33,8 +33,8 @@
|
|||||||
"source-map": "^0.5.0"
|
"source-map": "^0.5.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"chokidar": "^3.4.0",
|
"@nicolo-ribaudo/chokidar-2": "^2.1.8",
|
||||||
"chokidarAt2": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz"
|
"chokidar": "^3.4.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@babel/core": "^7.0.0-0"
|
"@babel/core": "^7.0.0-0"
|
||||||
|
|||||||
@ -116,10 +116,10 @@ process.on("uncaughtException", function (err) {
|
|||||||
|
|
||||||
export function requireChokidar(): Object {
|
export function requireChokidar(): Object {
|
||||||
try {
|
try {
|
||||||
// todo(babel 8): revert `chokidarAt2` hack
|
// todo(babel 8): revert `@nicolo-ribaudo/chokidar-2` hack
|
||||||
return parseInt(process.version) >= 8
|
return parseInt(process.version) >= 8
|
||||||
? require("chokidar")
|
? require("chokidar")
|
||||||
: require("chokidarAt2");
|
: require("@nicolo-ribaudo/chokidar-2");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(
|
console.error(
|
||||||
"The optional dependency chokidar failed to install and is required for " +
|
"The optional dependency chokidar failed to install and is required for " +
|
||||||
|
|||||||
17
yarn.lock
17
yarn.lock
@ -39,8 +39,8 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/core": "workspace:*"
|
"@babel/core": "workspace:*"
|
||||||
"@babel/helper-fixtures": "workspace:*"
|
"@babel/helper-fixtures": "workspace:*"
|
||||||
|
"@nicolo-ribaudo/chokidar-2": ^2.1.8
|
||||||
chokidar: ^3.4.0
|
chokidar: ^3.4.0
|
||||||
chokidarAt2: "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz"
|
|
||||||
commander: ^4.0.1
|
commander: ^4.0.1
|
||||||
convert-source-map: ^1.1.0
|
convert-source-map: ^1.1.0
|
||||||
fs-readdir-recursive: ^1.1.0
|
fs-readdir-recursive: ^1.1.0
|
||||||
@ -53,9 +53,9 @@ __metadata:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@babel/core": ^7.0.0-0
|
"@babel/core": ^7.0.0-0
|
||||||
dependenciesMeta:
|
dependenciesMeta:
|
||||||
chokidar:
|
"@nicolo-ribaudo/chokidar-2":
|
||||||
optional: true
|
optional: true
|
||||||
chokidarAt2:
|
chokidar:
|
||||||
optional: true
|
optional: true
|
||||||
bin:
|
bin:
|
||||||
babel: ./bin/babel.js
|
babel: ./bin/babel.js
|
||||||
@ -3547,6 +3547,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@nicolo-ribaudo/chokidar-2@npm:^2.1.8":
|
||||||
|
version: 2.1.8
|
||||||
|
resolution: "@nicolo-ribaudo/chokidar-2@npm:2.1.8"
|
||||||
|
dependencies:
|
||||||
|
chokidar: 2.1.8
|
||||||
|
checksum: a3528e53052074df562ad776ac1211dc03d41b0c06d90b5472cd60d6e717900e4a987d89cf269c3c031ee35674f369e6ebd2e4846ed19d06e5da8ed1ffecb682
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@nodelib/fs.scandir@npm:2.1.3":
|
"@nodelib/fs.scandir@npm:2.1.3":
|
||||||
version: 2.1.3
|
version: 2.1.3
|
||||||
resolution: "@nodelib/fs.scandir@npm:2.1.3"
|
resolution: "@nodelib/fs.scandir@npm:2.1.3"
|
||||||
@ -5161,7 +5170,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"chokidar@npm:^2.0.0":
|
"chokidar@npm:2.1.8, chokidar@npm:^2.0.0":
|
||||||
version: 2.1.8
|
version: 2.1.8
|
||||||
resolution: "chokidar@npm:2.1.8"
|
resolution: "chokidar@npm:2.1.8"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user