mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:40:44 +00:00
build: remove private QA package compat shims
This commit is contained in:
@@ -74,6 +74,11 @@ const FORBIDDEN_PACKED_PATH_RULES = [
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include generated docs artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "docs/channels/qa-channel.md",
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA channel docs "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/extensions/qa-channel/",
|
||||
describe: (packedPath: string) =>
|
||||
@@ -84,11 +89,26 @@ const FORBIDDEN_PACKED_PATH_RULES = [
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA lab artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/plugin-sdk/extensions/qa-channel/",
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA channel type artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/plugin-sdk/extensions/qa-lab/",
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA lab type artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/plugin-sdk/qa-channel.",
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA channel SDK artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/plugin-sdk/qa-channel-protocol.",
|
||||
describe: (packedPath: string) =>
|
||||
`npm package must not include private QA channel SDK artifact "${packedPath}".`,
|
||||
},
|
||||
{
|
||||
prefix: "dist/qa-runtime-",
|
||||
describe: (packedPath: string) =>
|
||||
@@ -103,6 +123,8 @@ const FORBIDDEN_PACKED_PATH_RULES = [
|
||||
const FORBIDDEN_PRIVATE_QA_CONTENT_MARKERS = [
|
||||
"//#region extensions/qa-lab/",
|
||||
"qa-channel/runtime-api.js",
|
||||
"qa-channel.js",
|
||||
"qa-channel-protocol.js",
|
||||
"qa-lab/cli.js",
|
||||
"qa-lab/runtime-api.js",
|
||||
] as const;
|
||||
@@ -559,9 +581,6 @@ export function collectForbiddenPackedContentErrors(
|
||||
const textPathPattern = /\.(?:[cm]?js|d\.ts|json|md|mjs|cjs)$/u;
|
||||
const errors: string[] = [];
|
||||
for (const packedPath of paths) {
|
||||
if (packedPath === PACKAGE_DIST_INVENTORY_RELATIVE_PATH) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
!FORBIDDEN_PRIVATE_QA_CONTENT_SCAN_PREFIXES.some((prefix) => packedPath.startsWith(prefix))
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user