mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
chore(build): remove redundant code (#18224)
This commit is contained in:
parent
cd01ceb8f0
commit
be79242a20
@ -15,7 +15,6 @@
|
||||
"scripts": {
|
||||
"build": "run-p \"build:*\"",
|
||||
"build:contributor": "tsx src/contributor.ts",
|
||||
"build:components": "tsx src/components.ts",
|
||||
"dev": "DEV=1 pnpm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,21 +0,0 @@
|
||||
import path from 'path'
|
||||
import glob from 'fast-glob'
|
||||
import chalk from 'chalk'
|
||||
import consola from 'consola'
|
||||
import { ensureDir, projRoot, writeJson } from '@element-plus/build-utils'
|
||||
|
||||
const pathOutput = path.resolve(__dirname, '..', 'dist')
|
||||
|
||||
async function main() {
|
||||
await ensureDir(pathOutput)
|
||||
|
||||
const components = await glob('*', {
|
||||
cwd: path.resolve(projRoot, 'packages/components'),
|
||||
onlyDirectories: true,
|
||||
})
|
||||
|
||||
await writeJson(path.resolve(pathOutput, 'components.json'), components)
|
||||
consola.success(chalk.green('Component list generated'))
|
||||
}
|
||||
|
||||
main()
|
Loading…
Reference in New Issue
Block a user