fix: remove stale script test export (#110133)

This commit is contained in:
Peter Steinberger
2026-07-17 22:58:34 +01:00
committed by GitHub
parent 72335d3d4a
commit e5f258c306
3 changed files with 2 additions and 20 deletions
@@ -1,5 +1,3 @@
export function rewritePackageExtensions(entries: unknown): string[] | undefined;
export function copyBundledPluginMetadata(params?: {
repoRoot?: string;
cwd?: string;
+1 -5
View File
@@ -31,11 +31,7 @@ function shouldCopyBundledPluginMetadata(id, env, buildablePluginDirs) {
return env.OPENCLAW_BUILD_PRIVATE_QA === "1";
}
/**
* Rewrites package extension entries for bundled metadata output.
* @internal Directly tested script implementation detail.
*/
export function rewritePackageExtensions(entries) {
function rewritePackageExtensions(entries) {
if (!Array.isArray(entries)) {
return undefined;
}
@@ -2,10 +2,7 @@
import fs from "node:fs";
import path from "node:path";
import { afterEach, describe, expect, it, vi } from "vitest";
import {
copyBundledPluginMetadata,
rewritePackageExtensions,
} from "../../scripts/copy-bundled-plugin-metadata.mjs";
import { copyBundledPluginMetadata } from "../../scripts/copy-bundled-plugin-metadata.mjs";
import { cleanupTempDirs, makeTempRepoRoot, writeJsonFile } from "../../test/helpers/temp-repo.js";
const tempDirs: string[] = [];
@@ -86,15 +83,6 @@ afterEach(() => {
cleanupTempDirs(tempDirs);
});
describe("rewritePackageExtensions", () => {
it("rewrites TypeScript extension entries to built JS paths", () => {
expect(rewritePackageExtensions(["./index.ts", "./nested/entry.mts"])).toEqual([
"./index.js",
"./nested/entry.js",
]);
});
});
describe("copyBundledPluginMetadata", () => {
it("copies plugin manifests, package metadata, and local skill directories", () => {
const repoRoot = makeRepoRoot("openclaw-bundled-plugin-meta-");