修复合并后的仓库检查失败
删除重复维护页原子替换函数并恢复符号链接防护 清理开发栈未使用变量与资源投影正则告警 统一相关测试导入与开发栈导出顺序
This commit is contained in:
@@ -50,7 +50,6 @@ const {
|
||||
viteHost,
|
||||
vitePort,
|
||||
apiPort,
|
||||
bgfilterWorkerPort,
|
||||
spacetimePort,
|
||||
backendDatabase,
|
||||
backendSpacetimeDataDir,
|
||||
@@ -737,8 +736,8 @@ export {
|
||||
preflightExistingVite,
|
||||
readChildFailure,
|
||||
readLinuxProcessGroupAlive,
|
||||
resolveDevStackProfile,
|
||||
resolveBackendTargetsFromState,
|
||||
resolveDevStackProfile,
|
||||
runWindowsTaskkill,
|
||||
spawnChild,
|
||||
stopChild,
|
||||
|
||||
@@ -60,7 +60,7 @@ function fileName(path: string) {
|
||||
|
||||
function isConcreteTaskArtifactPath(path: string) {
|
||||
const normalizedPath = path.trim();
|
||||
return normalizedPath.length > 0 && !/[*?\[\]{}]/u.test(normalizedPath);
|
||||
return normalizedPath.length > 0 && !/[*?[\]{}]/u.test(normalizedPath);
|
||||
}
|
||||
|
||||
export function classifyProjectedResource(input: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { RunnableGameVersion } from '../../../../packages/shared/src/contracts/gameCreationApp';
|
||||
import type { ProjectSupervisorComponentProps } from '../../src/features/app-shell/model';
|
||||
import { WorkspaceLauncherShell } from '../../src/features/app-shell/WorkspaceLauncher';
|
||||
import type { RunnableGameVersion } from '../../../../packages/shared/src/contracts/gameCreationApp';
|
||||
import {
|
||||
act,
|
||||
App,
|
||||
|
||||
@@ -4,12 +4,12 @@ import {
|
||||
createEmptyResourceCanvasLayout,
|
||||
moveResourceCanvasPosition,
|
||||
reconcileResourceCanvasLayout,
|
||||
resourceCanvasContentWidth,
|
||||
RESOURCE_CANVAS_CARD_HEIGHT,
|
||||
RESOURCE_CANVAS_CARD_WIDTH,
|
||||
RESOURCE_CANVAS_COLUMN_GAP,
|
||||
RESOURCE_CANVAS_ROW_GAP,
|
||||
RESOURCE_CANVAS_SECTION_HORIZONTAL_PADDING,
|
||||
resourceCanvasContentWidth,
|
||||
type ResourceCanvasItem,
|
||||
} from '../src/view/project-development/resourceCanvasLayoutModel';
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
isProcessGroupAlive,
|
||||
preflightExistingVite,
|
||||
readLinuxProcessGroupAlive,
|
||||
resolveDevStackProfile,
|
||||
resolveBackendTargetsFromState,
|
||||
resolveDevStackProfile,
|
||||
runWindowsTaskkill,
|
||||
spawnChild,
|
||||
stopChild,
|
||||
|
||||
@@ -37,19 +37,6 @@ replace_file_atomically() {
|
||||
mv -f "${source_file}" "${target_file}"
|
||||
}
|
||||
|
||||
replace_file_atomically() {
|
||||
local source_file="$1"
|
||||
local target_file="$2"
|
||||
|
||||
if [[ -d "${target_file}" && ! -L "${target_file}" ]]; then
|
||||
echo "[maintenance] 原子替换目标不能是目录: ${target_file}" >&2
|
||||
exit 1
|
||||
fi
|
||||
# 源文件与目标文件位于同一目录,POSIX rename 语义即可保证原子替换。
|
||||
# 不使用 GNU mv 专属的 -T,确保 macOS/BSD 本地门禁也能执行。
|
||||
mv -f "${source_file}" "${target_file}"
|
||||
}
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--page-file)
|
||||
|
||||
Reference in New Issue
Block a user