Skip to content

Commit b0e26a7

Browse files
lint and clean
1 parent 60caf60 commit b0e26a7

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

bun.lock

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,7 +3556,7 @@
35563556

35573557
"rimraf": ["[email protected]", "", { "dependencies": { "glob": "^11.0.0", "package-json-from-dist": "^1.0.0" }, "bin": { "rimraf": "dist/esm/bin.mjs" } }, "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A=="],
35583558

3559-
"ripemd160": ["[email protected].1", "", { "dependencies": { "hash-base": "^2.0.0", "inherits": "^2.0.1" } }, "sha512-J7f4wutN8mdbV08MJnXibYpCOPHR+yzy+iQ/AsjMv2j8cLavQ8VGagDFUwwTAdF8FmRKVeNpbTTEwNHCW1g94w=="],
3559+
"ripemd160": ["[email protected].2", "", { "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1" } }, "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA=="],
35603560

35613561
"rollup": ["[email protected]", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.49.0", "@rollup/rollup-android-arm64": "4.49.0", "@rollup/rollup-darwin-arm64": "4.49.0", "@rollup/rollup-darwin-x64": "4.49.0", "@rollup/rollup-freebsd-arm64": "4.49.0", "@rollup/rollup-freebsd-x64": "4.49.0", "@rollup/rollup-linux-arm-gnueabihf": "4.49.0", "@rollup/rollup-linux-arm-musleabihf": "4.49.0", "@rollup/rollup-linux-arm64-gnu": "4.49.0", "@rollup/rollup-linux-arm64-musl": "4.49.0", "@rollup/rollup-linux-loongarch64-gnu": "4.49.0", "@rollup/rollup-linux-ppc64-gnu": "4.49.0", "@rollup/rollup-linux-riscv64-gnu": "4.49.0", "@rollup/rollup-linux-riscv64-musl": "4.49.0", "@rollup/rollup-linux-s390x-gnu": "4.49.0", "@rollup/rollup-linux-x64-gnu": "4.49.0", "@rollup/rollup-linux-x64-musl": "4.49.0", "@rollup/rollup-win32-arm64-msvc": "4.49.0", "@rollup/rollup-win32-ia32-msvc": "4.49.0", "@rollup/rollup-win32-x64-msvc": "4.49.0", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-3IVq0cGJ6H7fKXXEdVt+RcYvRCt8beYY9K1760wGQwSAHZcS9eot1zDG5axUbcp/kWRi5zKIIDX8MoKv/TzvZA=="],
35623562

@@ -4714,7 +4714,7 @@
47144714

47154715
"make-fetch-happen/minipass": ["[email protected]", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
47164716

4717-
"make-fetch-happen/negotiator": ["[email protected].3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
4717+
"make-fetch-happen/negotiator": ["[email protected].4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="],
47184718

47194719
"make-fetch-happen/ssri": ["[email protected]", "", { "dependencies": { "minipass": "^7.0.3" } }, "sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ=="],
47204720

@@ -5178,6 +5178,8 @@
51785178

51795179
"pbkdf2/create-hash": ["[email protected]", "", { "dependencies": { "cipher-base": "^1.0.1", "inherits": "^2.0.1", "ripemd160": "^2.0.0", "sha.js": "^2.4.0" } }, "sha512-snRpch/kwQhcdlnZKYanNF1m0RDlrCdSKQaH87w1FCFPVPNCQ/Il9QJKAX2jVBZddRdaHBMC+zXa9Gw9tmkNUA=="],
51805180

5181+
"pbkdf2/ripemd160": ["[email protected]", "", { "dependencies": { "hash-base": "^2.0.0", "inherits": "^2.0.1" } }, "sha512-J7f4wutN8mdbV08MJnXibYpCOPHR+yzy+iQ/AsjMv2j8cLavQ8VGagDFUwwTAdF8FmRKVeNpbTTEwNHCW1g94w=="],
5182+
51815183
"pino-pretty/dateformat": ["[email protected]", "", {}, "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA=="],
51825184

51835185
"pino-pretty/strip-json-comments": ["[email protected]", "", {}, "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw=="],
@@ -5240,8 +5242,6 @@
52405242

52415243
"restore-cursor/signal-exit": ["[email protected]", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
52425244

5243-
"ripemd160/hash-base": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.1" } }, "sha512-0TROgQ1/SxE6KmxWSvXHvRj90/Xo1JvZShofnYF+f6ZsGtR4eES7WfrQzPalmyagfKZCXpVnitiRebZulWsbiw=="],
5244-
52455245
"rpc-websockets/@types/uuid": ["@types/[email protected]", "", {}, "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw=="],
52465246

52475247
"rpc-websockets/@types/ws": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="],
@@ -5866,7 +5866,7 @@
58665866

58675867
"node-gyp/glob/path-scurry": ["[email protected]", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
58685868

5869-
"node-gyp/make-fetch-happen/negotiator": ["[email protected].3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
5869+
"node-gyp/make-fetch-happen/negotiator": ["[email protected].4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="],
58705870

58715871
"node-gyp/make-fetch-happen/ssri": ["[email protected]", "", { "dependencies": { "minipass": "^7.0.3" } }, "sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ=="],
58725872

@@ -5952,6 +5952,10 @@
59525952

59535953
"pacote/sigstore/@sigstore/tuf": ["@sigstore/[email protected]", "", { "dependencies": { "@sigstore/protobuf-specs": "^0.3.2", "tuf-js": "^2.2.1" } }, "sha512-44vtsveTPUpqhm9NCrbU8CWLe3Vck2HO1PNLw7RIajbB7xhtn5RBPm1VNSCMwqGYHhDsBJG8gDF0q4lgydsJvw=="],
59545954

5955+
"pbkdf2/create-hash/ripemd160": ["[email protected]", "", { "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1" } }, "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA=="],
5956+
5957+
"pbkdf2/ripemd160/hash-base": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.1" } }, "sha512-0TROgQ1/SxE6KmxWSvXHvRj90/Xo1JvZShofnYF+f6ZsGtR4eES7WfrQzPalmyagfKZCXpVnitiRebZulWsbiw=="],
5958+
59555959
"pkg-conf/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^2.0.0", "path-exists": "^3.0.0" } }, "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA=="],
59565960

59575961
"pkg-conf/load-json-file/parse-json": ["[email protected]", "", { "dependencies": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" } }, "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw=="],
@@ -6328,7 +6332,7 @@
63286332

63296333
"pacote/npm-packlist/ignore-walk/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
63306334

6331-
"pacote/npm-registry-fetch/make-fetch-happen/negotiator": ["[email protected].3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
6335+
"pacote/npm-registry-fetch/make-fetch-happen/negotiator": ["[email protected].4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="],
63326336

63336337
"pacote/read-package-json/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],
63346338

@@ -6440,7 +6444,7 @@
64406444

64416445
"pacote/read-package-json/normalize-package-data/hosted-git-info/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
64426446

6443-
"pacote/sigstore/@sigstore/sign/make-fetch-happen/negotiator": ["[email protected].3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
6447+
"pacote/sigstore/@sigstore/sign/make-fetch-happen/negotiator": ["[email protected].4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="],
64446448

64456449
"pacote/sigstore/@sigstore/tuf/tuf-js/@tufjs/models": ["@tufjs/[email protected]", "", { "dependencies": { "@tufjs/canonical-json": "2.0.0", "minimatch": "^9.0.4" } }, "sha512-92F7/SFyufn4DXsha9+QfKnN03JGqtMFMXgSHbZOo8JG59WkTni7UzAouNQDf7AuP9OAMxVOPQcqG3sB7w+kkg=="],
64466450

@@ -6468,7 +6472,7 @@
64686472

64696473
"pacote/sigstore/@sigstore/tuf/tuf-js/@tufjs/models/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
64706474

6471-
"pacote/sigstore/@sigstore/tuf/tuf-js/make-fetch-happen/negotiator": ["[email protected].3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
6475+
"pacote/sigstore/@sigstore/tuf/tuf-js/make-fetch-happen/negotiator": ["[email protected].4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="],
64726476

64736477
"pkg-dir/find-up/locate-path/p-locate/p-limit/p-try": ["[email protected]", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="],
64746478

packages/core/build.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,51 +118,51 @@ async function buildAll() {
118118
}
119119

120120
/**
121-
* Generate TypeScript declarations for all entry points
121+
* Generate TypeScript declarations for all entry points
122122
*/
123123
async function generateTypeScriptDeclarations() {
124124
const fs = await import('node:fs/promises');
125-
125+
126126
console.log('📝 Setting up TypeScript declarations...');
127127
const startTime = Date.now();
128128

129129
try {
130130
// Since we're including src in the package, we can reference the TypeScript files directly
131131
// This ensures types work in the monorepo and when published to NPM
132-
132+
133133
// Ensure dist directories exist
134134
await fs.mkdir('dist/node', { recursive: true });
135135
await fs.mkdir('dist/browser', { recursive: true });
136-
136+
137137
// Create the main index.d.ts that re-exports from the src folder
138138
const mainTypeIndex = `// Type definitions for @elizaos/core
139139
// Re-exports all types from the Node.js entry point
140140
export * from '../src/index.node';
141141
`;
142142
await fs.writeFile('dist/index.d.ts', mainTypeIndex);
143-
143+
144144
// For dist/node/index.d.ts - export from the source
145145
const nodeIndexDts = `// Type definitions for @elizaos/core (Node.js)
146146
// Re-exports all types from the Node.js source entry point
147147
export * from '../../src/index.node';
148148
`;
149149
await fs.writeFile('dist/node/index.d.ts', nodeIndexDts);
150-
150+
151151
// For dist/browser/index.d.ts - export from the source
152152
const browserIndexDts = `// Type definitions for @elizaos/core (Browser)
153153
// Re-exports all types from the Browser source entry point
154154
export * from '../../src/index.browser';
155155
`;
156156
await fs.writeFile('dist/browser/index.d.ts', browserIndexDts);
157-
157+
158158
// Create main index.js for fallback (JavaScript runtime entry)
159159
const mainIndex = `// Main entry point for @elizaos/core
160160
// This file is not used directly - package.json conditional exports handle the routing
161161
// See package.json "exports" field for the actual entry points
162162
export * from './node/index.node.js';
163163
`;
164164
await fs.writeFile('dist/index.js', mainIndex);
165-
165+
166166
const duration = ((Date.now() - startTime) / 1000).toFixed(2);
167167
console.log(`✅ TypeScript declarations setup in ${duration}s`);
168168
console.log(' Note: Types are exported directly from the included src folder');

packages/core/tsconfig.build.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
"incremental": true,
1111
"tsBuildInfoFile": "./dist/.tsbuildinfo"
1212
},
13-
"include": [
14-
"src/**/*"
15-
],
16-
"exclude": [
17-
"src/**/*.test.ts",
18-
"src/**/*.spec.ts",
19-
"src/__tests__/**/*"
20-
]
21-
}
13+
"include": ["src/**/*"],
14+
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "src/__tests__/**/*"]
15+
}

0 commit comments

Comments
 (0)