mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
chore(v2): replace wait-file with wait-on to reuce npm warnings (#3765)
This commit is contained in:
parent
d5c8a0ca79
commit
de87eb5ca0
3 changed files with 32 additions and 21 deletions
|
@ -104,7 +104,7 @@
|
|||
"terser-webpack-plugin": "^4.1.0",
|
||||
"update-notifier": "^4.1.0",
|
||||
"url-loader": "^4.1.1",
|
||||
"wait-file": "^1.0.5",
|
||||
"wait-on": "^5.2.0",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-bundle-analyzer": "^3.6.1",
|
||||
"webpack-dev-server": "^3.11.0",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const path = require('path');
|
||||
const fs = require('fs-extra');
|
||||
const {waitFile} = require('wait-file');
|
||||
const waitOn = require('wait-on');
|
||||
|
||||
class WaitPlugin {
|
||||
constructor(options) {
|
||||
|
@ -20,7 +20,7 @@ class WaitPlugin {
|
|||
// To prevent 'waitFile' error on waiting non-existing directory
|
||||
fs.ensureDir(path.dirname(this.filepath), () => {
|
||||
// Wait until file exist
|
||||
waitFile({
|
||||
waitOn({
|
||||
resources: [this.filepath],
|
||||
interval: 300,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue