@infly/libs 2.2.11 → 2.2.13
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/README.md +8 -3
- package/adapters/webpack/auto-export.js +52 -52
- package/build/build-utils/command.js +57 -57
- package/build/build-utils/deps.js +28 -28
- package/build/build-utils/git.js +254 -254
- package/build/build-utils/preview.js +78 -78
- package/build/build-utils/webhook-single.js +136 -136
- package/build/docker/compose-release.js +79 -79
- package/build/docker/target-release.js +125 -14
- package/build/project-files.js +47 -47
- package/core/async/concurrency.js +29 -29
- package/package.json +1 -1
- package/script/git-automation/git-utils.js +59 -59
- package/script/git-automation/index.js +72 -2
- package/script/git-automation/submodule-utils.js +16 -16
- package/workspace/config.js +144 -144
package/README.md
CHANGED
|
@@ -260,7 +260,7 @@ Windows 本地构建连接 `dockerDesktopLinuxEngine` 失败时,入口尝试
|
|
|
260
260
|
|
|
261
261
|
维护归属:公共构建工具;以 `bin/cli.js`、`build/docker/target-release.js` 和 `deployment-bundle.js` 为实现契约。新增配置字段时同步此节及测试。
|
|
262
262
|
|
|
263
|
-
`infly-libs docker:release` 先单选 target,再多选该 target 的 components。构建在执行命令的机器进行。默认不推送;`--push` 构建、验证后先推送不可变 `<完整40位提交版本>`,再更新 `latest
|
|
263
|
+
`infly-libs docker:release` 先单选 target,再多选该 target 的 components。构建在执行命令的机器进行。默认不推送;`--push` 构建、验证后先推送不可变 `<完整40位提交版本>`,再更新 `latest`;组件显式设置 `mutableTags: false` 时只生成、推送不可变提交标签。`--dry-run` 只解析配置,不联网、不运行 Git/Docker、不创建目录。未使用下述新增字段的既有 target 保持原有构建参数、commit + latest 标签和推送顺序。
|
|
264
264
|
|
|
265
265
|
当 Docker 配置较大时,推荐在 `package.json` 只保留配置入口和真正需要被 Jenkins 直接读取的部署差异:
|
|
266
266
|
|
|
@@ -379,11 +379,16 @@ targets:
|
|
|
379
379
|
- `config`:`infly.docker` 中的外部配置路径,支持 JSON、YAML、JS;外部配置为基础,package 中的同名对象递归覆盖。循环引用和未知格式会直接失败。
|
|
380
380
|
- `compose`:组件构建配置来源,必须指定 `file` 和 `service`。工具从 Compose 服务读取镜像仓库、上下文、Dockerfile、stage 与构建参数;组件显式字段仍可覆盖解析结果。
|
|
381
381
|
- `target` / `buildArgs`:分别映射到 `docker buildx build --target` 和 `--build-arg`;使用 `compose` 时通常无需重复填写。
|
|
382
|
+
- `platform`:可选 Docker 构建平台,例如 `linux/amd64`;映射到 `docker buildx build --platform`。这里的组件字段不同于 CLI 的 `--platform` target 兼容别名。
|
|
383
|
+
- `mutableTags`:默认 `true`,保持 commit + latest 双标签;设为 `false` 时只构建和推送完整 40 位 commit 标签。
|
|
382
384
|
- `requiredFiles`:构建前必须存在的源码仓相对路径,例如前端产物的 `index.html`;缺失时停止构建。
|
|
385
|
+
- `pushBranch` / `pushRef`:target 级可选推送门禁,必须成对配置,例如 `develop` 与 `origin/develop`。仅 `--push` 时要求当前分支匹配、主动 fetch 对应 remote/branch,并要求本地 HEAD 与远端提交相同;`--no-push` 仍允许在其他分支本地验证镜像。
|
|
386
|
+
- `requirements`:target 级可选本机工具最低版本,目前只支持 `node`、`pnpm` 和 `>=x.y.z` 格式。
|
|
387
|
+
- `preBuild`:target 级可选命令参数数组列表,例如 `[["pnpm", "install", "--frozen-lockfile"], ["pnpm", "run", "build:test"]]`。命令不经过 shell,在干净工作树和推送门禁之后、Docker 检查与 `requiredFiles` 校验之前执行;配置具有代码执行权限,必须与源码一样评审。
|
|
383
388
|
- `source`:可选独立源码仓;`directory` 支持单个路径或按优先级排列的候选路径数组,路径均从项目目录解析,采用第一个包含 `.git` 的目录。fetch 后使用指定分支的临时 detached worktree,不切换当前开发分支。交互终端找不到候选仓库时会列出已检查路径、展示路径示例并等待手动输入;取消或非交互环境仍明确说明未执行构建或推送,打印编号化的 clone、fetch 和重跑步骤,全部构建停止,CLI 返回 2。
|
|
384
389
|
- `targetPresets` 与 `targets.*.extends`:可选的具名公共目标配置。preset 可以继续 `extends` 另一个 preset;目标只继承显式指定的 preset,未声明 `extends` 的历史目标不受影响。同名普通对象递归合并;数组、字符串、数字、布尔值和 `null` 由下层整项替换,不按数组下标混合。未知 preset 或循环继承直接失败。本地构建、Compose 发布和部署包生成共用同一解析规则。
|
|
385
390
|
- `releaseScripts`:可选的组件重跑脚本覆盖。默认从项目 scripts 自动识别严格匹配 `release:<组件>:docker` 的脚本,例如 `release:backend:docker`;源码仓缺失时提示 `pnpm run <脚本> -- --platform ...`。只有脚本名称不遵循约定时才需要显式配置;无匹配时提示通用 `pnpm exec infly-libs docker:release` 命令。
|
|
386
|
-
- 无 `source`
|
|
391
|
+
- 无 `source` 时构建当前项目,要求干净工作树;通常配置组件 `expectedRef` 并要求 HEAD 与其相同。target 已配置 `pushBranch` / `pushRef` 时可以省略组件 `expectedRef`,推送同步由 target 门禁负责。有 `source` 时校验临时工作树对应的 origin 分支。
|
|
387
392
|
- `check`:可选镜像内校验,使用 `entrypoint`、`args` 数组及 `addHosts` 数组;失败不推送。配置命令具有代码执行权限,应与源码一样评审,不能来自不可信输入。
|
|
388
393
|
- `deployment`:仅用于部署包生成;`ready=false` 会阻止生成。可设置 `lockName`,默认 `.infly-release.lock`。服务归属和 imageEnv 必须唯一。
|
|
389
394
|
- `runtimeEnv`:可选的服务器运行时环境文件白名单。`sourceFile` 必须是部署目录内已存在的总环境文件,公共脚本不会创建它,并在校验通过后收紧为 600 权限;`targetFile` 是自动生成的应用专用文件。`variables` 默认必需且按 `name` 输出,可用 `sources` 声明按顺序读取的候选源变量,用 `optional=true` 声明可选项。源文件不存在、不是普通文件、必需变量缺失/为空/重复时,在拉取或重建容器前失败;生成使用临时文件原子替换并设置 600 权限。失败时恢复已有专用文件;若这是首次生成且容器已经开始重建,则保留新文件,保证旧镜像可继续通过同一挂载路径回滚。脚本不执行 `source`,也不输出变量值。
|
|
@@ -401,7 +406,7 @@ infly-libs docker:bundle --target demo --dry-run
|
|
|
401
406
|
|
|
402
407
|
`--platform` 是 `--target` 的兼容别名;`--config` 读取 JSON、YAML 或 JS 文件,其顶层直接为 docker 配置。`docker:config` 输出合并和继承后的单行 JSON,便于不安装 YAML 插件的 Jenkins 使用。CLI 参数优先于项目配置;`--backend-dir` 仅覆盖名为 backend 的组件源码目录,并覆盖整个 `source.directory` 候选数组。
|
|
403
408
|
|
|
404
|
-
|
|
409
|
+
构建成功后逐组件输出完整提交版本和 `组件=仓库:<完整40位提交版本>` 机器行;默认还输出 `组件_latest=仓库:latest`,并在推送时先推不可变标签、再更新 `latest`。配置 `mutableTags: false` 的组件不会生成或输出 latest。全部构建结束后打印 `✅ 完成` 汇总块,明确区分不可变提交版本与可选的最新推送镜像。可选 `--cicd-url`(支持等号和空格两种传参形式)只在目标配置 `deployment.ready=true` 时于汇总块尾输出蓝色发布系统链接;未开放部署的平台只提示镜像已推送,不展示可能造成误解的部署入口。“发布系统:”与中文 URL 分为两行,URL 独占一行,OSC 8 显式超链接使用百分号编码后的标准 URL 作为点击目标,确保支持该协议的终端可通过 Ctrl + 鼠标左键完整打开。不传时保持原输出。链接必须是合法 HTTP/HTTPS URL,不含用户名或密码。单组件推送成功且 `--cicd-url` 指向以 `/build` 结尾的 Jenkins 构建地址时,链接会预填“平台”与“镜像版本”参数(`平台 / 完整40位提交版本 / 北京时间`),打开构建页默认即为本次推送镜像;多组件推送或其他地址保持原链接。
|
|
405
410
|
|
|
406
411
|
`docker:bundle` 只生成本地脚本包,不自动部署;输出须是项目内尚不存在的独立子目录。包内包含 config.sh、Compose 覆盖文件和公共 shell 脚本。Jenkins 可直接传入部署项目 `package.json` 声明的精确版本或 caret 范围获取公共包;`docker:bundle` 会在执行时输出实际解析到的 `@infly/libs` 精确版本,供 Jenkins 日志追溯。镜像不需要 Infly 专用版本标签,因此独立项目使用普通 `docker build` 生成的镜像仍可部署。Jenkins 使用既有凭据,调用 `deploy.sh component=repository:commit` 传输并执行。包内仍保留 `promote-image.sh` 供既有 qc 晋升流程兼容使用;低频定制平台直接在本地推送不可变提交标签与 `latest`,Jenkins 不再调用晋升脚本。运行部署脚本会操作服务器,必须由开发者手动触发既定任务。
|
|
407
412
|
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Webpack require.context 适配器。
|
|
3
|
-
* 自动导出目录下所有文件
|
|
4
|
-
* @param {Function} requireContext - require.context 返回的函数
|
|
5
|
-
* @returns {Object} 导出对象,key 为文件名(不含扩展名),value 为模块内容
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // 在 components/Dialog/index.js 中使用
|
|
3
|
+
* 自动导出目录下所有文件
|
|
4
|
+
* @param {Function} requireContext - require.context 返回的函数
|
|
5
|
+
* @returns {Object} 导出对象,key 为文件名(不含扩展名),value 为模块内容
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* // 在 components/Dialog/index.js 中使用
|
|
9
9
|
* import { autoExportFiles } from '@infly/libs/adapters/webpack/auto-export';
|
|
10
|
-
* const components = autoExportFiles(require.context('./', false, /\.vue$/));
|
|
11
|
-
* Object.keys(components).forEach(name => {
|
|
12
|
-
* module.exports[name] = components[name];
|
|
13
|
-
* });
|
|
14
|
-
*
|
|
15
|
-
* // 或者直接一行
|
|
16
|
-
* Object.assign(module.exports, autoExportFiles(require.context('./', false, /\.vue$/)));
|
|
17
|
-
*/
|
|
18
|
-
function autoExportFiles(requireContext) {
|
|
19
|
-
if (!requireContext || typeof requireContext !== 'function') {
|
|
20
|
-
console.error('autoExportFiles: requireContext 必须是 require.context 返回的函数');
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const exports = {};
|
|
25
|
-
|
|
26
|
-
requireContext.keys().forEach(fileName => {
|
|
27
|
-
// 跳过 index 文件自身
|
|
28
|
-
if (fileName.includes('index')) return;
|
|
29
|
-
|
|
30
|
-
const componentConfig = requireContext(fileName);
|
|
31
|
-
const componentName = fileName
|
|
32
|
-
.replace(/^\.\//, '') // 移除 './'
|
|
33
|
-
.replace(/\.\w+$/, ''); // 移除扩展名
|
|
34
|
-
|
|
35
|
-
exports[componentName] = componentConfig.default || componentConfig;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return exports;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* 简化版:直接挂载到 module.exports
|
|
43
|
-
* @param {Function} requireContext - require.context 返回的函数
|
|
44
|
-
* @param {Object} targetExports - 目标导出对象(通常是 module.exports)
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* // 在 components/Dialog/index.js 中使用
|
|
10
|
+
* const components = autoExportFiles(require.context('./', false, /\.vue$/));
|
|
11
|
+
* Object.keys(components).forEach(name => {
|
|
12
|
+
* module.exports[name] = components[name];
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* // 或者直接一行
|
|
16
|
+
* Object.assign(module.exports, autoExportFiles(require.context('./', false, /\.vue$/)));
|
|
17
|
+
*/
|
|
18
|
+
function autoExportFiles(requireContext) {
|
|
19
|
+
if (!requireContext || typeof requireContext !== 'function') {
|
|
20
|
+
console.error('autoExportFiles: requireContext 必须是 require.context 返回的函数');
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const exports = {};
|
|
25
|
+
|
|
26
|
+
requireContext.keys().forEach(fileName => {
|
|
27
|
+
// 跳过 index 文件自身
|
|
28
|
+
if (fileName.includes('index')) return;
|
|
29
|
+
|
|
30
|
+
const componentConfig = requireContext(fileName);
|
|
31
|
+
const componentName = fileName
|
|
32
|
+
.replace(/^\.\//, '') // 移除 './'
|
|
33
|
+
.replace(/\.\w+$/, ''); // 移除扩展名
|
|
34
|
+
|
|
35
|
+
exports[componentName] = componentConfig.default || componentConfig;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
return exports;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 简化版:直接挂载到 module.exports
|
|
43
|
+
* @param {Function} requireContext - require.context 返回的函数
|
|
44
|
+
* @param {Object} targetExports - 目标导出对象(通常是 module.exports)
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // 在 components/Dialog/index.js 中使用
|
|
48
48
|
* import { autoExportToModule } from '@infly/libs/adapters/webpack/auto-export';
|
|
49
|
-
* autoExportToModule(require.context('./', false, /\.vue$/), module.exports);
|
|
50
|
-
*/
|
|
51
|
-
function autoExportToModule(requireContext, targetExports) {
|
|
52
|
-
const files = autoExportFiles(requireContext);
|
|
53
|
-
Object.assign(targetExports, files);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { autoExportFiles, autoExportToModule };
|
|
49
|
+
* autoExportToModule(require.context('./', false, /\.vue$/), module.exports);
|
|
50
|
+
*/
|
|
51
|
+
function autoExportToModule(requireContext, targetExports) {
|
|
52
|
+
const files = autoExportFiles(requireContext);
|
|
53
|
+
Object.assign(targetExports, files);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { autoExportFiles, autoExportToModule };
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
const { spawn } = require("child_process");
|
|
2
|
-
|
|
3
|
-
function run(command, args, options = {}) {
|
|
4
|
-
return new Promise((resolve, reject) => {
|
|
5
|
-
const useShell = options.shell !== undefined ? options.shell : process.platform === "win32";
|
|
6
|
-
// Avoid DEP0190: when shell=true, pass command+args as single string
|
|
7
|
-
const [cmd, cmdArgs] = useShell
|
|
8
|
-
? [[command, ...args].join(" "), []]
|
|
9
|
-
: [command, args];
|
|
10
|
-
const child = spawn(cmd, cmdArgs, {
|
|
11
|
-
cwd: options.cwd || process.cwd(),
|
|
12
|
-
env: {
|
|
13
|
-
...process.env,
|
|
14
|
-
...(options.env || {})
|
|
15
|
-
},
|
|
16
|
-
stdio: options.stdio || "inherit",
|
|
17
|
-
shell: useShell
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
child.on("close", (code) => {
|
|
21
|
-
if (code === 0) {
|
|
22
|
-
resolve();
|
|
23
|
-
} else {
|
|
24
|
-
reject(new Error(`${command} ${args.join(" ")} failed with exit code ${code}`));
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
child.on("error", reject);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function spawnBackground(command, args, options = {}) {
|
|
33
|
-
const useShell = options.shell !== undefined ? options.shell : process.platform === "win32";
|
|
34
|
-
const [cmd, cmdArgs] = useShell
|
|
35
|
-
? [[command, ...args].join(" "), []]
|
|
36
|
-
: [command, args];
|
|
37
|
-
const child = spawn(cmd, cmdArgs, {
|
|
38
|
-
cwd: options.cwd || process.cwd(),
|
|
39
|
-
env: {
|
|
40
|
-
...process.env,
|
|
41
|
-
...(options.env || {})
|
|
42
|
-
},
|
|
43
|
-
stdio: options.stdio || "inherit",
|
|
44
|
-
shell: useShell
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
child.on("error", (error) => {
|
|
48
|
-
console.error(error.message);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
return child;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
module.exports = {
|
|
55
|
-
run,
|
|
56
|
-
spawnBackground
|
|
57
|
-
};
|
|
1
|
+
const { spawn } = require("child_process");
|
|
2
|
+
|
|
3
|
+
function run(command, args, options = {}) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
const useShell = options.shell !== undefined ? options.shell : process.platform === "win32";
|
|
6
|
+
// Avoid DEP0190: when shell=true, pass command+args as single string
|
|
7
|
+
const [cmd, cmdArgs] = useShell
|
|
8
|
+
? [[command, ...args].join(" "), []]
|
|
9
|
+
: [command, args];
|
|
10
|
+
const child = spawn(cmd, cmdArgs, {
|
|
11
|
+
cwd: options.cwd || process.cwd(),
|
|
12
|
+
env: {
|
|
13
|
+
...process.env,
|
|
14
|
+
...(options.env || {})
|
|
15
|
+
},
|
|
16
|
+
stdio: options.stdio || "inherit",
|
|
17
|
+
shell: useShell
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
child.on("close", (code) => {
|
|
21
|
+
if (code === 0) {
|
|
22
|
+
resolve();
|
|
23
|
+
} else {
|
|
24
|
+
reject(new Error(`${command} ${args.join(" ")} failed with exit code ${code}`));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
child.on("error", reject);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function spawnBackground(command, args, options = {}) {
|
|
33
|
+
const useShell = options.shell !== undefined ? options.shell : process.platform === "win32";
|
|
34
|
+
const [cmd, cmdArgs] = useShell
|
|
35
|
+
? [[command, ...args].join(" "), []]
|
|
36
|
+
: [command, args];
|
|
37
|
+
const child = spawn(cmd, cmdArgs, {
|
|
38
|
+
cwd: options.cwd || process.cwd(),
|
|
39
|
+
env: {
|
|
40
|
+
...process.env,
|
|
41
|
+
...(options.env || {})
|
|
42
|
+
},
|
|
43
|
+
stdio: options.stdio || "inherit",
|
|
44
|
+
shell: useShell
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
child.on("error", (error) => {
|
|
48
|
+
console.error(error.message);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return child;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
module.exports = {
|
|
55
|
+
run,
|
|
56
|
+
spawnBackground
|
|
57
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 从项目的 webpack/vite 等构建配置中解析对兄弟 app 的依赖。
|
|
6
|
-
*
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 从项目的 webpack/vite 等构建配置中解析对兄弟 app 的依赖。
|
|
6
|
+
*
|
|
7
7
|
* 规则:如果 vue.config.js / vite.config.* / next.config.* 的 alias 中存在指向 ../ 的路径,
|
|
8
|
-
* 则认为当前项目依赖该兄弟 app,构建前需要确保兄弟 app 源码是最新的。
|
|
9
|
-
*
|
|
10
|
-
* 示例(vue.config.js):
|
|
11
|
-
* alias: {
|
|
12
|
-
* "@example-admin": projectResolve("../example-admin/src")
|
|
13
|
-
* }
|
|
14
|
-
*
|
|
15
|
-
* @param {string} appDir - 当前 app 目录的绝对路径
|
|
16
|
-
* @returns {string[]} 兄弟 app 根目录(含 package.json)的绝对路径列表
|
|
17
|
-
*/
|
|
8
|
+
* 则认为当前项目依赖该兄弟 app,构建前需要确保兄弟 app 源码是最新的。
|
|
9
|
+
*
|
|
10
|
+
* 示例(vue.config.js):
|
|
11
|
+
* alias: {
|
|
12
|
+
* "@example-admin": projectResolve("../example-admin/src")
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* @param {string} appDir - 当前 app 目录的绝对路径
|
|
16
|
+
* @returns {string[]} 兄弟 app 根目录(含 package.json)的绝对路径列表
|
|
17
|
+
*/
|
|
18
18
|
function resolveSiblingAppDeps(appDir) {
|
|
19
19
|
const siblings = [];
|
|
20
20
|
const configFiles = [
|
|
@@ -51,13 +51,13 @@ function resolveSiblingAppDeps(appDir) {
|
|
|
51
51
|
addSibling(match[2]);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
for (const configFile of configFiles) {
|
|
56
|
-
const configPath = path.join(appDir, configFile);
|
|
57
|
-
if (!fs.existsSync(configPath)) continue;
|
|
58
|
-
|
|
59
|
-
const content = fs.readFileSync(configPath, "utf8");
|
|
60
|
-
|
|
54
|
+
|
|
55
|
+
for (const configFile of configFiles) {
|
|
56
|
+
const configPath = path.join(appDir, configFile);
|
|
57
|
+
if (!fs.existsSync(configPath)) continue;
|
|
58
|
+
|
|
59
|
+
const content = fs.readFileSync(configPath, "utf8");
|
|
60
|
+
|
|
61
61
|
// 匹配 alias 中指向 ../ 兄弟目录的值,兼容以下写法:
|
|
62
62
|
// "@foo": projectResolve("../foo/src")
|
|
63
63
|
// "@foo": resolve("../foo/src")
|
|
@@ -77,8 +77,8 @@ function resolveSiblingAppDeps(appDir) {
|
|
|
77
77
|
|
|
78
78
|
[...objectAliasPatterns, ...arrayAliasPatterns].forEach((pattern) => collectMatches(content, pattern));
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
return siblings;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
module.exports = { resolveSiblingAppDeps };
|
|
80
|
+
|
|
81
|
+
return siblings;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
module.exports = { resolveSiblingAppDeps };
|