zen-fs-config 0.3.4 → 0.3.5
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 +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1311,11 +1311,12 @@ async function createConfigRepo(appId, options) {
|
|
|
1311
1311
|
void 0
|
|
1312
1312
|
);
|
|
1313
1313
|
let backendsMeta = await tempRepo.readMetaFile(BACKENDS_FILE);
|
|
1314
|
-
if (
|
|
1314
|
+
if (options.bootstrap) {
|
|
1315
1315
|
backendsMeta = {
|
|
1316
1316
|
version: 1,
|
|
1317
1317
|
backends: options.bootstrap.backends
|
|
1318
1318
|
};
|
|
1319
|
+
console.log(`[createConfigRepo] Using bootstrap backends: ${backendsMeta.backends.map((b) => b.id).join(", ")}`);
|
|
1319
1320
|
}
|
|
1320
1321
|
if (!backendsMeta) {
|
|
1321
1322
|
backendsMeta = {
|
|
@@ -1341,11 +1342,12 @@ async function createConfigRepo(appId, options) {
|
|
|
1341
1342
|
}
|
|
1342
1343
|
await tempRepo.writeMetaFile(BACKENDS_FILE, backendsMeta);
|
|
1343
1344
|
let syncRulesMeta = await tempRepo.readMetaFile(SYNC_RULES_FILE);
|
|
1344
|
-
if (
|
|
1345
|
+
if (options.bootstrap) {
|
|
1345
1346
|
syncRulesMeta = {
|
|
1346
1347
|
version: 1,
|
|
1347
1348
|
rules: options.bootstrap.syncRules
|
|
1348
1349
|
};
|
|
1350
|
+
console.log(`[createConfigRepo] Using bootstrap syncRules: ${syncRulesMeta.rules.length} rules`);
|
|
1349
1351
|
}
|
|
1350
1352
|
if (!syncRulesMeta) {
|
|
1351
1353
|
syncRulesMeta = {
|
package/dist/index.mjs
CHANGED
|
@@ -1264,11 +1264,12 @@ async function createConfigRepo(appId, options) {
|
|
|
1264
1264
|
void 0
|
|
1265
1265
|
);
|
|
1266
1266
|
let backendsMeta = await tempRepo.readMetaFile(BACKENDS_FILE);
|
|
1267
|
-
if (
|
|
1267
|
+
if (options.bootstrap) {
|
|
1268
1268
|
backendsMeta = {
|
|
1269
1269
|
version: 1,
|
|
1270
1270
|
backends: options.bootstrap.backends
|
|
1271
1271
|
};
|
|
1272
|
+
console.log(`[createConfigRepo] Using bootstrap backends: ${backendsMeta.backends.map((b) => b.id).join(", ")}`);
|
|
1272
1273
|
}
|
|
1273
1274
|
if (!backendsMeta) {
|
|
1274
1275
|
backendsMeta = {
|
|
@@ -1294,11 +1295,12 @@ async function createConfigRepo(appId, options) {
|
|
|
1294
1295
|
}
|
|
1295
1296
|
await tempRepo.writeMetaFile(BACKENDS_FILE, backendsMeta);
|
|
1296
1297
|
let syncRulesMeta = await tempRepo.readMetaFile(SYNC_RULES_FILE);
|
|
1297
|
-
if (
|
|
1298
|
+
if (options.bootstrap) {
|
|
1298
1299
|
syncRulesMeta = {
|
|
1299
1300
|
version: 1,
|
|
1300
1301
|
rules: options.bootstrap.syncRules
|
|
1301
1302
|
};
|
|
1303
|
+
console.log(`[createConfigRepo] Using bootstrap syncRules: ${syncRulesMeta.rules.length} rules`);
|
|
1302
1304
|
}
|
|
1303
1305
|
if (!syncRulesMeta) {
|
|
1304
1306
|
syncRulesMeta = {
|