mbler 0.2.8-rc.4 → 0.2.8-rc.6

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.
@@ -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 16d7601ca78c6e6179b16bb2ee694ae0f51bf038
100
+ commit: `commit edde76432cb9fdd52fbb335f8ea53335a925a2ae
101
101
  Author: ruanhor <3915264929@qq.com>
102
- Date: Sun Jun 28 00:17:14 2026 +0800
102
+ Date: Sun Jun 28 11:15:28 2026 +0800
103
103
 
104
- fix: use forward slash normalization instead of pathToFileURL for Windows dynamic import compat; add version.d.ts to eslint allowDefaultProject
104
+ chore: update pnpm-lock.yaml for @mbler/mcx-server dep change
105
105
  `,
106
- version: "0.2.8-rc.4"
106
+ version: "0.2.8-rc.6"
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 file = (await import(path$1.join(project, BuildConfig.ConfigFile).replace(/\\/g, "/"))).default || {};
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,