Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: nothing imports this app as a library, so declarations
// only cost build time. Typechecking happens in `vp check`.
dts: false,
format: 'esm',
outDir: 'dist',
clean: true,
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/contracts/altstack.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'zod/compile'
import { openapi } from '@orpc/openapi'
import { z } from 'zod'

Expand Down
1 change: 1 addition & 0 deletions packages/api/src/contracts/health.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'zod/compile'
import { openapi } from '@orpc/openapi'
import { z } from 'zod'

Expand Down
8 changes: 5 additions & 3 deletions packages/api/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: the oRPC `Implementer` type carries the whole contract map,
// so tsgo expands ~25k lines / 1.9 MB of declarations (~20s build) that
// nothing consumes — workspace consumers resolve to `src` via
// devExports, and typechecking happens in `vp check`.
dts: false,
exports: {
enabled: true,
devExports: true,
Expand Down
7 changes: 4 additions & 3 deletions packages/auth/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: workspace consumers resolve to `src` via devExports and
// nothing reads `dist` declarations — generating them only costs
// build time. Typechecking happens in `vp check`.
dts: false,
exports: {
enabled: true,
devExports: true,
Expand Down
7 changes: 4 additions & 3 deletions packages/db/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: workspace consumers resolve to `src` via devExports and
// nothing reads `dist` declarations — generating them only costs
// build time. Typechecking happens in `vp check`.
dts: false,
exports: {
enabled: true,
devExports: true,
Expand Down
7 changes: 4 additions & 3 deletions packages/env/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: workspace consumers resolve to `src` via devExports and
// nothing reads `dist` declarations — generating them only costs
// build time. Typechecking happens in `vp check`.
dts: false,
exports: {
enabled: true,
devExports: true,
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/schemas/project.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'zod/compile'
import limax from 'limax'
import { z } from 'zod'

Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/schemas/role.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'zod/compile'
import { z } from 'zod'

export const ROLES = ['admin', 'user'] as const
Expand Down
7 changes: 4 additions & 3 deletions packages/shared/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export default defineConfig({
resolve: { tsconfigPaths: true },
pack: {
deps: { resolveDepSubpath: true },
dts: {
generator: 'tsgo',
},
// No .d.ts: workspace consumers resolve to `src` via devExports and
// nothing reads `dist` declarations — generating them only costs
// build time. Typechecking happens in `vp check`.
dts: false,
exports: {
enabled: true,
devExports: true,
Expand Down