Skip to content

Commit

Permalink
refactor: minor automation fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Aug 13, 2024
1 parent 3cde9bf commit 899aee9
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
run: "pnpm turbo test"
- name: "(All) Run All Tasks"
if: ${{ matrix.os != 'windows-latest' }}
run: "pnpm turbo all:cov"
run: "pnpm turbo all:cov:ci"
2 changes: 1 addition & 1 deletion .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu
set -o pipefail

pnpm turbo format-staged
pnpm turbo all
pnpm turbo all:ci
2 changes: 1 addition & 1 deletion .hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -eu
set -o pipefail

pnpm turbo all:cov
pnpm turbo all:cov:ci
2 changes: 1 addition & 1 deletion @coderspirit/lambda-ioc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
"test:cov": "vitest -c vitest.config.mts run --coverage",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal-inputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"typecheck": "tsc --incremental true --tsBuildInfoFile .tsbuildinfo --noEmit -p ./tsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal-symbols/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"typecheck": "tsc --incremental true --tsBuildInfoFile .tsbuildinfo --noEmit -p ./tsconfig.json"
},
Expand Down
4 changes: 2 additions & 2 deletions @coderspirit/nominal-typebox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
"test:cov": "vitest -c vitest.config.mts run --coverage",
"typecheck": "tsc --incremental true --tsBuildInfoFile .tsbuildinfo --noEmit -p ./tsconfig.json"
},
"dependencies": {
"@coderspirit/nominal": "workspace:^"
"@coderspirit/nominal": "^4.1.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.4",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
"test:cov": "vitest -c vitest.config.mts run --coverage",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/safe-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "turbo all",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
"test:cov": "vitest -c vitest.config.mts run --coverage",
Expand Down
36 changes: 32 additions & 4 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 66 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,46 @@
"all": {
"dependsOn": ["build", "lint", "lint:publint", "typecheck", "test"]
},
"all:ci": {
"dependsOn": [
"build:ci",
"lint:ci",
"lint:publint:ci",
"typecheck:ci",
"test:ci"
]
},
"all:cov": {
"dependsOn": ["build", "lint", "lint:publint", "typecheck", "test:cov"]
},
"all:cov:ci": {
"dependsOn": [
"build:ci",
"lint:ci",
"lint:publint:ci",
"typecheck:ci",
"test:cov:ci"
]
},
"build": {
"dependsOn": ["format", "^build"],
"inputs": [
"./package.json",
"./rollup.config.mjs",
"./tsconfig.json",
"./src/**/*",
"!./src/**/*.test.mts"
],
"outputs": ["./dist/**/*"]
},
"build:ci": {
"dependsOn": ["^build"],
"inputs": [
"./package.json",
"./rollup.config.mjs",
"./tsconfig.json",
"./src/**/*"
"./src/**/*",
"!./src/**/*.test.mts"
],
"outputs": ["./dist/**/*"]
},
Expand Down Expand Up @@ -78,6 +108,23 @@
]
},
"lint": {
"dependsOn": ["format", "^lint"],
"inputs": [
"./biome.jsonc",
"./**/*.json",
"./**/*.jsonc",
"./**/*.js",
"./**/*.mjs",
"./**/*.cjs",
"./**/*.ts",
"./**/*.mts",
"./**/*.cts",
"./**/*.d.ts",
"./**/*.d.mts",
"./**/*.d.cts"
]
},
"lint:ci": {
"dependsOn": ["^lint"],
"inputs": [
"./biome.jsonc",
Expand All @@ -98,6 +145,10 @@
"dependsOn": ["build", "^lint:publint"],
"inputs": ["./package.json", "./dist/**/*"]
},
"lint:publint:ci": {
"dependsOn": ["build:ci", "^lint:publint"],
"inputs": ["./package.json", "./dist/**/*"]
},
"publish:safe": {
"dependsOn": ["^publish:safe"],
"cache": false
Expand All @@ -106,15 +157,29 @@
"dependsOn": ["build", "^test"],
"inputs": ["./package.json", "./vitest.config.mts", "./src/**/*"]
},
"test:ci": {
"dependsOn": ["build:ci", "^test"],
"inputs": ["./package.json", "./vitest.config.mts", "./src/**/*"]
},
"test:cov": {
"dependsOn": ["build", "^test:cov"],
"inputs": ["./package.json", "./src/**/*"],
"outputs": ["./coverage/**/*"]
},
"test:cov:ci": {
"dependsOn": ["build:ci", "^test:cov"],
"inputs": ["./package.json", "./src/**/*"],
"outputs": ["./coverage/**/*"]
},
"typecheck": {
"dependsOn": ["build", "^typecheck"],
"inputs": ["./src/**/*", "./tsconfig.json", "./.tsbuildinfo"],
"outputs": ["./.tsbuildinfo"]
},
"typecheck:ci": {
"dependsOn": ["build:ci", "^typecheck"],
"inputs": ["./src/**/*", "./tsconfig.json", "./.tsbuildinfo"],
"outputs": ["./.tsbuildinfo"]
}
}
}

0 comments on commit 899aee9

Please sign in to comment.