Skip to content

Commit be77dff

Browse files
committed
fix: restore build and test fixtures
1 parent 229c9f9 commit be77dff

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

apps/webapp/app/components/dashboard-agent/tooltip-accessible-name.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const NO_AS_CHILD_BASELINE = new Set([
6161
"app/components/code/TSQLResultsTable.tsx::TextLink",
6262
"app/components/integrations/VercelLink.tsx::LinkButton",
6363
"app/components/primitives/CopyButton.tsx::Button",
64-
"app/components/primitives/LabelValueStack.tsx::a",
6564
"app/components/runs/v3/RunTag.tsx::Link",
6665
"app/components/runs/v3/TaskRunsTable.tsx::DialogTrigger",
6766
"app/routes/account.tokens/route.tsx::DialogTrigger",

knip.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/knip@6/schema.json",
3+
"tags": ["-knipignore"],
34
"workspaces": {
45
".": {
56
"entry": ["scripts/**/*.{js,mjs,cjs,ts,mts,cts}"],
@@ -62,7 +63,8 @@
6263
"src/index.ts",
6364
"src/entryPoints/**/*.ts",
6465
"src/**/*-cjs.cts",
65-
"src/dev/devWatchdog.ts"
66+
"src/dev/devWatchdog.ts",
67+
"src/shims/esm.ts"
6668
],
6769
"ignoreDependencies": ["@epic-web/test-server", "execa", "find-up"],
6870
"ignoreBinaries": ["xdg-open"]

packages/cli-v3/src/build/buildWorker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export async function buildWorker(options: BuildWorkerOptions) {
142142
return buildManifest;
143143
}
144144

145-
function rewriteBuildManifestPaths(
145+
/** @knipignore Exported for the CLI end-to-end suite. */
146+
export function rewriteBuildManifestPaths(
146147
buildManifest: BuildManifest,
147148
destinationDir: string
148149
): BuildManifest {

packages/cli-v3/src/shims/esm.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createRequire } from "node:module";
2+
import path from "node:path";
3+
import url from "node:url";
4+
5+
// @ts-ignore
6+
globalThis.require = createRequire(import.meta.url);
7+
// @ts-ignore
8+
globalThis.__filename = url.fileURLToPath(import.meta.url);
9+
globalThis.__dirname = path.dirname(__filename);

0 commit comments

Comments
 (0)