feat: optimize turbo caching

pull/715/head
Travis Fischer 2025-06-13 07:20:09 +07:00
rodzic 9bedc85c3d
commit 4edf15e2d3
20 zmienionych plików z 5 dodań i 35 usunięć

1
.gitignore vendored
Wyświetl plik

@ -49,3 +49,4 @@ apps/api/auth-db-temp.json
.wrangler
.sentryclirc
.eslintcache

Wyświetl plik

@ -22,7 +22,6 @@
"dev": "tsx src/server.ts",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -13,7 +13,6 @@
"type": "module",
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"e2e": "vitest run",
"e2e-http": "vitest run src/http-e2e.test.ts",

Wyświetl plik

@ -23,7 +23,6 @@
"cf-clear-cache": "del .wrangler",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run",
"sentry:sourcemaps": "_SENTRY_RELEASE=$(sentry-cli releases propose-version) && sentry-cli releases new $_SENTRY_RELEASE --org=agentic-kj --project=node && sentry-cli sourcemaps upload --org=agentic-kj --project=node --release=$_SENTRY_RELEASE --strip-prefix 'dist/..' dist",
@ -56,4 +55,4 @@
"@sentry/cli": "catalog:",
"wrangler": "catalog:"
}
}
}

Wyświetl plik

@ -20,7 +20,7 @@
"fix:format": "prettier --write \"**/*.{js,ts,tsx}\"",
"test": "turbo test",
"test:format": "prettier --check \"**/*.{js,ts,tsx}\"",
"test:lint": "turbo test:lint",
"test:lint": "eslint --cache .",
"test:typecheck": "turbo test:typecheck",
"test:unit": "turbo test:unit",
"pretest": "run-s build",

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -19,7 +19,6 @@
],
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -19,7 +19,6 @@
"scripts": {
"preview": "email dev --dir src/emails --port 3030",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -21,7 +21,6 @@
],
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -12,7 +12,6 @@
"scripts": {
"start": "tsx src/index.ts",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -12,7 +12,6 @@
"scripts": {
"start": "tsx src/server.ts",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -31,7 +31,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -19,7 +19,6 @@
"scripts": {
"generate": "openapi-typescript http://localhost:3000/docs --output ./src/openapi.d.ts",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -18,7 +18,6 @@
},
"scripts": {
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},

Wyświetl plik

@ -1,16 +0,0 @@
import { defineConfig } from 'tsup'
export default defineConfig([
{
entry: ['src/index.ts'],
outDir: 'dist',
target: 'node18',
platform: 'node',
format: ['esm'],
splitting: false,
sourcemap: true,
minify: false,
shims: true,
dts: true
}
])

Wyświetl plik

@ -15,7 +15,7 @@
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
},
"test:lint": {
"dependsOn": ["^test:lint"],
"dependsOn": ["//#test:lint", "^test:lint"],
"outputLogs": "errors-only"
},
"test:typecheck": {
@ -30,6 +30,7 @@
"dependsOn": ["//#test:format", "^test:format"]
},
"//#test:format": {},
"//#test:lint": {},
"dev": {
"cache": false,
"persistent": true