mirror of
https://github.com/Warky-Devs/artemis-kit.git
synced 2026-05-05 04:36:59 +00:00
Initial commit
This commit is contained in:
34
vite.config.js
Normal file
34
vite.config.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { resolve } from 'path';
|
||||
import dts from 'vite-plugin-dts'; // You'll need to install this
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
formats: ['es'],
|
||||
fileName: 'index'
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'fs',
|
||||
'path',
|
||||
'url',
|
||||
'chalk',
|
||||
'semver',
|
||||
'yargs',
|
||||
'yargs/helpers'
|
||||
]
|
||||
},
|
||||
target: 'node16',
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
sourcemap: true
|
||||
}, plugins: [
|
||||
dts({
|
||||
insertTypesEntry: true,
|
||||
outDir: 'dist'
|
||||
})
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user