Skip to content

Commit

Permalink
ci: Add Are The Types Wrong, Improve Turbo Caching for Fake Root
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Apr 20, 2024
1 parent c3f04fe commit bdc339e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 31 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions internals/eslint-config/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
reportUnusedDisableDirectives: 'error',
},
rules: {
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
36 changes: 8 additions & 28 deletions internals/fake-root/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,22 @@
"pipeline": {
"check:eslint": {
"inputs": [
"../../**/*.{cjs,js,mjs,json,mjs,mts,ts}",
"!../../internals/**/*",
"!../../packages/**/*",
"../../*.{cjs,js,mjs,json,mjs,mts,ts}",
"../../eslint.config.mjs"
],
"outputMode": "new-only",
"outputs": ["./dist/**"]
]
},
"check:prettier": {
"inputs": [
"../../**/*.{cjs,js,mjs,json,mjs,mts,ts}",
"!../../packages/**/*",
"../../eslint.config.mjs"
],
"outputMode": "new-only",
"outputs": ["./dist/**"]
"inputs": ["../../*.{cjs,js,mjs,json,mjs,mts,ts}"],
"outputMode": "new-only"
},
"download": {},
"fix:eslint": {
"inputs": [
"../../**/*.{cjs,js,mjs,json,mjs,mts,ts}",
"!../../internals/**/*",
"!../../packages/**/*",
"../../eslint.config.mjs"
],
"outputMode": "new-only",
"outputs": ["./dist/**"]
"inputs": ["../../*.{cjs,js,mjs,json,mjs,mts,ts}"],
"outputMode": "new-only"
},
"fix:prettier": {
"inputs": [
"../../**/*.{cjs,js,mjs,json,mjs,mts,ts}",
"!../../packages/**/*",
"../../eslint.config.mjs"
],
"outputMode": "new-only",
"outputs": ["./dist/**"]
"inputs": ["../../*.{cjs,js,mjs,json,mjs,mts,ts}"],
"outputMode": "new-only"
},
"watch": {
"cache": false,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@skyblock-finance/eslint-config": "*",
"@types/bun": "latest",
"eslint": "^9.0.0",
"knip": "^5.9.4",
"nodemon": "^3.1.0",
Expand All @@ -20,6 +20,7 @@
"scripts": {
"build": "turbo run build",
"check": "turbo run check",
"check:arethetypeswrong": "turbo run check:arethetypeswrong",
"check:eslint": "turbo run check:eslint",
"check:knip": "turbo run check:knip",
"check:prettier": "turbo run check:prettier",
Expand Down
3 changes: 2 additions & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@types/bun": "latest",
"@types/json-stable-stringify": "^1.0.36",
"@types/lodash": "^4.14.188",
"@types/node": "^18.11.9",
"json-stable-stringify": "^1.1.1",
"lodash": "^4.17.21",
"tslog": "^4.9.2"
Expand All @@ -34,6 +34,7 @@
},
"scripts": {
"build": "rm -rf dist && tsc --build",
"check:arethetypeswrong": "bun --bun run attw --pack .",
"check:eslint": "bun run eslint --max-warnings=0 .",
"check:prettier": "bun --bun run --cwd ../.. prettier --check packages/schemas",
"check:publint": "bun --bun run publint",
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/scripts/download-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Logger } from 'tslog'

export const log = new Logger()

interface Common {
type Common = {
name: string
}

Expand Down
6 changes: 6 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
},
"check": {
"dependsOn": [
"check:arethetypeswrong",
"check:eslint",
"check:knip",
"check:prettier",
"check:publint"
]
},
"check:arethetypeswrong": {
"dependsOn": ["build"],
"inputs": ["dist/**", "package.json"],
"outputMode": "new-only"
},
"check:eslint": {
"dependsOn": ["@skyblock-finance/eslint-config#build"],
"inputs": [
Expand Down

0 comments on commit bdc339e

Please sign in to comment.