x402-bazaar 3.6.2 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/commands/init.js +14 -2
package/bin/cli.js
CHANGED
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -160,7 +160,19 @@ export async function initCommand(options) {
|
|
|
160
160
|
const srcDir = join(mcpSourceDir, subdir);
|
|
161
161
|
const destDir = join(installDir, subdir);
|
|
162
162
|
if (existsSync(srcDir)) {
|
|
163
|
-
|
|
163
|
+
try {
|
|
164
|
+
cpSync(srcDir, destDir, { recursive: true, force: true });
|
|
165
|
+
} catch {
|
|
166
|
+
// Fallback: copy files individually (Windows compat)
|
|
167
|
+
if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
|
|
168
|
+
for (const f of readdirSync(srcDir)) {
|
|
169
|
+
try {
|
|
170
|
+
copyFileSync(join(srcDir, f), join(destDir, f));
|
|
171
|
+
} catch {
|
|
172
|
+
/* skip locked files */
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
164
176
|
spinner.text = `Copied ${subdir}/ directory...`;
|
|
165
177
|
}
|
|
166
178
|
}
|
|
@@ -218,7 +230,7 @@ export async function initCommand(options) {
|
|
|
218
230
|
viem: "^2.45.0",
|
|
219
231
|
"@modelcontextprotocol/sdk": "^1.27.0",
|
|
220
232
|
dotenv: "^17.3.0",
|
|
221
|
-
zod: "^
|
|
233
|
+
zod: "^3.25.0",
|
|
222
234
|
ed2curve: "^0.3.0",
|
|
223
235
|
"@scure/bip32": "^1.6.0",
|
|
224
236
|
},
|