@jsenv/cli 0.2.2 → 0.2.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/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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,9 +12,9 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@jsenv/assert": "4.4.2",
15
- "@jsenv/core": "39.5.19",
15
+ "@jsenv/core": "39.5.20",
16
16
  "@jsenv/eslint-config-relax": "1.2.12",
17
- "@jsenv/test": "3.5.22",
17
+ "@jsenv/test": "3.5.23",
18
18
  "eslint": "9.14.0",
19
19
  "prettier": "3.3.3"
20
20
  }
@@ -16,11 +16,11 @@
16
16
  "devDependencies": {
17
17
  "@babel/plugin-syntax-import-attributes": "7.26.0",
18
18
  "@jsenv/assert": "4.4.2",
19
- "@jsenv/core": "39.5.19",
19
+ "@jsenv/core": "39.5.20",
20
20
  "@jsenv/eslint-config-relax": "1.2.12",
21
21
  "@jsenv/plugin-bundling": "2.7.16",
22
22
  "@jsenv/plugin-minification": "1.5.10",
23
- "@jsenv/test": "3.5.22",
23
+ "@jsenv/test": "3.5.23",
24
24
  "eslint": "9.14.0",
25
25
  "open": "10.1.0",
26
26
  "@playwright/browser-chromium": "1.48.2",
@@ -18,11 +18,11 @@
18
18
  "@babel/plugin-syntax-import-attributes": "7.26.0",
19
19
  "@jsenv/custom-elements-redefine": "0.0.1",
20
20
  "@jsenv/assert": "4.4.2",
21
- "@jsenv/core": "39.5.19",
21
+ "@jsenv/core": "39.5.20",
22
22
  "@jsenv/plugin-bundling": "2.7.16",
23
23
  "@jsenv/plugin-minification": "1.5.10",
24
24
  "@jsenv/eslint-config-relax": "1.2.12",
25
- "@jsenv/test": "3.5.22",
25
+ "@jsenv/test": "3.5.23",
26
26
  "eslint": "9.14.0",
27
27
  "open": "10.1.0",
28
28
  "@playwright/browser-chromium": "1.48.2",
@@ -21,12 +21,12 @@
21
21
  "@babel/plugin-syntax-import-attributes": "7.26.0",
22
22
  "@babel/plugin-transform-react-jsx": "7.25.9",
23
23
  "@jsenv/assert": "4.4.2",
24
- "@jsenv/core": "39.5.19",
24
+ "@jsenv/core": "39.5.20",
25
25
  "@jsenv/plugin-preact": "1.6.25",
26
26
  "@jsenv/plugin-bundling": "2.7.16",
27
27
  "@jsenv/plugin-minification": "1.5.10",
28
28
  "@jsenv/eslint-config-relax": "1.2.12",
29
- "@jsenv/test": "3.5.22",
29
+ "@jsenv/test": "3.5.23",
30
30
  "eslint": "9.14.0",
31
31
  "open": "10.1.0",
32
32
  "@playwright/browser-chromium": "1.48.2",
@@ -22,12 +22,12 @@
22
22
  "@babel/plugin-syntax-import-attributes": "7.26.0",
23
23
  "@babel/plugin-transform-react-jsx": "7.25.9",
24
24
  "@jsenv/assert": "4.4.2",
25
- "@jsenv/core": "39.5.19",
25
+ "@jsenv/core": "39.5.20",
26
26
  "@jsenv/plugin-react": "1.5.44",
27
27
  "@jsenv/plugin-bundling": "2.7.16",
28
28
  "@jsenv/plugin-minification": "1.5.10",
29
29
  "@jsenv/eslint-config-relax": "1.2.12",
30
- "@jsenv/test": "3.5.22",
30
+ "@jsenv/test": "3.5.23",
31
31
  "eslint": "9.14.0",
32
32
  "open": "10.1.0",
33
33
  "@playwright/browser-chromium": "1.48.2",