diff --git a/package.json b/package.json index 74bf4c008c2..1eaa2bc7989 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "skills/", "scripts/npm-runner.mjs", "scripts/preinstall-package-manager-warning.mjs", + "scripts/lib/package-dist-imports.mjs", "scripts/postinstall-bundled-plugins.mjs", "scripts/windows-cmd-helpers.mjs" ], diff --git a/scripts/docker/cleanup-smoke/Dockerfile b/scripts/docker/cleanup-smoke/Dockerfile index 892ac2c53a7..b7b37d2ecb8 100644 --- a/scripts/docker/cleanup-smoke/Dockerfile +++ b/scripts/docker/cleanup-smoke/Dockerfile @@ -20,6 +20,7 @@ COPY packages ./packages COPY extensions ./extensions COPY patches ./patches COPY scripts/postinstall-bundled-plugins.mjs scripts/preinstall-package-manager-warning.mjs scripts/npm-runner.mjs scripts/windows-cmd-helpers.mjs ./scripts/ +COPY scripts/lib/package-dist-imports.mjs ./scripts/lib/package-dist-imports.mjs RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \ corepack enable \ && if ! pnpm install --frozen-lockfile >/tmp/openclaw-cleanup-pnpm-install.log 2>&1; then \ diff --git a/scripts/release-check.ts b/scripts/release-check.ts index 7fd2c7fb806..7ac7aa3ef43 100755 --- a/scripts/release-check.ts +++ b/scripts/release-check.ts @@ -69,6 +69,7 @@ const requiredPathGroups = [ ...WORKSPACE_TEMPLATE_PACK_PATHS, "scripts/npm-runner.mjs", "scripts/preinstall-package-manager-warning.mjs", + "scripts/lib/package-dist-imports.mjs", "scripts/postinstall-bundled-plugins.mjs", "dist/plugin-sdk/compat.js", "dist/plugin-sdk/root-alias.cjs", diff --git a/test/release-check.test.ts b/test/release-check.test.ts index 38c1527d2a5..ed17a55696e 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -554,6 +554,7 @@ describe("collectMissingPackPaths", () => { "dist/control-ui/index.html", "scripts/npm-runner.mjs", "scripts/preinstall-package-manager-warning.mjs", + "scripts/lib/package-dist-imports.mjs", "scripts/postinstall-bundled-plugins.mjs", "dist/task-registry-control.runtime.js", bundledDistPluginFile("diffs", "assets/viewer-runtime.js"), @@ -583,6 +584,7 @@ describe("collectMissingPackPaths", () => { ...WORKSPACE_TEMPLATE_PACK_PATHS, "scripts/npm-runner.mjs", "scripts/preinstall-package-manager-warning.mjs", + "scripts/lib/package-dist-imports.mjs", "scripts/postinstall-bundled-plugins.mjs", "dist/plugin-sdk/root-alias.cjs", "dist/task-registry-control.runtime.js",