@icyfenix-dmla/cli 2026.5.13-2356 → 2026.5.14-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/package.json +1 -1
- package/src/commands/server.js +7 -7
- package/version.json +2 -2
package/package.json
CHANGED
package/src/commands/server.js
CHANGED
|
@@ -369,12 +369,12 @@ function findProgressReporterPath() {
|
|
|
369
369
|
* --dev 模式下需要挂载此目录
|
|
370
370
|
*/
|
|
371
371
|
function findSharedModulesPath() {
|
|
372
|
-
// 开发环境路径:packages/cli/src/commands -> ../../../local-server/
|
|
373
|
-
const devPath = path.resolve(__dirname, '../../../local-server/
|
|
374
|
-
// npm 包路径:packages/cli/src/commands -> ../../
|
|
375
|
-
const npmPath = path.resolve(__dirname, '../../
|
|
376
|
-
// CLI 包根目录下的
|
|
377
|
-
const cliRootPath = path.resolve(__dirname, '../../
|
|
372
|
+
// 开发环境路径:packages/cli/src/commands -> ../../../local-server/shared
|
|
373
|
+
const devPath = path.resolve(__dirname, '../../../local-server/shared')
|
|
374
|
+
// npm 包路径:packages/cli/src/commands -> ../../shared(构建后)
|
|
375
|
+
const npmPath = path.resolve(__dirname, '../../shared')
|
|
376
|
+
// CLI 包根目录下的 shared(构建后)
|
|
377
|
+
const cliRootPath = path.resolve(__dirname, '../../shared')
|
|
378
378
|
|
|
379
379
|
// 优先使用开发环境路径(如果 local-server 存在)
|
|
380
380
|
if (fs.existsSync(devPath) && fs.readdirSync(devPath).length > 0) {
|
|
@@ -473,7 +473,7 @@ export async function startServerSync(port, useGpu = false, dev = false, shmSize
|
|
|
473
473
|
|
|
474
474
|
if (dev && !sharedModulesPath) {
|
|
475
475
|
console.log(chalk.yellow('⚠️ --dev 模式需要共享模块目录'))
|
|
476
|
-
console.log(chalk.gray(' 未找到
|
|
476
|
+
console.log(chalk.gray(' 未找到 shared 目录,将仅使用镜像内置模块'))
|
|
477
477
|
}
|
|
478
478
|
if (dev && !kernelRunnerPath) {
|
|
479
479
|
console.log(chalk.yellow('⚠️ --dev 模式需要 kernel_runner.py'))
|
package/version.json
CHANGED