aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2024-03-11 12:06:01 +0200
committerXhmikosR <[email protected]>2024-03-12 09:50:25 +0200
commit7b8211ce64438679acf68d2734c629bf0b8eb0a2 (patch)
tree7a4224f3652bcff88481be14f6bb95ca560ae3bd /build
parent2bc395b563768cf250d3e2c637db67d936e42a01 (diff)
downloadbootstrap-7b8211ce64438679acf68d2734c629bf0b8eb0a2.tar.xz
bootstrap-7b8211ce64438679acf68d2734c629bf0b8eb0a2.zip
Update globby to v14
Also: * fix globals type * switch to async
Diffstat (limited to 'build')
-rw-r--r--build/build-plugins.mjs7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/build-plugins.mjs b/build/build-plugins.mjs
index 252b4b4b0..532b0b4be 100644
--- a/build/build-plugins.mjs
+++ b/build/build-plugins.mjs
@@ -9,7 +9,7 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { babel } from '@rollup/plugin-babel'
-import globby from 'globby'
+import { globby } from 'globby'
import { rollup } from 'rollup'
import banner from './banner.mjs'
@@ -17,7 +17,7 @@ const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const sourcePath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/')
-const jsFiles = globby.sync(`${sourcePath}/**/*.js`)
+const jsFiles = await globby(`${sourcePath}/**/*.js`)
// Array which holds the resolved plugins
const resolvedPlugins = []
@@ -37,6 +37,9 @@ for (const file of jsFiles) {
}
const build = async plugin => {
+ /**
+ * @type {import('rollup').GlobalsOption}
+ */
const globals = {}
const bundle = await rollup({