fix: harden windows npm runtime path
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
collectAppcastSparkleVersionErrors,
|
||||
collectBundledExtensionManifestErrors,
|
||||
collectBundledExtensionRootDependencyGapErrors,
|
||||
collectForbiddenPackPaths,
|
||||
} from "../scripts/release-check.ts";
|
||||
|
||||
function makeItem(shortVersion: string, sparkleVersion: string): string {
|
||||
@@ -150,3 +151,15 @@ describe("collectBundledExtensionManifestErrors", () => {
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("collectForbiddenPackPaths", () => {
|
||||
it("flags nested node_modules leaking into npm pack output", () => {
|
||||
expect(
|
||||
collectForbiddenPackPaths([
|
||||
"dist/index.js",
|
||||
"extensions/tlon/node_modules/.bin/tlon",
|
||||
"node_modules/.bin/openclaw",
|
||||
]),
|
||||
).toEqual(["extensions/tlon/node_modules/.bin/tlon", "node_modules/.bin/openclaw"]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user