File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ fs.readdirSync(typesDir).forEach((file) => {
2727 const distFile = path . join ( distTypesDir , file ) ;
2828
2929 fs . copyFileSync ( srcFile , distFile ) ;
30+ fs . copyFileSync ( srcFile , distFile . replace ( / \. d \. t s $ / , ".d.cts" ) ) ;
3031} ) ;
3132
3233console . log ( "Types copied successfully." ) ;
Original file line number Diff line number Diff line change 5252 "author" : " Alec Lloyd Probert" ,
5353 "repository" : {
5454 "type" : " git" ,
55- "url" : " https://github.com/graphieros/vue-data-ui"
55+ "url" : " git+ https://github.com/graphieros/vue-data-ui.git "
5656 },
5757 "homepage" : " https://vue-data-ui.graphieros.com/" ,
5858 "license" : " MIT" ,
5959 "files" : [
6060 " dist"
6161 ],
62- "main" : " ./dist/vue-data-ui.umd.cjs" ,
63- "module" : " ./dist/vue-data-ui.js" ,
6462 "exports" : {
6563 "." : {
66- "import" : " ./dist/vue-data-ui.js" ,
67- "export" : " ./dist/vue-data-ui.umd.cjs" ,
68- "types" : " ./dist/types/vue-data-ui.d.ts"
64+ "import" : {
65+ "types" : " ./dist/types/vue-data-ui.d.ts" ,
66+ "default" : " ./dist/vue-data-ui.js"
67+ },
68+ "default" : {
69+ "types" : " ./dist/types/vue-data-ui.d.cts" ,
70+ "default" : " ./dist/vue-data-ui.cjs"
71+ }
6972 },
7073 "./style.css" : " ./dist/style.css"
7174 },
75+ "main" : " dist/vue-data-ui.cjs" ,
76+ "module" : " dist/vue-data-ui.js" ,
77+ "types" : " dist/types/vue-data-ui.d.ts" ,
7278 "scripts" : {
7379 "dev" : " node add-dev-dep.cjs && npm i && vite" ,
7480 "clean" : " node cleanup.cjs" ,
9399 "vue" : " ^3.3.4" ,
94100 "simple-git" : " ^3.24.0"
95101 }
96- }
102+ }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default defineConfig({
1111 vue ( ) ,
1212 removeAttr ( {
1313 extensions : [ 'vue' ] ,
14- attributes : prod ? [ 'data-cy' ] : [ ] ,
14+ attributes : prod ? [ 'data-cy' ] : [ ] ,
1515 } )
1616 ] ,
1717 build : {
@@ -21,7 +21,7 @@ export default defineConfig({
2121 name : "VueDataUi" ,
2222 // the name of the output files when the build is run
2323 fileName : "vue-data-ui" ,
24- formats : [ 'es' ]
24+ formats : [ 'es' , 'cjs' ]
2525 } ,
2626 rollupOptions : {
2727 // make sure to externalize deps that shouldn't be bundled
@@ -43,4 +43,4 @@ export default defineConfig({
4343 } ,
4444 ] ,
4545 } ,
46- } ) ;
46+ } ) ;
You can’t perform that action at this time.
0 commit comments