Skip to content

Commit

Permalink
build: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Nov 20, 2024
1 parent 1e99944 commit ab80aa6
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 100 deletions.
12 changes: 12 additions & 0 deletions .changeset/great-ravens-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@orpc/transformer": patch
"@orpc/contract": patch
"@orpc/openapi": patch
"@orpc/client": patch
"@orpc/server": patch
"@orpc/shared": patch
"@orpc/react": patch
"@orpc/zod": patch
---

build: optimize
4 changes: 2 additions & 2 deletions apps/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start",
"build": "next build",
"preview": "next start",
"postinstall": "fumadocs-mdx",
"type:check": "tsc -b"
},
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --coverage --ui",
"format": "pnpm biome format --error-on-warnings --fix",
"lint": "pnpm biome check --error-on-warnings",
"lint:fix": "pnpm run lint --write",
Expand All @@ -36,11 +35,9 @@
"@types/node": "^22.9.0",
"@unnoq/unplugin": "^0.0.0",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"jsdom": "^25.0.1",
"tsup": "^8.3.0",
"typescript": "5.7.1-rc",
"vite": "^5.4.8",
"vitest": "^2.1.3"
},
"packageManager": "pnpm@9.10.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"devDependencies": {
Expand Down
15 changes: 0 additions & 15 deletions packages/client/vite.config.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
15 changes: 0 additions & 15 deletions packages/react/vite.config.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "tsup --entry.index=src/index.ts --entry.fetch=src/adapters/fetch.ts --clean --sourcemap --splitting --format=esm --onSuccess='tsc -b --noCheck'",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.fetch=src/adapters/fetch.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.error=src/error.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
16 changes: 0 additions & 16 deletions packages/shared/vite.config.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
15 changes: 0 additions & 15 deletions packages/transformer/vite.config.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": ["dist", "src"],
"scripts": {
"build": "UNPLUGIN_ON_SUCCESS='tsc -b --noCheck' vite build",
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",
"type:check": "tsc -b"
},
"dependencies": {
Expand Down
15 changes: 0 additions & 15 deletions packages/zod/vite.config.ts

This file was deleted.

23 changes: 12 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab80aa6

Please sign in to comment.