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 - name: build-package
image: node:16.20.0 image: node:18.20.0
volumes: volumes:
- name: cache - name: cache
path: /drone/src/node_modules 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 Inspect from 'vite-plugin-inspect'
import viteSvgIcons from 'vite-plugin-svg-icons' import viteSvgIcons from 'vite-plugin-svg-icons'
import path from 'path' import path from 'path'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig(async () => { export default defineConfig({
const {default: packageManagerDetector} = await import('package-manager-detector');
// 使用 packageManagerDetector
return {
plugins: [ plugins: [
vue(), vue(),
vueJsx(), vueJsx(),
@@ -109,5 +107,4 @@ export default defineConfig(async () => {
} }
}, },
}
}) })