@umijs/bundler-utoopack 4.4.13-canary.20250912.1 → 4.4.13-canary.20250915.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.d.ts +1 -2
- package/dist/index.js +5 -7
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { findRootDir } from '@utoo/pack';
|
|
2
1
|
import { IDevOpts } from './config';
|
|
3
2
|
import type { IOpts } from './types';
|
|
4
3
|
export declare function build(opts: IOpts): Promise<any>;
|
|
5
4
|
export declare function dev(opts: IDevOpts): Promise<any>;
|
|
5
|
+
export { findRootDir } from '@utoo/pack';
|
|
6
6
|
export * from './config';
|
|
7
|
-
export { findRootDir };
|
package/dist/index.js
CHANGED
|
@@ -39,19 +39,18 @@ var import_bundler_utils = require("@umijs/bundler-utils");
|
|
|
39
39
|
var import_express = __toESM(require("@umijs/bundler-utils/compiled/express"));
|
|
40
40
|
var import_http_proxy_middleware = require("@umijs/bundler-utils/compiled/http-proxy-middleware");
|
|
41
41
|
var import_utils = require("@umijs/utils");
|
|
42
|
-
var import_pack = require("@utoo/pack");
|
|
43
42
|
var import_fs = __toESM(require("fs"));
|
|
44
43
|
var import_http = __toESM(require("http"));
|
|
45
44
|
var import_path = __toESM(require("path"));
|
|
46
45
|
var import_config = require("./config");
|
|
46
|
+
var import_pack = require("@utoo/pack");
|
|
47
47
|
__reExport(src_exports, require("./config"), module.exports);
|
|
48
48
|
async function build(opts) {
|
|
49
49
|
var _a;
|
|
50
50
|
const { cwd, onBuildComplete } = opts;
|
|
51
51
|
const utooPackConfig = await (0, import_config.getProdUtooPackConfig)(opts);
|
|
52
|
-
|
|
53
|
-
const rootDir = (
|
|
54
|
-
const { build: utooPackBuild } = require("@utoo/pack");
|
|
52
|
+
const { build: utooPackBuild, findRootDir: findRootDir2 } = require("@utoo/pack");
|
|
53
|
+
const rootDir = findRootDir2(cwd);
|
|
55
54
|
try {
|
|
56
55
|
await utooPackBuild(utooPackConfig, cwd, rootDir);
|
|
57
56
|
} catch (e) {
|
|
@@ -88,8 +87,6 @@ async function dev(opts) {
|
|
|
88
87
|
throw new Error("opts should be supplied");
|
|
89
88
|
}
|
|
90
89
|
const utooPackConfig = await (0, import_config.getDevUtooPackConfig)(opts);
|
|
91
|
-
console.log("utooPackConfig: ", JSON.stringify(utooPackConfig, null, 2));
|
|
92
|
-
const rootDir = (0, import_pack.findRootDir)(cwd);
|
|
93
90
|
const app = (0, import_express.default)();
|
|
94
91
|
const cors = require("cors");
|
|
95
92
|
const proxy = require("express-http-proxy");
|
|
@@ -199,7 +196,8 @@ async function dev(opts) {
|
|
|
199
196
|
};
|
|
200
197
|
return stats;
|
|
201
198
|
};
|
|
202
|
-
const { serve: utooPackServe } = require("@utoo/pack");
|
|
199
|
+
const { serve: utooPackServe, findRootDir: findRootDir2 } = require("@utoo/pack");
|
|
200
|
+
const rootDir = findRootDir2(cwd);
|
|
203
201
|
try {
|
|
204
202
|
await utooPackServe(utooPackConfig, cwd, rootDir, {
|
|
205
203
|
port: utooServePort,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utoopack",
|
|
3
|
-
"version": "4.4.13-canary.
|
|
3
|
+
"version": "4.4.13-canary.20250915.2",
|
|
4
4
|
"description": "@umijs/bundler-utoopack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@umijs/bundler-utils": "4.4.13-canary.
|
|
12
|
-
"@utoo/pack": "0.0.1-alpha.
|
|
11
|
+
"@umijs/bundler-utils": "4.4.13-canary.20250915.2",
|
|
12
|
+
"@utoo/pack": "0.0.1-alpha.47",
|
|
13
13
|
"compression": "^1.7.4",
|
|
14
14
|
"connect-history-api-fallback": "^2.0.0",
|
|
15
15
|
"cors": "^2.8.5",
|
|
16
16
|
"express": "^4.18.2",
|
|
17
17
|
"express-http-proxy": "^2.1.1",
|
|
18
18
|
"find-up": "5.0.0",
|
|
19
|
-
"@umijs/bundler-webpack": "4.4.13-canary.
|
|
19
|
+
"@umijs/bundler-webpack": "4.4.13-canary.20250915.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"father": "4.1.5"
|