kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: CI and turbo BS
rodzic
9f4b141856
commit
cf2c894347
|
@ -13,8 +13,7 @@
|
||||||
},
|
},
|
||||||
"ecmaVersion": "latest",
|
"ecmaVersion": "latest",
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
// TODO: move to ./packages/tsconfig/tsconfig.json
|
"project": "tsconfig.json"
|
||||||
"project": "./packages/core/tsconfig.json"
|
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-unused-vars": [
|
"@typescript-eslint/no-unused-vars": [
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
module.exports = {
|
||||||
|
snapshotDir: 'test/.snapshots',
|
||||||
|
failFast: true,
|
||||||
|
extensions: {
|
||||||
|
ts: 'module'
|
||||||
|
},
|
||||||
|
nodeArguments: ['--loader=tsx', '--no-warnings'],
|
||||||
|
timeout: '30s'
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
.snapshots/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
.next/
|
||||||
|
.vercel/
|
|
@ -7,7 +7,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build-web": "next build",
|
"build-web": "next build",
|
||||||
"start": "next start"
|
"start": "next start",
|
||||||
|
"eslint-check": "eslint \"**/*.{ts,tsx}\"",
|
||||||
|
"prettier-check": "prettier --check \"**/*.{js,ts,tsx,md,mdx}\"",
|
||||||
|
"prettier-write": "prettier --write \"**/*.{js,ts,tsx,md,mdx}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "13.4.7",
|
"next": "13.4.7",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"name": "agentic",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Everything you need to build reliable AI agents with TypeScript.",
|
"description": "Everything you need to build reliable AI agents with TypeScript.",
|
||||||
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
||||||
|
@ -19,9 +20,6 @@
|
||||||
"release": "turbo clean && turbo build && changeset publish",
|
"release": "turbo clean && turbo build && changeset publish",
|
||||||
"test": "turbo test",
|
"test": "turbo test",
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"eslint-check": "eslint \"**/*.{ts,tsx}\"",
|
|
||||||
"prettier-check": "prettier --check \"**/*.{js,ts,tsx,md,mdx}\"",
|
|
||||||
"prettier-write": "prettier --write \"**/*.{js,ts,tsx,md,mdx}\"",
|
|
||||||
"version-packages": "changeset version"
|
"version-packages": "changeset version"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
.snapshots/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
.next/
|
||||||
|
.vercel/
|
|
@ -26,7 +26,10 @@
|
||||||
"build-lib": "tsup",
|
"build-lib": "tsup",
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
"clean": "del build",
|
"clean": "del build",
|
||||||
"test": "NODE_OPTIONS='--loader=tsx --no-warnings' ava"
|
"unit-test": "ava",
|
||||||
|
"eslint-check": "eslint \"**/*.{ts,tsx}\"",
|
||||||
|
"prettier-check": "prettier --check \"**/*.{js,ts,tsx,md,mdx}\"",
|
||||||
|
"prettier-write": "prettier --write \"**/*.{js,ts,tsx,md,mdx}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@agentic/midjourney-fetch": "^1.0.1",
|
"@agentic/midjourney-fetch": "^1.0.1",
|
||||||
|
@ -64,24 +67,12 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@keyv/redis": "^2.6.1",
|
"@keyv/redis": "^2.6.1",
|
||||||
"@types/debug": "^4.1.8",
|
"@types/debug": "^4.1.8",
|
||||||
"@types/node": "^20.3.2",
|
|
||||||
"@types/sinon": "^10.0.15",
|
"@types/sinon": "^10.0.15",
|
||||||
"expect-type": "^0.16.0",
|
"expect-type": "^0.16.0",
|
||||||
"hash-obj": "^4.0.0",
|
"hash-obj": "^4.0.0",
|
||||||
"ioredis": "^5.3.2",
|
"ioredis": "^5.3.2",
|
||||||
"keyv": "^4.5.2"
|
"keyv": "^4.5.2"
|
||||||
},
|
},
|
||||||
"ava": {
|
|
||||||
"snapshotDir": "test/.snapshots",
|
|
||||||
"failFast": true,
|
|
||||||
"extensions": {
|
|
||||||
"ts": "module"
|
|
||||||
},
|
|
||||||
"nodeArguments": [
|
|
||||||
"--loader=tsx",
|
|
||||||
"--no-warnings"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ai",
|
"ai",
|
||||||
"openai",
|
"openai",
|
||||||
|
|
|
@ -1,17 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2020",
|
|
||||||
"lib": ["esnext", "es2022.error", "DOM"],
|
|
||||||
"allowJs": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"strict": true,
|
|
||||||
"noImplicitAny": false,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"module": "esnext",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"outDir": "build",
|
"outDir": "build",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": false,
|
||||||
|
"target": "es2020",
|
||||||
|
"lib": ["esnext", "es2022.error", "DOM"],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"noImplicitAny": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noEmit": true
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,15 +13,19 @@
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"^build",
|
"^test",
|
||||||
"prettier-check",
|
"prettier-check",
|
||||||
"eslint-check",
|
"eslint-check",
|
||||||
"build",
|
"build",
|
||||||
"unit-test"
|
"unit-test"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"prettier-check": {},
|
"prettier-check": {
|
||||||
"eslint-check": {},
|
"dependsOn": ["^build", "build"]
|
||||||
|
},
|
||||||
|
"eslint-check": {
|
||||||
|
"dependsOn": ["^build", "build"]
|
||||||
|
},
|
||||||
"unit-test": {
|
"unit-test": {
|
||||||
"dotEnv": [".env"],
|
"dotEnv": [".env"],
|
||||||
"outputs": ["test/.snapshots"]
|
"outputs": ["test/.snapshots"]
|
||||||
|
@ -30,8 +34,7 @@
|
||||||
"dependsOn": ["^build", "build"]
|
"dependsOn": ["^build", "build"]
|
||||||
},
|
},
|
||||||
"clean": {
|
"clean": {
|
||||||
"dependsOn": ["^clean"],
|
"cache": false
|
||||||
"outputs": ["build/**"]
|
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
|
|
Ładowanie…
Reference in New Issue