Skip to content

Commit e9eac3e

Browse files
authored
Merge pull request elizaOS#767 from ai16z/shaw-unify-tsconfig
feat: Pin dependencies and unify tsconfig
2 parents 0ef8f2a + 880fef7 commit e9eac3e

File tree

52 files changed

+472
-884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+472
-884
lines changed

.vscode/tasks.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"tasks": [
66
{
77
"type": "typescript",
8-
"tsconfig": "tsconfig.json",
9-
"problemMatcher": ["$tsc"],
8+
"tsconfig": "packages/core/tsconfig.json",
9+
"problemMatcher": [
10+
"$tsc"
11+
],
1012
"label": "tsbuild",
1113
"group": "build"
1214
}
1315
]
14-
}
16+
}

agent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai16z/agent",
3-
"version": "0.0.1",
3+
"version": "0.1.4-alpha.3",
44
"main": "src/index.ts",
55
"type": "module",
66
"scripts": {

agent/tsconfig.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../packages/core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": ".",
66
"module": "ESNext",
77
"moduleResolution": "Bundler",
8-
"types": ["node"]
8+
"types": [
9+
"node"
10+
]
911
},
10-
"include": ["src"]
11-
}
12+
"include": [
13+
"src"
14+
]
15+
}

client/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eliza-client",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.1.4-alpha.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -17,8 +17,8 @@
1717
"@radix-ui/react-slot": "1.1.0",
1818
"@radix-ui/react-tooltip": "1.1.4",
1919
"@tanstack/react-query": "5.61.0",
20-
"class-variance-authority": "0.7.0",
21-
"clsx": "2.1.0",
20+
"class-variance-authority": "0.7.1",
21+
"clsx": "2.1.1",
2222
"lucide-react": "0.460.0",
2323
"react": "18.3.1",
2424
"react-dom": "18.3.1",
@@ -40,7 +40,7 @@
4040
"globals": "15.11.0",
4141
"postcss": "8.4.49",
4242
"tailwindcss": "3.4.15",
43-
"typescript": "~5.6.2",
43+
"typescript": "5.6.3",
4444
"typescript-eslint": "8.11.0",
4545
"vite": "link:@tanstack/router-plugin/vite"
4646
}

docs/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const config = {
2626
"docusaurus-plugin-typedoc",
2727
{
2828
entryPoints: ["../packages/core/src/index.ts"],
29-
tsconfig: "../tsconfig.json",
29+
tsconfig: "../packages/core/tsconfig.json",
3030
out: "./api",
3131
skipErrorChecking: true,
3232
excludeExternals: false,

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eliza-docs",
3-
"version": "0.0.0",
3+
"version": "0.1.4-alpha.3",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": "0.1.4-alpha.3",
3-
"packages": ["packages/*"],
3+
"packages": ["packages/*", "docs", "agent", "client"],
44
"npmClient": "pnpm"
55
}

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"devDependencies": {
2323
"@commitlint/cli": "18.6.1",
2424
"@commitlint/config-conventional": "18.6.3",
25-
"@typescript-eslint/eslint-plugin": "^8.16.0",
26-
"@typescript-eslint/parser": "^8.16.0",
25+
"@typescript-eslint/eslint-plugin": "8.16.0",
26+
"@typescript-eslint/parser": "8.16.0",
27+
"@vitest/eslint-plugin": "1.0.1",
2728
"concurrently": "9.1.0",
2829
"cross-env": "7.0.3",
29-
"eslint": "^9.15.0",
30+
"eslint": "9.16.0",
3031
"eslint-config-prettier": "9.1.0",
31-
"eslint-plugin-vitest": "0.5.4",
3232
"husky": "9.1.7",
3333
"lerna": "8.1.5",
3434
"only-allow": "1.2.1",
35-
"prettier": "3.3.3",
35+
"prettier": "3.4.1",
3636
"turbo": "2.3.3",
3737
"typedoc": "0.26.11",
3838
"typescript": "5.6.3",
@@ -52,6 +52,7 @@
5252
"@coinbase/coinbase-sdk": "0.10.0",
5353
"amqplib": "0.10.5",
5454
"csv-parse": "5.6.0",
55+
"eslint-plugin-vitest": "0.5.4",
5556
"ollama-ai-provider": "0.16.1",
5657
"optional": "0.1.4",
5758
"pnpm": "9.14.4",
+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src",
66
"strict": true
77
},
8-
"include": ["src/**/*.ts"]
9-
}
8+
"include": [
9+
"src/**/*.ts"
10+
],
11+
"exclude": [
12+
"node_modules",
13+
"dist"
14+
]
15+
}

packages/adapter-sqlite/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src",
66
"strict": true
77
},
8-
"include": ["src/**/*.ts"]
9-
}
8+
"include": [
9+
"src/**/*.ts"
10+
]
11+
}

packages/adapter-sqljs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@ai16z/eliza": "workspace:*",
99
"@types/sql.js": "1.4.9",
1010
"sql.js": "1.12.0",
11-
"uuid": "11.0.2"
11+
"uuid": "11.0.3"
1212
},
1313
"devDependencies": {
1414
"tsup": "8.3.5"

packages/adapter-sqljs/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src",
66
"strict": true
77
},
8-
"include": ["src/**/*.ts"]
9-
}
8+
"include": [
9+
"src/**/*.ts"
10+
]
11+
}

packages/adapter-supabase/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "dist/index.d.ts",
77
"dependencies": {
88
"@ai16z/eliza": "workspace:*",
9-
"@supabase/supabase-js": "2.46.1"
9+
"@supabase/supabase-js": "2.46.2"
1010
},
1111
"devDependencies": {
1212
"tsup": "8.3.5"
+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/client-auto/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/client-direct/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/client-discord/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/client-farcaster/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai16z/client-farcaster",
3-
"version": "0.0.1",
3+
"version": "0.1.4-alpha.3",
44
"main": "dist/index.js",
55
"type": "module",
66
"types": "dist/index.d.ts",
+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"jsx": "react",
55
"outDir": "dist",
66
"rootDir": "./src",
77
"strict": true
88
},
9-
"include": ["src"]
10-
}
9+
"include": [
10+
"src"
11+
]
12+
}

packages/client-github/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}
+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/client-twitter/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src"
66
},
7-
"include": ["src/**/*.ts"]
8-
}
7+
"include": [
8+
"src/**/*.ts"
9+
]
10+
}

packages/core/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@types/pdfjs-dist": "2.10.378",
3434
"@types/tar": "6.1.13",
3535
"@types/wav-encoder": "1.3.3",
36-
"@typescript-eslint/eslint-plugin": "8.12.2",
37-
"@typescript-eslint/parser": "8.12.2",
36+
"@typescript-eslint/eslint-plugin": "8.16.0",
37+
"@typescript-eslint/parser": "8.16.0",
3838
"@vitest/coverage-v8": "2.1.5",
3939
"dotenv": "16.4.5",
4040
"jest": "29.7.0",
@@ -45,7 +45,7 @@
4545
"rollup": "2.79.2",
4646
"ts-jest": "29.2.5",
4747
"ts-node": "10.9.2",
48-
"tslib": "2.8.0",
48+
"tslib": "2.8.1",
4949
"tsup": "8.3.5",
5050
"typescript": "5.6.3"
5151
},
@@ -72,7 +72,7 @@
7272
"tinyld": "1.3.4",
7373
"together-ai": "0.7.0",
7474
"unique-names-generator": "4.7.1",
75-
"uuid": "11.0.2",
75+
"uuid": "11.0.3",
7676
"zod": "3.23.8"
7777
}
7878
}

packages/core/tsconfig.json

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"extends": "../../tsconfig.json",
32
"compilerOptions": {
43
"target": "ESNext",
54
"module": "ESNext",
6-
"lib": ["ESNext", "dom"],
5+
"lib": [
6+
"ESNext",
7+
"dom"
8+
],
79
"moduleResolution": "Bundler",
810
"outDir": "./dist",
911
"rootDir": "./src",
@@ -20,9 +22,15 @@
2022
"checkJs": false,
2123
"noEmitOnError": false,
2224
"moduleDetection": "force",
23-
"allowArbitraryExtensions": true,
24-
"types": ["jest"]
25+
"allowArbitraryExtensions": true
2526
},
26-
"include": ["src/**/*"],
27-
"exclude": ["node_modules", "dist", "src/**/*.d.ts", "types/**/*.test.ts"]
28-
}
27+
"include": [
28+
"src/**/*"
29+
],
30+
"exclude": [
31+
"node_modules",
32+
"dist",
33+
"src/**/*.d.ts",
34+
"types/**/*.test.ts"
35+
]
36+
}

0 commit comments

Comments
 (0)