File tree Expand file tree Collapse file tree 7 files changed +32
-25
lines changed Expand file tree Collapse file tree 7 files changed +32
-25
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @ikun-svelte-devtools/icons" ,
3
3
"version" : " 0.0.0" ,
4
4
"type" : " module" ,
5
- "main" : " ./src/index.ts" ,
5
+ "main" : " ./dist/index.js" ,
6
+ "types" : " ./dist/index.d.ts" ,
6
7
"scripts" : {
7
8
"build" : " npm run build:js && npm run build:svelte" ,
8
9
"build:js" : " tsc -p . --outDir dist/ --rootDir src/" ,
Original file line number Diff line number Diff line change 5
5
"files" : [
6
6
" dist"
7
7
],
8
- "main" : " ./src/index.ts" ,
8
+ "main" : " ./dist/index.mjs" ,
9
+ "types" : " ./dist/index.d.mts" ,
9
10
"scripts" : {
10
11
"build" : " tsup --config tsup.config.ts" ,
11
12
"publish:npm" : " pnpm publish --no-git-checks --access public"
Original file line number Diff line number Diff line change 5
5
"files" : [
6
6
" dist"
7
7
],
8
- "main" : " ./src/index.ts" ,
8
+ "main" : " ./dist/index.js" ,
9
+ "types" : " ./dist/index.d.ts" ,
9
10
"scripts" : {
10
11
"build" : " tsup --config tsup.config.ts" ,
11
12
"publish:npm" : " pnpm publish --no-git-checks --access public"
25
26
},
26
27
"dependencies" : {
27
28
"baiwusanyu-utils" : " ^1.0.15" ,
28
- "@ikun-svelte-devtools/shared" :" workspace:*"
29
+ "@ikun-svelte-devtools/shared" : " workspace:*"
29
30
}
30
31
}
Original file line number Diff line number Diff line change 6
6
"files" : [
7
7
" dist"
8
8
],
9
- "main" : " ./src /index.ts " ,
10
- "types" : " src/ index.ts" ,
9
+ "main" : " ./dist /index.js " ,
10
+ "types" : " ./dist/ index.d .ts" ,
11
11
"scripts" : {
12
12
"build" : " tsup-node --config tsup.config.ts" ,
13
13
"publish:npm" : " pnpm publish --no-git-checks --access public"
25
25
"types" : " ./dist/index.d.ts"
26
26
},
27
27
"dependencies" : {
28
- "@ikun-svelte-devtools/shared" :" workspace:*" ,
28
+ "@ikun-svelte-devtools/shared" : " workspace:*" ,
29
29
"birpc" : " ^0.2.12" ,
30
30
"vite-hot-client" : " ^0.2.2"
31
31
},
32
32
"devDependencies" : {
33
- "fast-glob" :" ^3.3.1" ,
34
- "@types/node" :" ^20.5.7" ,
33
+ "fast-glob" : " ^3.3.1" ,
34
+ "@types/node" : " ^20.5.7" ,
35
35
"vite" : " ^4.4.9"
36
36
}
37
37
}
Original file line number Diff line number Diff line change 20
20
"tslib" : " ^2.6.0" ,
21
21
"typescript" : " ^5.1.6" ,
22
22
"vite" : " ^4.4.2" ,
23
- "vite-plugin-inspect" : " ^0.7.38"
23
+ "vite-plugin-inspect" : " ^0.7.38" ,
24
+ "@ikun-svelte-devtools/server" : " workspace:*"
24
25
}
25
26
}
Original file line number Diff line number Diff line change 1
- import { sveltekit } from '@sveltejs/kit/vite'
2
- import { defineConfig } from 'vite'
3
- import svelteDevtools from '../packages/ server/dist/index.js'
4
- import Inspect from 'vite-plugin-inspect'
1
+ import { sveltekit } from '@sveltejs/kit/vite' ;
2
+ import { defineConfig } from 'vite' ;
3
+ import svelteDevtools from '@ikun-svelte-devtools/ server' ;
4
+ import Inspect from 'vite-plugin-inspect' ;
5
5
export default defineConfig ( {
6
- plugins : [
7
- // ssr
8
- svelteDevtools ( {
9
- sveltekit : sveltekit ( ) ,
10
- } ) ,
11
- Inspect ( ) ,
12
- ] ,
13
- server : {
14
- port : 5174 ,
15
- } ,
16
- } )
6
+ plugins : [
7
+ // ssr
8
+ svelteDevtools ( {
9
+ sveltekit : sveltekit ( )
10
+ } ) ,
11
+ Inspect ( )
12
+ ] ,
13
+ server : {
14
+ port : 5174
15
+ }
16
+ } ) ;
You can’t perform that action at this time.
0 commit comments