test : ci/cd

This commit is contained in:
dj
2025-06-14 14:43:10 +08:00
parent ba4c4fccdd
commit 83dc28630b
2 changed files with 94 additions and 97 deletions

View File

@@ -8,7 +8,7 @@ steps:
- name: build-package
image: node:16.20.0
image: node:18.20.0
volumes:
- name: cache
path: /drone/src/node_modules

View File

@@ -10,11 +10,9 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
import Inspect from 'vite-plugin-inspect'
import viteSvgIcons from 'vite-plugin-svg-icons'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig(async () => {
const {default: packageManagerDetector} = await import('package-manager-detector');
// 使用 packageManagerDetector
return {
export default defineConfig({
plugins: [
vue(),
vueJsx(),
@@ -109,5 +107,4 @@ export default defineConfig(async () => {
}
},
}
})