diff options
author | XhmikosR <xhmikosr@gmail.com> | 2022-01-13 14:12:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 14:12:10 +0300 |
commit | c99fa6ca266fd781294a1fe5ffd307478c42c510 (patch) | |
tree | e75f142d7a39b909deb914362dc50a2471aa41a8 | |
parent | 14c7dc1e886015f2ed845f0f8e88d3597694250f (diff) |
build-plugins.js: use globby package (#35586)
We already use it in the change-version.js file
-rw-r--r-- | build/build-plugins.js | 6 | ||||
-rw-r--r-- | package-lock.json | 1 | ||||
-rw-r--r-- | package.json | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.js index 64ad6d2348..401c676017 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -11,12 +11,12 @@ const path = require('path') const rollup = require('rollup') -const glob = require('glob') +const globby = require('globby') const { babel } = require('@rollup/plugin-babel') const banner = require('./banner.js') -const srcPath = path.resolve(__dirname, '../js/src/') -const jsFiles = glob.sync(srcPath + '/**/*.js') +const srcPath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/') +const jsFiles = globby.sync(srcPath + '/**/*.js') // Array which holds the resolved plugins const resolvedPlugins = [] diff --git a/package-lock.json b/package-lock.json index e384f42a5e..0cd80ab028 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,6 @@ "eslint-plugin-import": "^2.25.4", "eslint-plugin-unicorn": "^40.0.0", "find-unused-sass-variables": "^3.1.0", - "glob": "^7.2.0", "globby": "^11.0.4", "hammer-simulator": "0.0.1", "hugo-bin": "^0.79.2", diff --git a/package.json b/package.json index 39d8137285..3f06830bfc 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,6 @@ "eslint-plugin-import": "^2.25.4", "eslint-plugin-unicorn": "^40.0.0", "find-unused-sass-variables": "^3.1.0", - "glob": "^7.2.0", "globby": "^11.0.4", "hammer-simulator": "0.0.1", "hugo-bin": "^0.79.2", |