Skip to content

Commit 598256c

Browse files
committed
Add Typecheck command
1 parent c4191ae commit 598256c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ Every new feature or API change must be documented.
8181

8282
```bash
8383
make lint # ESLint checks
84+
make typecheck # TypeScript type checking
8485
make prettier # Prettier formatting
85-
make build # TypeScript type checking
8686
```

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ update-package-exports: ## Update the package.json "exports" field for all packa
131131

132132
build: build-ra-core build-ra-router-tanstack build-ra-data-fakerest build-ra-ui-materialui build-ra-data-json-server build-ra-data-local-forage build-ra-data-local-storage build-ra-data-simple-rest build-ra-data-graphql build-ra-data-graphql-simple build-ra-input-rich-text build-data-generator build-ra-language-english build-ra-language-french build-ra-i18n-i18next build-ra-i18n-polyglot build-react-admin build-ra-no-code build-create-react-admin update-package-exports ## compile ES6 files to JS
133133

134+
typecheck: ## check TypeScript types
135+
@yarn typecheck
136+
134137
doc: ## compile doc as html and launch doc web server
135138
@yarn doc
136139

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "react-admin-lerna",
44
"scripts": {
55
"build": "lerna run build",
6+
"typecheck": "CI=true lerna run build",
67
"watch": "lerna run --parallel watch",
78
"test-unit": "cross-env LANG=en_US.UTF-8 NODE_ENV=test cross-env BABEL_ENV=cjs NODE_ICU_DATA=./node_modules/full-icu jest",
89
"test-unit-ci": "cross-env LANG=en_US.UTF-8 NODE_ENV=test cross-env BABEL_ENV=cjs NODE_ICU_DATA=./node_modules/full-icu jest --runInBand",

0 commit comments

Comments
 (0)