@deot/dev-dever 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 +6 -2
- package/dist/{index.es.js → index.js} +3 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ const sharedReactConfig = require('@deot/dev-react');
|
|
|
13
13
|
const fs = require('node:fs');
|
|
14
14
|
const ejs = require('ejs');
|
|
15
15
|
|
|
16
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
16
17
|
function _interopNamespaceDefault(e) {
|
|
17
18
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
18
19
|
if (e) {
|
|
@@ -33,7 +34,7 @@ function _interopNamespaceDefault(e) {
|
|
|
33
34
|
const path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
34
35
|
const fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
35
36
|
|
|
36
|
-
const dirname$1 = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
37
|
+
const dirname$1 = 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))));
|
|
37
38
|
let target = {
|
|
38
39
|
entries: [],
|
|
39
40
|
html: ""
|
|
@@ -72,9 +73,12 @@ const get = () => {
|
|
|
72
73
|
return target;
|
|
73
74
|
};
|
|
74
75
|
|
|
75
|
-
const dirname = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
76
|
+
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))));
|
|
76
77
|
const run = (options) => devShared.Utils.autoCatch(async () => {
|
|
77
78
|
const locals = devShared.Locals.impl();
|
|
79
|
+
options.packageName = devShared.Locals.getRealPackageName(options.packageName);
|
|
80
|
+
options.vuePackage = devShared.Locals.getRealPackageName(options.vuePackage);
|
|
81
|
+
options.reactPackage = devShared.Locals.getRealPackageName(options.reactPackage);
|
|
78
82
|
if (typeof options.dryRun === "undefined") {
|
|
79
83
|
options.dryRun = process.env.NODE_ENV === "UNIT";
|
|
80
84
|
}
|
|
@@ -51,6 +51,9 @@ const get = () => {
|
|
|
51
51
|
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
52
52
|
const run = (options) => Utils.autoCatch(async () => {
|
|
53
53
|
const locals = Locals.impl();
|
|
54
|
+
options.packageName = Locals.getRealPackageName(options.packageName);
|
|
55
|
+
options.vuePackage = Locals.getRealPackageName(options.vuePackage);
|
|
56
|
+
options.reactPackage = Locals.getRealPackageName(options.reactPackage);
|
|
54
57
|
if (typeof options.dryRun === "undefined") {
|
|
55
58
|
options.dryRun = process.env.NODE_ENV === "UNIT";
|
|
56
59
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-dever",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "dist/index.
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./dist/index.
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
10
|
"require": "./dist/index.cjs",
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@deot/dev-react": "^2.
|
|
25
|
-
"@deot/dev-shared": "^2.
|
|
26
|
-
"@deot/dev-vue": "^2.
|
|
24
|
+
"@deot/dev-react": "^2.6.2",
|
|
25
|
+
"@deot/dev-shared": "^2.6.2",
|
|
26
|
+
"@deot/dev-vue": "^2.6.2",
|
|
27
27
|
"ejs": "^3.1.9",
|
|
28
|
-
"vite": "^4.
|
|
28
|
+
"vite": "^4.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@deot/dev-test": "^2.
|
|
31
|
+
"@deot/dev-test": "^2.6.2",
|
|
32
32
|
"cross-env": "^7.0.3"
|
|
33
33
|
}
|
|
34
34
|
}
|