File tree Expand file tree Collapse file tree 5 files changed +38
-14
lines changed Expand file tree Collapse file tree 5 files changed +38
-14
lines changed Original file line number Diff line number Diff line change 102
102
"chromatic" : " ^6.24.1" ,
103
103
"class-variance-authority" : " 0.7.0" ,
104
104
"clipboard-copy" : " 4.0.1" ,
105
- "clsx" : " 2.0.0" ,
105
+ "clsx" : " ^ 2.0.0" ,
106
106
"commitizen" : " ^4.3.0" ,
107
107
"commitlint" : " ^17.7.1" ,
108
108
"cypress" : " ^13.0.0" ,
134
134
"prettier-plugin-tailwindcss" : " 0.4.1" ,
135
135
"pretty-quick" : " ^3.1.3" ,
136
136
"qwik-nx" : " ^1.0.8" ,
137
- "qwik-themes" : " 0.2.0" ,
137
+ "qwik-themes" : " ^ 0.2.0" ,
138
138
"react" : " 18.2.0" ,
139
139
"react-dom" : " 18.2.0" ,
140
140
"rehype-pretty-code" : " ^0.10.2" ,
141
141
"sass" : " ^1.66.1" ,
142
142
"shikiji" : " 0.9.18" ,
143
- "specificity" : " 1.0.0" ,
143
+ "specificity" : " ^ 1.0.0" ,
144
144
"storybook" : " ^7.4.0" ,
145
145
"storybook-framework-qwik" : " ^0.2.3" ,
146
146
"tailwind-merge" : " ^1.14.0" ,
Original file line number Diff line number Diff line change 5
5
"publishConfig" : {
6
6
"access" : " public"
7
7
},
8
+ "dependencies" : {
9
+ "tailwind-merge" : " ^1.14.0" ,
10
+ "clsx" : " ^2.0.0" ,
11
+ "specificity" : " ^1.0.0" ,
12
+ "qwik-themes" : " ^0.2.0"
13
+ },
8
14
"type" : " module" ,
9
15
"exports" : {
10
16
"." : {
Original file line number Diff line number Diff line change 8
8
"noPropertyAccessFromIndexSignature" : true ,
9
9
"noImplicitReturns" : true ,
10
10
"noFallthroughCasesInSwitch" : true ,
11
+ "resolveJsonModule" : true ,
12
+ "esModuleInterop" : true ,
11
13
"types" : [" vitest" ]
12
14
},
13
15
"files" : [],
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ import * as path from 'path';
5
5
import dts from 'vite-plugin-dts' ;
6
6
import { viteStaticCopy } from 'vite-plugin-static-copy' ;
7
7
import viteTsConfigPaths from 'vite-tsconfig-paths' ;
8
+ import pkg from './package.json' ;
9
+
10
+ const { dependencies = { } , peerDependencies = { } } = pkg as any ;
11
+ const makeRegex = ( dep : any ) => new RegExp ( `^${ dep } (/.*)?$` ) ;
12
+ const excludeAll = ( obj : any ) => Object . keys ( obj ) . map ( makeRegex ) ;
8
13
9
14
export default defineConfig ( {
10
15
test : {
@@ -54,7 +59,11 @@ export default defineConfig({
54
59
} ,
55
60
rollupOptions : {
56
61
// External packages that should not be bundled into your library.
57
- external : [ ] ,
62
+ external : [
63
+ / ^ n o d e : .* / ,
64
+ ...excludeAll ( dependencies ) ,
65
+ ...excludeAll ( peerDependencies ) ,
66
+ ] ,
58
67
} ,
59
68
} ,
60
69
} ) ;
You can’t perform that action at this time.
0 commit comments