chore(v2): replace wait-file with wait-on to reuce npm warnings (#3765)

This commit is contained in:
Alexey Pyltsyn 2020-11-17 13:25:29 +03:00 committed by GitHub
parent d5c8a0ca79
commit de87eb5ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 21 deletions

View file

@ -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",

View file

@ -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,
})