engine7 7.1.16 → 7.1.17
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/cli.mjs +4 -14
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -232,13 +232,8 @@ async function doExport(opts) {
|
|
|
232
232
|
const relPath = path.relative(stateDir, srcFile);
|
|
233
233
|
const destFile = path.join(stagingDir, relPath);
|
|
234
234
|
fs.mkdirSync(path.dirname(destFile), { recursive: true });
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
const content = fs.readFileSync(srcFile, "utf-8");
|
|
238
|
-
fs.writeFileSync(destFile, sanitizeContent(content, dirs));
|
|
239
|
-
} else {
|
|
240
|
-
fs.copyFileSync(srcFile, destFile);
|
|
241
|
-
}
|
|
235
|
+
const content = fs.readFileSync(srcFile, "utf-8");
|
|
236
|
+
fs.writeFileSync(destFile, sanitizeContent(content, dirs));
|
|
242
237
|
fileCount++;
|
|
243
238
|
totalSize += fs.statSync(srcFile).size;
|
|
244
239
|
}
|
|
@@ -347,13 +342,8 @@ async function doImport(opts) {
|
|
|
347
342
|
const relPath = path.relative(stagingDir, srcFile);
|
|
348
343
|
const destFile = path.join(stateDir, relPath);
|
|
349
344
|
fs.mkdirSync(path.dirname(destFile), { recursive: true });
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
const content = fs.readFileSync(srcFile, "utf-8");
|
|
353
|
-
fs.writeFileSync(destFile, restoreContent(content, dirs));
|
|
354
|
-
} else {
|
|
355
|
-
fs.copyFileSync(srcFile, destFile);
|
|
356
|
-
}
|
|
345
|
+
const content = fs.readFileSync(srcFile, "utf-8");
|
|
346
|
+
fs.writeFileSync(destFile, restoreContent(content, dirs));
|
|
357
347
|
restoredCount++;
|
|
358
348
|
}
|
|
359
349
|
}
|