Skip to content

Commit 330ee4e

Browse files
authored
fix: add zod as an external depth (#1951)
* chore: add zod to external dependencies in CLI and spec configurations * chore: include zod as an external dependency in compiler and sdk configurations * chore: add zod to external dependencies for compiler, spec, and sdk * chore: add changeset for zod as an external dependency * chore: unify zod as an external dependency across all configurations
1 parent ce47cf3 commit 330ee4e

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.changeset/empty-release.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"lingo.dev": patch
3+
"@lingo.dev/_compiler": patch
4+
"@lingo.dev/_sdk": patch
5+
"@lingo.dev/_spec": patch
6+
---
7+
8+
chore: add zod to external dependencies

packages/cli/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export default defineConfig({
3131
"@lingo.dev/_react",
3232
"@lingo.dev/_locales",
3333
"@lingo.dev/_logging",
34-
"glob",
3534
"zod",
35+
"glob",
3636
],
3737
outExtension: (ctx) => ({
3838
js: ctx.format === "cjs" ? ".cjs" : ".mjs",

packages/compiler/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export default defineConfig({
66
entry: ["src/index.ts", "src/lingo-turbopack-loader.ts"],
77
outDir: "build",
88
format: ["cjs", "esm"],
9+
external: ["zod"],
910
dts: true,
1011
splitting: true,
1112
shims: true,
12-
external: ["zod"],
1313
outExtension: (ctx) => ({
1414
js: ctx.format === "cjs" ? ".cjs" : ".mjs",
1515
}),

packages/sdk/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export default defineConfig({
66
entry: ["src/index.ts"],
77
outDir: "build",
88
format: ["cjs", "esm"],
9+
external: ["zod"],
910
dts: true,
1011
cjsInterop: true,
1112
splitting: true,
12-
external: ["zod"],
1313
outExtension: (ctx) => ({
1414
js: ctx.format === "cjs" ? ".cjs" : ".mjs",
1515
}),

packages/spec/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export default defineConfig({
77
entry: ["src/index.ts"],
88
outDir: "build",
99
format: ["cjs", "esm"],
10+
external: ["zod"],
1011
dts: true,
1112
cjsInterop: true,
1213
splitting: true,
13-
external: ["zod"],
1414
outExtension: (ctx) => ({
1515
js: ctx.format === "cjs" ? ".cjs" : ".mjs",
1616
}),

0 commit comments

Comments
 (0)