@utoo/pack 1.3.9 → 1.3.10
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/cjs/commands/build.js +2 -1
- package/cjs/core/hmr.js +2 -1
- package/cjs/core/project.js +1 -1
- package/esm/commands/build.js +2 -1
- package/esm/core/hmr.js +2 -1
- package/esm/core/project.js +1 -1
- package/package.json +9 -9
package/cjs/commands/build.js
CHANGED
|
@@ -35,6 +35,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
|
|
|
35
35
|
await (0, xcodeProfile_1.xcodeProfilingReady)();
|
|
36
36
|
}
|
|
37
37
|
const resolvedProjectPath = projectPath || process.cwd();
|
|
38
|
+
const resolvedRootPath = rootPath || projectPath || process.cwd();
|
|
38
39
|
(0, htmlEntry_1.processHtmlEntry)(bundleOptions.config, resolvedProjectPath);
|
|
39
40
|
(0, validateEntry_1.validateEntryPaths)(bundleOptions.config, resolvedProjectPath);
|
|
40
41
|
const createProject = (0, project_1.projectFactory)();
|
|
@@ -53,7 +54,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
|
|
|
53
54
|
pluginRuntimeStrategy: (_d = (_c = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _c === void 0 ? void 0 : _c.pluginRuntimeStrategy) !== null && _d !== void 0 ? _d : ((0, runtimePluginStratety_1.useWorkerThreads)() ? "workerThreads" : "childProcesses"),
|
|
54
55
|
},
|
|
55
56
|
projectPath: (0, normalize_path_1.normalizePath)(resolvedProjectPath),
|
|
56
|
-
rootPath:
|
|
57
|
+
rootPath: resolvedRootPath,
|
|
57
58
|
packPath: (0, common_1.getPackPath)(),
|
|
58
59
|
}, {
|
|
59
60
|
persistentCaching: (_e = bundleOptions.config.persistentCaching) !== null && _e !== void 0 ? _e : false,
|
package/cjs/core/hmr.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.FAST_REFRESH_RUNTIME_RELOAD = "Fast Refresh had to perform a full reload
|
|
|
26
26
|
async function createHotReloader(bundleOptions, projectPath, rootPath) {
|
|
27
27
|
var _a, _b, _c, _d, _e, _f;
|
|
28
28
|
const resolvedProjectPath = projectPath || process.cwd();
|
|
29
|
+
const resolvedRootPath = rootPath || projectPath || process.cwd();
|
|
29
30
|
(0, htmlEntry_1.processHtmlEntry)(bundleOptions.config, resolvedProjectPath);
|
|
30
31
|
(0, validateEntry_1.validateEntryPaths)(bundleOptions.config, resolvedProjectPath);
|
|
31
32
|
const createProject = (0, project_1.projectFactory)();
|
|
@@ -51,7 +52,7 @@ async function createHotReloader(bundleOptions, projectPath, rootPath) {
|
|
|
51
52
|
pluginRuntimeStrategy: (_e = (_d = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _d === void 0 ? void 0 : _d.pluginRuntimeStrategy) !== null && _e !== void 0 ? _e : ((0, runtimePluginStratety_1.useWorkerThreads)() ? "workerThreads" : "childProcesses"),
|
|
52
53
|
},
|
|
53
54
|
projectPath: (0, normalize_path_1.normalizePath)(resolvedProjectPath),
|
|
54
|
-
rootPath:
|
|
55
|
+
rootPath: resolvedRootPath,
|
|
55
56
|
packPath: (0, common_1.getPackPath)(),
|
|
56
57
|
}, {
|
|
57
58
|
persistentCaching: (_f = bundleOptions.config.persistentCaching) !== null && _f !== void 0 ? _f : false,
|
package/cjs/core/project.js
CHANGED
package/esm/commands/build.js
CHANGED
|
@@ -29,6 +29,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
|
|
|
29
29
|
await xcodeProfilingReady();
|
|
30
30
|
}
|
|
31
31
|
const resolvedProjectPath = projectPath || process.cwd();
|
|
32
|
+
const resolvedRootPath = rootPath || projectPath || process.cwd();
|
|
32
33
|
processHtmlEntry(bundleOptions.config, resolvedProjectPath);
|
|
33
34
|
validateEntryPaths(bundleOptions.config, resolvedProjectPath);
|
|
34
35
|
const createProject = projectFactory();
|
|
@@ -47,7 +48,7 @@ async function buildInternal(bundleOptions, projectPath, rootPath) {
|
|
|
47
48
|
pluginRuntimeStrategy: (_d = (_c = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _c === void 0 ? void 0 : _c.pluginRuntimeStrategy) !== null && _d !== void 0 ? _d : (useWorkerThreads() ? "workerThreads" : "childProcesses"),
|
|
48
49
|
},
|
|
49
50
|
projectPath: normalizePath(resolvedProjectPath),
|
|
50
|
-
rootPath:
|
|
51
|
+
rootPath: resolvedRootPath,
|
|
51
52
|
packPath: getPackPath(),
|
|
52
53
|
}, {
|
|
53
54
|
persistentCaching: (_e = bundleOptions.config.persistentCaching) !== null && _e !== void 0 ? _e : false,
|
package/esm/core/hmr.js
CHANGED
|
@@ -18,6 +18,7 @@ export const FAST_REFRESH_RUNTIME_RELOAD = "Fast Refresh had to perform a full r
|
|
|
18
18
|
export async function createHotReloader(bundleOptions, projectPath, rootPath) {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f;
|
|
20
20
|
const resolvedProjectPath = projectPath || process.cwd();
|
|
21
|
+
const resolvedRootPath = rootPath || projectPath || process.cwd();
|
|
21
22
|
processHtmlEntry(bundleOptions.config, resolvedProjectPath);
|
|
22
23
|
validateEntryPaths(bundleOptions.config, resolvedProjectPath);
|
|
23
24
|
const createProject = projectFactory();
|
|
@@ -43,7 +44,7 @@ export async function createHotReloader(bundleOptions, projectPath, rootPath) {
|
|
|
43
44
|
pluginRuntimeStrategy: (_e = (_d = bundleOptions === null || bundleOptions === void 0 ? void 0 : bundleOptions.config) === null || _d === void 0 ? void 0 : _d.pluginRuntimeStrategy) !== null && _e !== void 0 ? _e : (useWorkerThreads() ? "workerThreads" : "childProcesses"),
|
|
44
45
|
},
|
|
45
46
|
projectPath: normalizePath(resolvedProjectPath),
|
|
46
|
-
rootPath:
|
|
47
|
+
rootPath: resolvedRootPath,
|
|
47
48
|
packPath: getPackPath(),
|
|
48
49
|
}, {
|
|
49
50
|
persistentCaching: (_f = bundleOptions.config.persistentCaching) !== null && _f !== void 0 ? _f : false,
|
package/esm/core/project.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "esm/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@hono/node-server": "^1.19.11",
|
|
42
42
|
"@hono/node-ws": "^1.3.0",
|
|
43
43
|
"@swc/helpers": "0.5.15",
|
|
44
|
-
"@utoo/pack-shared": "1.3.
|
|
44
|
+
"@utoo/pack-shared": "1.3.10",
|
|
45
45
|
"domparser-rs": "^0.0.7",
|
|
46
46
|
"find-up": "4.1.0",
|
|
47
47
|
"get-port": "^7.1.0",
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
},
|
|
93
93
|
"repository": "git@github.com:utooland/utoo.git",
|
|
94
94
|
"optionalDependencies": {
|
|
95
|
-
"@utoo/pack-darwin-arm64": "1.3.
|
|
96
|
-
"@utoo/pack-darwin-x64": "1.3.
|
|
97
|
-
"@utoo/pack-linux-arm64-gnu": "1.3.
|
|
98
|
-
"@utoo/pack-linux-arm64-musl": "1.3.
|
|
99
|
-
"@utoo/pack-linux-x64-gnu": "1.3.
|
|
100
|
-
"@utoo/pack-linux-x64-musl": "1.3.
|
|
101
|
-
"@utoo/pack-win32-x64-msvc": "1.3.
|
|
95
|
+
"@utoo/pack-darwin-arm64": "1.3.10",
|
|
96
|
+
"@utoo/pack-darwin-x64": "1.3.10",
|
|
97
|
+
"@utoo/pack-linux-arm64-gnu": "1.3.10",
|
|
98
|
+
"@utoo/pack-linux-arm64-musl": "1.3.10",
|
|
99
|
+
"@utoo/pack-linux-x64-gnu": "1.3.10",
|
|
100
|
+
"@utoo/pack-linux-x64-musl": "1.3.10",
|
|
101
|
+
"@utoo/pack-win32-x64-msvc": "1.3.10"
|
|
102
102
|
}
|
|
103
103
|
}
|