Skip to content

Commit 2060437

Browse files
Add typecheck script to all the workspaces that use TypeScript (#44795)
* Add typecheck script to all the workspaces that use TypeScript * Delete jsconfig.json * Inspect uses Deno * Use the monorepo typescript version for jetpack-mu-wpcom * pnpm dedupe * Fix more type errors * Disable typecheck for CRM and videopress for now * Boost! I wish you were friendlier for DX * Change relative import to package import * Add changelog * Update changelogs Co-authored-by: tbradsha <[email protected]> --------- Co-authored-by: tbradsha <[email protected]>
1 parent 422014f commit 2060437

File tree

50 files changed

+158
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+158
-79
lines changed

pnpm-lock.yaml

Lines changed: 25 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: added
3+
4+
Add typecheck script to ensure that the TypeScript files are type-checked.

projects/js-packages/boost-score-api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"clean": "rm -rf build/",
2828
"test": "jest --config=tests/jest.config.cjs",
2929
"test-coverage": "pnpm run test --coverage",
30+
"typecheck": "tsc --noEmit",
3031
"watch": "pnpm run build && pnpm webpack watch"
3132
},
3233
"jest": {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: added
3+
4+
Added typecheck script to ensure that the TS files are type-checked.

projects/js-packages/connection/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
},
2525
"scripts": {
2626
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
27-
"test-coverage": "pnpm run test --coverage"
27+
"test-coverage": "pnpm run test --coverage",
28+
"typecheck": "tsc --noEmit"
2829
},
2930
"dependencies": {
3031
"@automattic/jetpack-analytics": "workspace:*",
@@ -56,7 +57,8 @@
5657
"jest-environment-jsdom": "30.0.4",
5758
"react": "18.3.1",
5859
"react-dom": "18.3.1",
59-
"storybook": "9.0.15"
60+
"storybook": "9.0.15",
61+
"typescript": "5.8.3"
6062
},
6163
"peerDependencies": {
6264
"react": "^18.0.0",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: added
3+
4+
Added typecheck script to ensure that the TS files are type-checked.

projects/js-packages/critical-css-gen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"clean:test": "rm -rf tests/build/",
3535
"test": "pnpm build && pnpm build:test && NODE_ENV=test NODE_PATH=./node_modules jest --forceExit --config=tests/config/jest.config.js",
3636
"test-coverage": "pnpm run test --coverage",
37+
"typecheck": "tsc --noEmit",
3738
"watch": "tsc --watch"
3839
},
3940
"dependencies": {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: added
3+
4+
Added typecheck script to ensure that the TS files are type-checked.

projects/js-packages/image-guide/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"dev-validate-ts": "tsc --watch --pretty --strict false # Note: Disable Strict mode to avoid noisy development, while keeping strict errors visible in IDEs.",
3636
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config=tests/jest.config.cjs",
3737
"test-coverage": "pnpm run test --coverage",
38+
"typecheck": "tsc --noEmit",
3839
"validate-ts": "tsc --pretty --strict false",
3940
"watch": "pnpm run dev"
4041
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: added
3+
4+
Added typecheck script to ensure that the TS files are type-checked.

0 commit comments

Comments
 (0)