]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
build-plugins.js: use globby package (#35586)
authorXhmikosR <xhmikosr@gmail.com>
Thu, 13 Jan 2022 11:12:10 +0000 (13:12 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 11:12:10 +0000 (13:12 +0200)
We already use it in the change-version.js file

build/build-plugins.js
package-lock.json
package.json

index 64ad6d2348f38aa2daf2662cf34599a43a09ca98..401c67601754d41aaa131f2653c553dcf66703c0 100644 (file)
 
 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 = []
index e384f42a5e7f5d07d63f8919f56e86bcfaa5c185..0cd80ab028573f71adfa0c5944bad70848a2c245 100644 (file)
@@ -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",
index 39d8137285f27712b05ece65aa5af8d97e0d6454..3f06830bfc2aa32064988559be4adf66a0f27f15 100644 (file)
     "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",