@bams-app/ui-dev-server 0.0.7 → 0.0.8
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/utils.js +1 -1
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -18,7 +18,7 @@ const ANSI = {
|
|
|
18
18
|
/**
|
|
19
19
|
* 获取项目根目录
|
|
20
20
|
* - 优先使用 WORK_PROJECT_ROOT 环境变量(由 work-cli 注入)
|
|
21
|
-
* - 回退为包目录上溯三层(仓库内 work/
|
|
21
|
+
* - 回退为包目录上溯三层(仓库内 work/tooling/ui-dev-server 或作为依赖安装时均指向项目根)
|
|
22
22
|
* @returns {string} 项目根目录
|
|
23
23
|
*/
|
|
24
24
|
function getRootDir() {
|