mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 02:06:43 +00:00
fix: remove stale script test export (#110133)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
export function rewritePackageExtensions(entries: unknown): string[] | undefined;
|
||||
|
||||
export function copyBundledPluginMetadata(params?: {
|
||||
repoRoot?: string;
|
||||
cwd?: string;
|
||||
|
||||
@@ -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-");
|
||||
|
||||
Reference in New Issue
Block a user