mbler 0.2.8-rc.4 → 0.2.8-rc.5
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/build.esm.mjs +7 -6
- package/dist/build.esm.mjs.map +1 -1
- package/dist/build.js +7 -6
- package/dist/build.js.map +1 -1
- package/dist/index.esm.mjs +7 -5
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/build.esm.mjs
CHANGED
|
@@ -8,11 +8,11 @@ import * as readline from "readline";
|
|
|
8
8
|
import * as fs$2 from "node:fs";
|
|
9
9
|
import fs$1 from "node:fs";
|
|
10
10
|
import os, { homedir, tmpdir } from "node:os";
|
|
11
|
+
import { pathToFileURL } from "node:url";
|
|
11
12
|
import { styleText } from "node:util";
|
|
12
13
|
import { createMCXLanguagePlugin } from "@mbler/mcx-server";
|
|
13
14
|
import { runTsc } from "@volar/typescript/lib/quickstart/runTsc.js";
|
|
14
15
|
import { env } from "node:process";
|
|
15
|
-
import { pathToFileURL } from "node:url";
|
|
16
16
|
import crypto from "node:crypto";
|
|
17
17
|
//#region \0rolldown/runtime.js
|
|
18
18
|
var __defProp = Object.defineProperty;
|
|
@@ -97,13 +97,13 @@ var init_types = __esmMin((() => {
|
|
|
97
97
|
var version_default;
|
|
98
98
|
var init_version = __esmMin((() => {
|
|
99
99
|
version_default = {
|
|
100
|
-
commit: `commit
|
|
100
|
+
commit: `commit 9c7dd33af32ea582339c20084f4cdcb9b8f53395
|
|
101
101
|
Author: ruanhor <3915264929@qq.com>
|
|
102
|
-
Date: Sun Jun 28
|
|
102
|
+
Date: Sun Jun 28 10:51:05 2026 +0800
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
chore: update changelog
|
|
105
105
|
`,
|
|
106
|
-
version: "0.2.8-rc.
|
|
106
|
+
version: "0.2.8-rc.5"
|
|
107
107
|
};
|
|
108
108
|
}));
|
|
109
109
|
//#endregion
|
|
@@ -654,7 +654,8 @@ function join(baseDir, inputPath) {
|
|
|
654
654
|
return path$1.isAbsolute(inputPath) ? inputPath : path$1.join(baseDir, inputPath);
|
|
655
655
|
}
|
|
656
656
|
async function ReadProjectMblerConfig(project) {
|
|
657
|
-
const
|
|
657
|
+
const configPath = path$1.join(project, BuildConfig.ConfigFile);
|
|
658
|
+
const file = (await (process.platform === "win32" ? import(pathToFileURL(configPath).href) : import(configPath))).default || {};
|
|
658
659
|
for (const key in file) if (!(key in templateMblerConfig)) throw new Error(`[read config]: read config from '${project}' error: Unexpected '${key}'`);
|
|
659
660
|
const config = {
|
|
660
661
|
...templateMblerConfig,
|