Skip to content

Commit

Permalink
Update: dependsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywithaz committed Sep 18, 2023
1 parent 15cdce0 commit 8d724b5
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- name: Test
run: yarn test

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

# - name: Formatting Check
# run: yarn nx run workspace:packages:check-formatting
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"web:publish": "cd packages/react-formz-web && npm publish --access public",
"native:publish": "cd packages/react-formz-native && npm publish --access public",
"native:build": "yarn workspace @zerry/react-formz-native build",
"build": "nx run workspace:packages:build"
"build": "nx run workspace:packages:build",
"check-types": "nx run workspace:check-types"
},
"devDependencies": {
"@nrwl/jest": "^16.8.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
"typecheck": "tsc",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@docusaurus/core": "2.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-formz-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"scripts": {
"core:test": "yarn workspace @zerry/react-formz-core test",
"web:test": "yarn workspace @zerry/react-formz test",
"build": "rm -rf dist && tsc -p tsconfig.build.json"
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@zerry/react-formz-core": "workspace:^",
Expand Down
8 changes: 7 additions & 1 deletion packages/react-formz-native/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/react-formz-native/src",
"projectType": "library",
"targets": {},
"targets": {
"build": {
"dependsOn": [
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
]
}
},
"tags": []
}
3 changes: 2 additions & 1 deletion packages/react-formz-storybook-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"storybook-watcher": "sb-rn-watcher --config-path .ondevice",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"publish:dev": "npx expo publish --release-channel development"
"publish:dev": "npx expo publish --release-channel development",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@react-native-async-storage/async-storage": "~1.17.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-formz-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"scripts": {
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"check-types": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-formz-validators-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"source": "index.ts",
"types": "./dist/index.d.ts",
"scripts": {
"build": "vite build && tsc -p ./tsconfig.build.json"
"build": "vite build && tsc -p ./tsconfig.build.json",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@zerry/react-formz-core": "workspace:^"
Expand Down
8 changes: 7 additions & 1 deletion packages/react-formz-validators-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/react-formz-validators-utils/src",
"projectType": "library",
"targets": {},
"targets": {
"build": {
"dependsOn": [
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
]
}
},
"tags": []
}
3 changes: 2 additions & 1 deletion packages/react-formz-validators-yup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"source": "index.ts",
"types": "dist/index.d.ts",
"scripts": {
"build": "vite build && tsc -p ./tsconfig.build.json"
"build": "vite build && tsc -p ./tsconfig.build.json",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@zerry/react-formz-validators-utils": "workspace:^"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-formz-validators-zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"source": "index.ts",
"types": "dist/index.d.ts",
"scripts": {
"build": "LIB=zod vite build && tsc -p ./tsconfig.build.json"
"build": "LIB=zod vite build && tsc -p ./tsconfig.build.json",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@zerry/react-formz-validators-utils": "workspace:^"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-formz-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"test:generate-output": "jest --json --outputFile=.jest-test-results.json",
"test:coverage": "jest --coverage=true",
"core:test": "yarn workspace @zerry/react-formz-core test",
"native:test": "yarn workspace @zerry/react-formz-native test"
"native:test": "yarn workspace @zerry/react-formz-native test",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@zerry/react-formz-core": "workspace:^",
Expand Down
8 changes: 7 additions & 1 deletion packages/react-formz-web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/react-formz-web/src",
"projectType": "library",
"targets": {},
"targets": {
"build": {
"dependsOn": [
{ "projects": ["@zerry/react-formz-core"], "target": "build" }
]
}
},
"tags": []
}
3 changes: 2 additions & 1 deletion packages/react-formz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"test": "jest",
"test:watch": "jest --watch",
"test:generate-output": "jest --json --outputFile=.jest-test-results.json",
"test:coverage": "jest --coverage=true"
"test:coverage": "jest --coverage=true",
"check-types": "tsc --noEmit"
},
"dependencies": {
"react-uuid": "^1.0.3",
Expand Down

0 comments on commit 8d724b5

Please sign in to comment.