@deot/dev-tester 2.5.5 → 2.6.2

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.cjs CHANGED
@@ -10,6 +10,7 @@ const fs = require('fs-extra');
10
10
  const inquirer = require('inquirer');
11
11
  const autocomplete = require('inquirer-autocomplete-prompt');
12
12
 
13
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
13
14
  function _interopNamespaceDefault(e) {
14
15
  const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
15
16
  if (e) {
@@ -90,10 +91,13 @@ const getOptions = async () => {
90
91
  return result;
91
92
  };
92
93
 
93
- const dirname = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
94
+ const dirname = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
94
95
  const run = (options) => devShared.Utils.autoCatch(async () => {
95
96
  options = { ...options };
96
97
  const locals = devShared.Locals.impl();
98
+ options.packageName = devShared.Locals.getRealPackageName(options.packageName);
99
+ options.vuePackage = devShared.Locals.getRealPackageName(options.vuePackage);
100
+ options.reactPackage = devShared.Locals.getRealPackageName(options.reactPackage);
97
101
  if (typeof options.dryRun === "undefined") {
98
102
  options.dryRun = process.env.NODE_ENV === "UNIT";
99
103
  }
@@ -71,6 +71,9 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
71
71
  const run = (options) => Utils.autoCatch(async () => {
72
72
  options = { ...options };
73
73
  const locals = Locals.impl();
74
+ options.packageName = Locals.getRealPackageName(options.packageName);
75
+ options.vuePackage = Locals.getRealPackageName(options.vuePackage);
76
+ options.reactPackage = Locals.getRealPackageName(options.reactPackage);
74
77
  if (typeof options.dryRun === "undefined") {
75
78
  options.dryRun = process.env.NODE_ENV === "UNIT";
76
79
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@deot/dev-tester",
3
- "version": "2.5.5",
3
+ "version": "2.6.2",
4
4
  "type": "module",
5
- "main": "dist/index.es.js",
5
+ "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/index.es.js",
9
+ "import": "./dist/index.js",
10
10
  "require": "./dist/index.cjs",
11
11
  "types": "./dist/index.d.ts"
12
12
  }
@@ -20,14 +20,14 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@deot/dev-react": "^2.5.1",
24
- "@deot/dev-shared": "^2.5.0",
25
- "@deot/dev-vue": "^2.5.1",
26
- "@vitest/coverage-istanbul": "^0.34.3",
23
+ "@deot/dev-react": "^2.6.2",
24
+ "@deot/dev-shared": "^2.6.2",
25
+ "@deot/dev-vue": "^2.6.2",
26
+ "@vitest/coverage-istanbul": "^0.34.6",
27
27
  "cross-env": "^7.0.3",
28
- "inquirer": "^9.2.10",
29
- "inquirer-autocomplete-prompt": "^3.0.0",
28
+ "inquirer": "^9.2.12",
29
+ "inquirer-autocomplete-prompt": "^3.0.1",
30
30
  "jsdom": "^22.1.0",
31
- "vitest": "^0.34.3"
31
+ "vitest": "^0.34.6"
32
32
  }
33
33
  }