Skip to content

Commit 8d724b5

Browse files
committed
Update: dependsOn
1 parent 15cdce0 commit 8d724b5

File tree

14 files changed

+43
-15
lines changed

14 files changed

+43
-15
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- name: Test
3737
run: yarn test
3838

39-
# - name: Check Types (TypeScript)
40-
# run: yarn nx run workspace:packages:check-types
39+
- name: Check Types (TypeScript)
40+
run: yarn nx run workspace:packages:check-types
4141

4242
# - name: Formatting Check
4343
# run: yarn nx run workspace:packages:check-formatting

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"web:publish": "cd packages/react-formz-web && npm publish --access public",
1414
"native:publish": "cd packages/react-formz-native && npm publish --access public",
1515
"native:build": "yarn workspace @zerry/react-formz-native build",
16-
"build": "nx run workspace:packages:build"
16+
"build": "nx run workspace:packages:build",
17+
"check-types": "nx run workspace:check-types"
1718
},
1819
"devDependencies": {
1920
"@nrwl/jest": "^16.8.1",

packages/documentation/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"serve": "docusaurus serve",
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids",
15-
"typecheck": "tsc"
15+
"typecheck": "tsc",
16+
"check-types": "tsc --noEmit"
1617
},
1718
"dependencies": {
1819
"@docusaurus/core": "2.1.0",

packages/react-formz-native/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"scripts": {
1919
"core:test": "yarn workspace @zerry/react-formz-core test",
2020
"web:test": "yarn workspace @zerry/react-formz test",
21-
"build": "rm -rf dist && tsc -p tsconfig.build.json"
21+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
22+
"check-types": "tsc --noEmit"
2223
},
2324
"dependencies": {
2425
"@zerry/react-formz-core": "workspace:^",

packages/react-formz-native/project.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/react-formz-native/src",
55
"projectType": "library",
6-
"targets": {},
6+
"targets": {
7+
"build": {
8+
"dependsOn": [
9+
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
10+
]
11+
}
12+
},
713
"tags": []
814
}

packages/react-formz-storybook-native/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"storybook-watcher": "sb-rn-watcher --config-path .ondevice",
1515
"storybook": "start-storybook -p 6006",
1616
"build-storybook": "build-storybook",
17-
"publish:dev": "npx expo publish --release-channel development"
17+
"publish:dev": "npx expo publish --release-channel development",
18+
"check-types": "tsc --noEmit"
1819
},
1920
"dependencies": {
2021
"@react-native-async-storage/async-storage": "~1.17.3",

packages/react-formz-storybook/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"scripts": {
3838
"storybook": "start-storybook -p 6006",
3939
"build-storybook": "build-storybook",
40-
"typecheck": "tsc --noEmit"
40+
"typecheck": "tsc --noEmit",
41+
"check-types": "tsc --noEmit"
4142
},
4243
"repository": {
4344
"type": "git",

packages/react-formz-validators-utils/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"source": "index.ts",
1010
"types": "./dist/index.d.ts",
1111
"scripts": {
12-
"build": "vite build && tsc -p ./tsconfig.build.json"
12+
"build": "vite build && tsc -p ./tsconfig.build.json",
13+
"check-types": "tsc --noEmit"
1314
},
1415
"dependencies": {
1516
"@zerry/react-formz-core": "workspace:^"

packages/react-formz-validators-utils/project.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/react-formz-validators-utils/src",
55
"projectType": "library",
6-
"targets": {},
6+
"targets": {
7+
"build": {
8+
"dependsOn": [
9+
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
10+
]
11+
}
12+
},
713
"tags": []
814
}

packages/react-formz-validators-yup/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"source": "index.ts",
1010
"types": "dist/index.d.ts",
1111
"scripts": {
12-
"build": "vite build && tsc -p ./tsconfig.build.json"
12+
"build": "vite build && tsc -p ./tsconfig.build.json",
13+
"check-types": "tsc --noEmit"
1314
},
1415
"dependencies": {
1516
"@zerry/react-formz-validators-utils": "workspace:^"

packages/react-formz-validators-zod/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"source": "index.ts",
1010
"types": "dist/index.d.ts",
1111
"scripts": {
12-
"build": "LIB=zod vite build && tsc -p ./tsconfig.build.json"
12+
"build": "LIB=zod vite build && tsc -p ./tsconfig.build.json",
13+
"check-types": "tsc --noEmit"
1314
},
1415
"dependencies": {
1516
"@zerry/react-formz-validators-utils": "workspace:^"

packages/react-formz-web/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"test:generate-output": "jest --json --outputFile=.jest-test-results.json",
3636
"test:coverage": "jest --coverage=true",
3737
"core:test": "yarn workspace @zerry/react-formz-core test",
38-
"native:test": "yarn workspace @zerry/react-formz-native test"
38+
"native:test": "yarn workspace @zerry/react-formz-native test",
39+
"check-types": "tsc --noEmit"
3940
},
4041
"dependencies": {
4142
"@zerry/react-formz-core": "workspace:^",

packages/react-formz-web/project.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/react-formz-web/src",
55
"projectType": "library",
6-
"targets": {},
6+
"targets": {
7+
"build": {
8+
"dependsOn": [
9+
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
10+
]
11+
}
12+
},
713
"tags": []
814
}

packages/react-formz/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"test": "jest",
4949
"test:watch": "jest --watch",
5050
"test:generate-output": "jest --json --outputFile=.jest-test-results.json",
51-
"test:coverage": "jest --coverage=true"
51+
"test:coverage": "jest --coverage=true",
52+
"check-types": "tsc --noEmit"
5253
},
5354
"dependencies": {
5455
"react-uuid": "^1.0.3",

0 commit comments

Comments
 (0)