zen-fs-config 0.3.7 → 0.3.8
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/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1310,6 +1310,17 @@ async function createConfigRepo(appId, options) {
|
|
|
1310
1310
|
ttlMs: options.cache?.ttlMs ?? 0
|
|
1311
1311
|
}
|
|
1312
1312
|
);
|
|
1313
|
+
try {
|
|
1314
|
+
const metaExists = await primaryInstance.exists(META_DIR);
|
|
1315
|
+
console.log(`[createConfigRepo] /.meta/ exists: ${metaExists}`);
|
|
1316
|
+
if (!metaExists) {
|
|
1317
|
+
console.log(`[createConfigRepo] Creating /.meta/ via primaryInstance...`);
|
|
1318
|
+
await primaryInstance.mkdir(META_DIR);
|
|
1319
|
+
console.log(`[createConfigRepo] /.meta/ created`);
|
|
1320
|
+
}
|
|
1321
|
+
} catch (err) {
|
|
1322
|
+
console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
|
|
1323
|
+
}
|
|
1313
1324
|
const tempRepo = new ConfigRepo(
|
|
1314
1325
|
appId,
|
|
1315
1326
|
"",
|
package/dist/index.mjs
CHANGED
|
@@ -1263,6 +1263,17 @@ async function createConfigRepo(appId, options) {
|
|
|
1263
1263
|
ttlMs: options.cache?.ttlMs ?? 0
|
|
1264
1264
|
}
|
|
1265
1265
|
);
|
|
1266
|
+
try {
|
|
1267
|
+
const metaExists = await primaryInstance.exists(META_DIR);
|
|
1268
|
+
console.log(`[createConfigRepo] /.meta/ exists: ${metaExists}`);
|
|
1269
|
+
if (!metaExists) {
|
|
1270
|
+
console.log(`[createConfigRepo] Creating /.meta/ via primaryInstance...`);
|
|
1271
|
+
await primaryInstance.mkdir(META_DIR);
|
|
1272
|
+
console.log(`[createConfigRepo] /.meta/ created`);
|
|
1273
|
+
}
|
|
1274
|
+
} catch (err) {
|
|
1275
|
+
console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
|
|
1276
|
+
}
|
|
1266
1277
|
const tempRepo = new ConfigRepo(
|
|
1267
1278
|
appId,
|
|
1268
1279
|
"",
|