Skip to content

Commit 952e0a3

Browse files
committed
feat(cli): add type-checking script to generated projects
Added a "check-types" script to the generated package.json files, leveraging TypeScript's `tsc --noEmit` to ensure proper type-checking. This improves developer experience by providing an easy way to validate types during development.
1 parent 1990579 commit 952e0a3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changeset/polite-falcons-drive.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@codefast-ui/progress-circle": patch
3+
"@codefast-ui/checkbox-group": patch
4+
"@codefast-ui/input-number": patch
5+
"@codefast/typescript-config": patch
6+
"@codefast-ui/input": patch
7+
"@codefast/eslint-config": patch
8+
"@codefast/style-guide": patch
9+
"@codefast/hooks": patch
10+
"@codefast/cli": patch
11+
"@codefast/ui": patch
12+
---
13+
14+
feat(cli): add type-checking script to generated projects

packages/cli/src/commands/create-project/config-files.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export function updatePackageJson(projectDir: string): void {
115115

116116
packageJson.scripts = {
117117
...packageJson.scripts,
118+
"check-types": "tsc --noEmit",
118119
"deploy:preview": "vercel deploy --archive=tgz",
119120
"deploy:prod": "vercel deploy --archive=tgz --prod",
120121
format: "prettier --write --ignore-unknown .",

0 commit comments

Comments
 (0)