8000 build: migrate globby to v14.x · coreui/coreui@8bfc850 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bfc850

Browse files
committed
build: migrate globby to v14.x
1 parent ea0300c commit 8bfc850

File tree

3 files changed

+1122
-931
lines changed

3 files changed

+1122
-931
lines changed

build/build-plugins.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import path from 'node:path'
1010
import { fileURLToPath } from 'node:url'
1111
import { babel } from '@rollup/plugin-babel'
12-
import globby from 'globby'
12+
import { globby } from 'globby'
1313
import { rollup } from 'rollup'
1414
import banner from './banner.mjs'
1515

1616
const __filename = fileURLToPath(import.meta.url)
1717
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1818

1919
const sourcePath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/')
20-
const jsFiles = globby.sync(`${sourcePath}/**/*.js`)
20+
const jsFiles = await globby(`${sourcePath}/**/*.js`)
2121

2222
// Array which holds the resolved plugins
2323
const resolvedPlugins = []
@@ -37,6 +37,9 @@ for (const file of jsFiles) {
3737
}
3838

3939
const build = async plugin => {
40+
/**
41+
* @type {import('rollup').GlobalsOption}
42+
*/
4043
const globals = {}
4144

4245
const bundle = await rollup({

0 commit comments

Comments
 (0)
0