chore(play): use the postinstall hook to run the init script (#18385)

This commit is contained in:
dopamine 2024-09-29 15:11:54 +08:00 committed by GitHub
parent 9a8074c56c
commit 1ff3f6ba38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"postinstall": "node ./scripts/init.mjs"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",

View File

@ -17,7 +17,6 @@ import {
projRoot,
} from '@element-plus/build-utils'
import type { Plugin } from 'vite'
import './vite.init'
const esbuildPlugin = (): Plugin => ({
...esbuild({

View File

@ -4,6 +4,6 @@
"composite": true,
"types": ["node"]
},
"include": ["**/vite.config.*", "**/vitest.config.*", "**/vite.init.*"],
"include": ["**/vite.config.*", "**/vitest.config.*"],
"exclude": ["docs"]
}