@jsenv/cli 0.2.2 → 0.2.3
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/jsenv_cli.js +4 -3
- package/package.json +1 -1
package/jsenv_cli.js
CHANGED
|
@@ -264,9 +264,6 @@ write_files: {
|
|
|
264
264
|
return false;
|
|
265
265
|
})();
|
|
266
266
|
const copyDirectoryContent = (fromDirectoryUrl, toDirectoryUrl) => {
|
|
267
|
-
if (!existsSync(toDirectoryUrl)) {
|
|
268
|
-
mkdirSync(toDirectoryUrl, { recursive: true });
|
|
269
|
-
}
|
|
270
267
|
const directoryEntryNameArray = readdirSync(fromDirectoryUrl);
|
|
271
268
|
for (const directoryEntryName of directoryEntryNameArray) {
|
|
272
269
|
if (
|
|
@@ -316,6 +313,10 @@ write_files: {
|
|
|
316
313
|
}
|
|
317
314
|
}
|
|
318
315
|
if (!existsSync(toUrl)) {
|
|
316
|
+
const parentDirectoryUrl = new URL("./", toUrl);
|
|
317
|
+
if (!existsSync(parentDirectoryUrl)) {
|
|
318
|
+
mkdirSync(parentDirectoryUrl, { recursive: true });
|
|
319
|
+
}
|
|
319
320
|
if (directoryEntryName === "package.json") {
|
|
320
321
|
commands.push({
|
|
321
322
|
label: "npm install",
|