This repository was archived by the owner on May 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-38
lines changed
ts-packages/vue-excel-initializer Expand file tree Collapse file tree 3 files changed +46
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"dev" : " vite" ,
25
25
"serve" : " vite preview" ,
26
- "build" : " yarn clean && yarn compile " ,
26
+ "build" : " vite build && tsc --emitDeclarationOnly " ,
27
27
"clean" : " rm -rf ./dist ./coverage ./generated" ,
28
- "compile" : " tsc -p tsconfig.build.json" ,
29
28
"patch" : " yarn version --patch && git push && git push origin --tags" ,
30
29
"minor" : " yarn version --minor && git push && git push origin --tags"
31
30
},
35
34
"peerDependencies" : {
36
35
"vue" : " ^3.1.0-beta.7"
37
36
},
37
+ "exports" : {
38
+ "." : {
39
+ "import" : " ./dist/vue-excel-initializer.es.js" ,
40
+ "require" : " ./dist/vue-excel-initializer.umd.js"
41
+ }
42
+ },
38
43
"devDependencies" : {
39
44
"@vitejs/plugin-vue" : " ^1.2.3" ,
40
45
"@vue/compiler-sfc" : " ^3.0.11" ,
Original file line number Diff line number Diff line change
1
+ import vue from '@vitejs/plugin-vue'
2
+ import vueJsx from '@vitejs/plugin-vue-jsx'
3
+ import path from 'path'
4
+ // import ts from 'rollup-plugin-typescript2'
5
+ import { defineConfig } from 'vite'
6
+
7
+ // https://vitejs.dev/config/
8
+ export default defineConfig ( {
9
+ plugins : [
10
+ vue ( ) ,
11
+ vueJsx ( {
12
+ // options are passed on to @vue /babel-plugin-jsx
13
+ } ) ,
14
+ ] ,
15
+ optimizeDeps : {
16
+ // include: ['@ant-design/icons-vue'],
17
+ } ,
18
+ build : {
19
+ lib : {
20
+ entry : path . resolve ( __dirname , 'lib/index.ts' ) ,
21
+ name : '@xsoulspace/vue-excel-initializer' ,
22
+ } ,
23
+ rollupOptions : {
24
+ // make sure to externalize deps that shouldn't be bundled
25
+ // into your library
26
+ input : 'index.ts' ,
27
+ external : [ 'vue' ] ,
28
+ plugins : [ ] ,
29
+ output : {
30
+ dir : './dist' ,
31
+ // // Provide global variables to use in the UMD build
32
+ // // for externalized deps
33
+ globals : {
34
+ vue : 'vue' ,
35
+ } ,
36
+ } ,
37
+ } ,
38
+ } ,
39
+ } )
You can’t perform that action at this time.
0 commit comments