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 102102 "chromatic" : " ^6.24.1" ,
103103 "class-variance-authority" : " 0.7.0" ,
104104 "clipboard-copy" : " 4.0.1" ,
105- "clsx" : " 2.0.0" ,
105+ "clsx" : " ^ 2.0.0" ,
106106 "commitizen" : " ^4.3.0" ,
107107 "commitlint" : " ^17.7.1" ,
108108 "cypress" : " ^13.0.0" ,
134134 "prettier-plugin-tailwindcss" : " 0.4.1" ,
135135 "pretty-quick" : " ^3.1.3" ,
136136 "qwik-nx" : " ^1.0.8" ,
137- "qwik-themes" : " 0.2.0" ,
137+ "qwik-themes" : " ^ 0.2.0" ,
138138 "react" : " 18.2.0" ,
139139 "react-dom" : " 18.2.0" ,
140140 "rehype-pretty-code" : " ^0.10.2" ,
141141 "sass" : " ^1.66.1" ,
142142 "shikiji" : " 0.9.18" ,
143- "specificity" : " 1.0.0" ,
143+ "specificity" : " ^ 1.0.0" ,
144144 "storybook" : " ^7.4.0" ,
145145 "storybook-framework-qwik" : " ^0.2.3" ,
146146 "tailwind-merge" : " ^1.14.0" ,
Original file line number Diff line number Diff line change 55 "publishConfig" : {
66 "access" : " public"
77 },
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+ },
814 "type" : " module" ,
915 "exports" : {
1016 "." : {
Original file line number Diff line number Diff line change 88 "noPropertyAccessFromIndexSignature" : true ,
99 "noImplicitReturns" : true ,
1010 "noFallthroughCasesInSwitch" : true ,
11+ "resolveJsonModule" : true ,
12+ "esModuleInterop" : true ,
1113 "types" : [" vitest" ]
1214 },
1315 "files" : [],
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ import * as path from 'path';
55import dts from 'vite-plugin-dts' ;
66import { viteStaticCopy } from 'vite-plugin-static-copy' ;
77import 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 ) ;
813
914export default defineConfig ( {
1015 test : {
@@ -54,7 +59,11 @@ export default defineConfig({
5459 } ,
5560 rollupOptions : {
5661 // 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+ ] ,
5867 } ,
5968 } ,
6069} ) ;
You can’t perform that action at this time.
0 commit comments