Skip to content

Commit 05166a8

Browse files
feat(packages): add TypeScript type checking to build process into the nextjs-integration package (#5413)
## 📄 Description - Added `typecheck` script to nextjs-integration package.json - Modified `build` script to run type checking before building (`pnpm run typecheck && pnpm clean && next build`) - Added `nextjs:typecheck` script to root package.json for convenience ## 📝 Checklist - ✅ My code follows the style guidelines of this project - 🛠️ I have performed a self-review of my own code - 📄 I have made corresponding changes to the documentation - ⚠️ My changes generate no new warnings or errors - 🧪 I have added tests that prove my fix is effective or that my feature works - ✔️ New and existing unit tests pass locally with my changes
1 parent bfd8603 commit 05166a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"nextjs:build:serve": "pnpm --filter design-system-nextjs-integration build:serve",
9191
"nextjs:lint": "pnpm --filter design-system-nextjs-integration lint",
9292
"nextjs:lint:fix": "pnpm --filter design-system-nextjs-integration lint:fix",
93+
"nextjs:typecheck": "pnpm --filter design-system-nextjs-integration typecheck",
9394
"primeng": "pnpm primeng:start",
9495
"primeng:start": "pnpm --filter design-system-styles-primeng-workspace start",
9596
"primeng:start:lib": "pnpm --filter design-system-styles-primeng-workspace start:lib",

packages/nextjs-integration/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
},
1616
"scripts": {
1717
"start": "next dev",
18-
"build": "pnpm clean && next build",
18+
"build": "pnpm run typecheck && pnpm clean && next build",
1919
"build:serve": "pnpm build && next start",
2020
"clean": "rimraf .next",
2121
"lint": "next lint",
22-
"lint:fix": "next lint --fix"
22+
"lint:fix": "next lint --fix",
23+
"typecheck": "tsc --noEmit"
2324
},
2425
"dependencies": {
2526
"@swisspost/design-system-components-react": "workspace:9.0.0-next.36",

0 commit comments

Comments
 (0)