Commit c17750d 1 parent 23307a0 commit c17750d Copy full SHA for c17750d
File tree 4 files changed +341
-119
lines changed
4 files changed +341
-119
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @siemens/ix-vue " : major
3
+ ---
4
+
5
+ feat(vue): remove commonjs
Original file line number Diff line number Diff line change 11
11
"url" : " https://github.com/siemens/ix" ,
12
12
"directory" : " packages/vue"
13
13
},
14
- "module" : " dist/index.js" ,
15
14
"main" : " dist/index.js" ,
16
15
"types" : " dist/index.d.ts" ,
17
16
"files" : [
18
17
" LICENSE" ,
19
18
" README.md" ,
20
19
" dist"
21
20
],
22
- "exports" : {
23
- "." : {
24
- "import" : " ./dist/index.js"
25
- }
26
- },
27
21
"scripts" : {
28
- "build" : " pnpm clean && pnpm compile" ,
29
- "compile" : " pnpm tsc" ,
22
+ "build" : " pnpm clean && rollup --config rollup.config.mjs" ,
30
23
"clean" : " rimraf dist" ,
31
24
"lint" : " eslint src"
32
25
},
33
26
"dependencies" : {
34
27
"@siemens/ix" : " ~2.2.1"
35
28
},
36
29
"devDependencies" : {
37
- "rimraf" : " ^3.0.2" ,
38
- "vue" : " ^3.2.45" ,
30
+ "@rollup/plugin-typescript" : " ^8.4.0" ,
39
31
"@typescript-eslint/eslint-plugin" : " ^5.45.0" ,
40
32
"@typescript-eslint/parser" : " ^5.45.0" ,
41
33
"eslint-config-ix" : " workspace:*" ,
42
- "eslint-plugin-vue" : " ^9.9.0"
34
+ "eslint-plugin-vue" : " ^9.9.0" ,
35
+ "rimraf" : " ^3.0.2" ,
36
+ "rollup" : " ^4.18.0" ,
37
+ "typescript" : " ^5.4.5" ,
38
+ "vue" : " ^3.2.45"
43
39
},
44
40
"peerDependencies" : {
45
- "vue " : " >=3.2.45 " ,
46
- "@siemens/ix-icons " : " ^2.0.0 "
41
+ "@siemens/ix-icons " : " ^2.0.0 " ,
42
+ "vue " : " >=3.2.45 "
47
43
}
48
44
}
Original file line number Diff line number Diff line change
1
+ import typescript from '@rollup/plugin-typescript' ;
2
+ const external = [ 'vue' ] ;
3
+
4
+ export default {
5
+ input : 'src/index.ts' ,
6
+ output : [
7
+ {
8
+ dir : 'dist/' ,
9
+ entryFileNames : '[name].js' ,
10
+ chunkFileNames : '[name]-[hash].js' ,
11
+ format : 'es' ,
12
+ sourcemap : true ,
13
+ } ,
14
+ ] ,
15
+ plugins : [ typescript ( ) ] ,
16
+ external : ( id ) =>
17
+ external . includes ( id ) ||
18
+ id . startsWith ( '@siemens/ix' ) ||
19
+ id . startsWith ( '@siemens/ix-icons' ) ,
20
+ } ;
You can’t perform that action at this time.
0 commit comments