kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: optimize turbo caching
rodzic
9bedc85c3d
commit
4edf15e2d3
|
@ -49,3 +49,4 @@ apps/api/auth-db-temp.json
|
||||||
|
|
||||||
.wrangler
|
.wrangler
|
||||||
.sentryclirc
|
.sentryclirc
|
||||||
|
.eslintcache
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
"dev": "tsx src/server.ts",
|
"dev": "tsx src/server.ts",
|
||||||
"clean": "del dist",
|
"clean": "del dist",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"e2e": "vitest run",
|
"e2e": "vitest run",
|
||||||
"e2e-http": "vitest run src/http-e2e.test.ts",
|
"e2e-http": "vitest run src/http-e2e.test.ts",
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
"cf-clear-cache": "del .wrangler",
|
"cf-clear-cache": "del .wrangler",
|
||||||
"clean": "del dist",
|
"clean": "del dist",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run",
|
"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",
|
"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",
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"fix:format": "prettier --write \"**/*.{js,ts,tsx}\"",
|
"fix:format": "prettier --write \"**/*.{js,ts,tsx}\"",
|
||||||
"test": "turbo test",
|
"test": "turbo test",
|
||||||
"test:format": "prettier --check \"**/*.{js,ts,tsx}\"",
|
"test:format": "prettier --check \"**/*.{js,ts,tsx}\"",
|
||||||
"test:lint": "turbo test:lint",
|
"test:lint": "eslint --cache .",
|
||||||
"test:typecheck": "turbo test:typecheck",
|
"test:typecheck": "turbo test:typecheck",
|
||||||
"test:unit": "turbo test:unit",
|
"test:unit": "turbo test:unit",
|
||||||
"pretest": "run-s build",
|
"pretest": "run-s build",
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preview": "email dev --dir src/emails --port 3030",
|
"preview": "email dev --dir src/emails --port 3030",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "tsx src/index.ts",
|
"start": "tsx src/index.ts",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "tsx src/server.ts",
|
"start": "tsx src/server.ts",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"generate": "openapi-typescript http://localhost:3000/docs --output ./src/openapi.d.ts",
|
"generate": "openapi-typescript http://localhost:3000/docs --output ./src/openapi.d.ts",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:lint": "eslint .",
|
|
||||||
"test:typecheck": "tsc --noEmit",
|
"test:typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run"
|
"test:unit": "vitest run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
])
|
|
|
@ -15,7 +15,7 @@
|
||||||
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
|
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
|
||||||
},
|
},
|
||||||
"test:lint": {
|
"test:lint": {
|
||||||
"dependsOn": ["^test:lint"],
|
"dependsOn": ["//#test:lint", "^test:lint"],
|
||||||
"outputLogs": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"test:typecheck": {
|
"test:typecheck": {
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
"dependsOn": ["//#test:format", "^test:format"]
|
"dependsOn": ["//#test:format", "^test:format"]
|
||||||
},
|
},
|
||||||
"//#test:format": {},
|
"//#test:format": {},
|
||||||
|
"//#test:lint": {},
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true
|
||||||
|
|
Ładowanie…
Reference in New Issue