Skip to content

Commit 7200c3a

Browse files
committed
fixed utils dependencies
1 parent f3664e7 commit 7200c3a

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
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",
@@ -134,13 +134,13 @@
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",

packages/utils/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
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
".": {

packages/utils/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"noPropertyAccessFromIndexSignature": true,
99
"noImplicitReturns": true,
1010
"noFallthroughCasesInSwitch": true,
11+
"resolveJsonModule": true,
12+
"esModuleInterop": true,
1113
"types": ["vitest"]
1214
},
1315
"files": [],

packages/utils/vite.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import * as path from 'path';
55
import dts from 'vite-plugin-dts';
66
import { viteStaticCopy } from 'vite-plugin-static-copy';
77
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);
813

914
export 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+
/^node:.*/,
64+
...excludeAll(dependencies),
65+
...excludeAll(peerDependencies),
66+
],
5867
},
5968
},
6069
});

pnpm-lock.yaml

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)