Skip to content

Commit fcb7041

Browse files
committed
refactor: remove unused packages
1 parent e1c554e commit fcb7041

5 files changed

+7
-24
lines changed

.npmrc

-1
This file was deleted.

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.2.0",
44
"type": "module",
55
"main": "dist/index.js",
6-
"module": "dist/index.js",
76
"types": "dist/index.d.ts",
87
"exports": {
98
"./package.json": "./package.json",
@@ -24,8 +23,6 @@
2423
"@safe-global/protocol-kit": "5.2.2",
2524
"@safe-global/types-kit": "1.0.2",
2625
"@safe-global/sdk-starter-kit": "1.1.5",
27-
"node-cache": "^5.1.2",
28-
"tsup": "8.3.5",
2926
"viem": "2.23.0",
3027
"ws": "^8.0.0",
3128
"fs": "0.0.1-security"
@@ -34,7 +31,7 @@
3431
"@types/node": "22.13.1",
3532
"typescript": "5.7.3",
3633
"ts-node": "10.9.2",
37-
"tsc-alias": "1.8.8"
34+
"tsup": "8.3.5"
3835
},
3936
"scripts": {
4037
"build": "tsup --format esm --dts",

tsconfig.build.json

-8
This file was deleted.

tsconfig.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "ESNext",
3+
"module": "Preserve",
54
"lib": ["ESNext", "dom"],
65
"moduleResolution": "Bundler",
76
"outDir": "./dist",
@@ -19,9 +18,7 @@
1918
"checkJs": false,
2019
"noEmitOnError": false,
2120
"moduleDetection": "force",
22-
"allowArbitraryExtensions": true,
23-
"customConditions": ["@elizaos/source"]
21+
"allowArbitraryExtensions": true
2422
},
25-
"include": ["src/**/*.ts"],
26-
"exclude": ["node_modules", "dist", "src/**/*.d.ts", "types/**/*.test.ts"]
23+
"include": ["src/**/*.ts"]
2724
}

tsup.config.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@ export default defineConfig({
66
sourcemap: true,
77
clean: true,
88
format: ["esm"], // Ensure you're targeting CommonJS
9-
platform: "node",
10-
target: "node18",
11-
bundle: true,
12-
splitting: true, // Add this for better code splitting
139
dts: true, // Generate declaration files
1410
external: [
11+
"@elizaos/core",
1512
"dotenv", // Externalize dotenv to prevent bundling
1613
"fs", // Externalize fs to use Node.js built-in module
1714
"path", // Externalize other built-ins if necessary
1815
"http",
1916
"https",
2017
// Add other modules you want to externalize
2118
"onnxruntime-node",
22-
"sharp",
19+
"zod",
20+
"agentkeepalive",
2321
],
2422
});

0 commit comments

Comments
 (0)