Skip to content

Commit 86fcc1d

Browse files
authored
Merge pull request #1609 from elizaOS/fix/breath_taking_error
fix: breath taking error
2 parents 59ae83a + 9126cb1 commit 86fcc1d

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

packages/core/src/settings.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function loadEnvConfig(): Settings {
9393
const result = config(envPath ? { path: envPath } : {});
9494

9595
if (!result.error) {
96-
console.log(`Loaded .env file from: ${envPath}`);
96+
elizaLogger.log(`Loaded .env file from: ${envPath}`);
9797
}
9898

9999
// Parse namespaced settings
@@ -156,10 +156,10 @@ function parseNamespacedSettings(env: Settings): NamespacedSettings {
156156
for (const [key, value] of Object.entries(env)) {
157157
if (!value) continue;
158158

159-
const [namespace, ...rest] = key.split('.');
159+
const [namespace, ...rest] = key.split(".");
160160
if (!namespace || rest.length === 0) continue;
161161

162-
const settingKey = rest.join('.');
162+
const settingKey = rest.join(".");
163163
namespaced[namespace] = namespaced[namespace] || {};
164164
namespaced[namespace][settingKey] = value;
165165
}

packages/core/tsup.config.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ export default defineConfig({
99
platform: "node",
1010
target: "node18",
1111
bundle: true,
12-
splitting: true, // Add this for better code splitting
13-
dts: true, // Generate declaration files
12+
splitting: true, // Add this for better code splitting
13+
dts: true, // Generate declaration files
1414
external: [
1515
"dotenv", // Externalize dotenv to prevent bundling
1616
"fs", // Externalize fs to use Node.js built-in module
1717
"path", // Externalize other built-ins if necessary
1818
"http",
1919
"https",
2020
// Add other modules you want to externalize
21+
"@tavily/core",
2122
],
2223
});

scripts/clean.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ cd "$(dirname "$0")"/..
55
echo "Cleanup started."
66
# Find and remove node_modules directories, dist directories.
77
find . -type d -name "node_modules" -exec rm -rf {} + \
8-
-o -type d -name "dist" -exec rm -rf {} +
8+
-o -type d -name "dist" -exec rm -rf {} + \
9+
-o -type d -name ".turbo" -exec rm -rf {} +
910

1011
# Remove core cache
1112
rm -rf ./packages/core/cache

turbo.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
},
1717
"@elizaos/plugin-solana#build": {
1818
"outputs": ["dist/**"],
19-
"dependsOn": ["@elizaos/plugin-trustdb#build"]
19+
"dependsOn": [
20+
"@elizaos/plugin-trustdb#build",
21+
"@elizaos/plugin-tee#build"
22+
]
2023
},
2124
"@elizaos/plugin-nft-generation#build": {
2225
"outputs": ["dist/**"],

0 commit comments

Comments
 (0)