Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update plugin-solana workspace dependencies #1609

Merged
merged 6 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/core/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function loadEnvConfig(): Settings {
const result = config(envPath ? { path: envPath } : {});

if (!result.error) {
console.log(`Loaded .env file from: ${envPath}`);
elizaLogger.log(`Loaded .env file from: ${envPath}`);
}

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

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

const settingKey = rest.join('.');
const settingKey = rest.join(".");
namespaced[namespace] = namespaced[namespace] || {};
namespaced[namespace][settingKey] = value;
}
Expand Down
5 changes: 3 additions & 2 deletions packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ export default defineConfig({
platform: "node",
target: "node18",
bundle: true,
splitting: true, // Add this for better code splitting
dts: true, // Generate declaration files
splitting: true, // Add this for better code splitting
dts: true, // Generate declaration files
external: [
"dotenv", // Externalize dotenv to prevent bundling
"fs", // Externalize fs to use Node.js built-in module
"path", // Externalize other built-ins if necessary
"http",
"https",
// Add other modules you want to externalize
"@tavily/core",
],
});
3 changes: 2 additions & 1 deletion scripts/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ cd "$(dirname "$0")"/..
echo "Cleanup started."
# Find and remove node_modules directories, dist directories.
find . -type d -name "node_modules" -exec rm -rf {} + \
-o -type d -name "dist" -exec rm -rf {} +
-o -type d -name "dist" -exec rm -rf {} + \
-o -type d -name ".turbo" -exec rm -rf {} +

# Remove core cache
rm -rf ./packages/core/cache
Expand Down
5 changes: 4 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
},
"@elizaos/plugin-solana#build": {
"outputs": ["dist/**"],
"dependsOn": ["@elizaos/plugin-trustdb#build"]
"dependsOn": [
"@elizaos/plugin-trustdb#build",
"@elizaos/plugin-tee#build"
]
},
"@elizaos/plugin-nft-generation#build": {
"outputs": ["dist/**"],
Expand Down
Loading