@sumotto/configs 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const { globbySync } = require( 'globby' );
1
+ const globby = require( 'globby' );
2
2
  const rimraf = require( 'rimraf' );
3
3
 
4
4
  let isRunning = false;
@@ -12,11 +12,11 @@ class CleanWebpackPlugin {
12
12
 
13
13
  // noinspection JSUnusedGlobalSymbols
14
14
  apply( compiler ) {
15
- compiler.hooks.beforeRun.tap( 'SumoTToCleanWebpackPlugin', async () => {
15
+ compiler.hooks.beforeRun.tap( 'SumoTToCleanWebpackPlugin', () => {
16
16
  this.del();
17
17
  } );
18
18
 
19
- compiler.hooks.watchRun.tap( 'SumoTToCleanWebpackPlugin', async () => {
19
+ compiler.hooks.watchRun.tap( 'SumoTToCleanWebpackPlugin', () => {
20
20
  if ( isRunning ) {
21
21
  return;
22
22
  }
@@ -28,7 +28,7 @@ class CleanWebpackPlugin {
28
28
  }
29
29
 
30
30
  del() {
31
- globbySync( this.patterns ).forEach( ( file ) => {
31
+ globby.sync( this.patterns ).forEach( ( file ) => {
32
32
  rimraf.sync( file, { glob: false } );
33
33
  } );
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumotto/configs",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Configs for my work",
5
5
  "scripts": {
6
6
  "release": "np --yolo"
@@ -31,7 +31,7 @@
31
31
  "dotenv": "^16.4.5",
32
32
  "find-free-port-sync": "^1.0.0",
33
33
  "glob": "^10.4.2",
34
- "globby": "^14.0.2",
34
+ "globby": "^11.0.4",
35
35
  "image-minimizer-webpack-plugin": "^4.0.2",
36
36
  "mini-css-extract-plugin": "^2.9.0",
37
37
  "postcss-increase-specificity": "^0.6.0",