fix(plugin): keep the shared launcher owner outside shipped source trees

This commit is contained in:
morluto 2026-10-13 21:47:04 +08:00
parent 3206274e0b
commit 42ce2c75ab
6 changed files with 5 additions and 6 deletions

View File

@ -63,7 +63,7 @@
"bridge/mitmproxy/capture.py",
"scripts/rea.mjs",
"scripts/plugin-mcp-launcher.mjs",
"src/process/packageRunnerCommand.mjs",
"scripts/lib/packageRunnerCommand.mjs",
"scripts/electron-active-hook.cjs",
"scripts/electron-active-hook-boundaries.cjs",
"scripts/hopper-demo-x11.py",

View File

@ -5,7 +5,7 @@ import { mkdtemp, rm } from "node:fs/promises";
import { constants, tmpdir } from "node:os";
import { join } from "node:path";
import { packageRunnerCommand } from "../src/process/packageRunnerCommand.mjs";
import { packageRunnerCommand } from "./lib/packageRunnerCommand.mjs";
// The manifest owns this exact package pin; args[1] remains release-managed.
// No build, dependency installation or ambient latest-version lookup is needed

View File

@ -2,7 +2,7 @@ import { basename, isAbsolute, resolve } from "node:path";
import { valid } from "semver";
import { PRODUCT_IDENTITY } from "../identity.js";
import { packageRunnerCommand } from "../process/packageRunnerCommand.mjs";
import { packageRunnerCommand } from "../../scripts/lib/packageRunnerCommand.mjs";
/** Package runners whose pinned launcher setup can register. */
export type PackageRunner = "npx" | "bunx";

View File

@ -2,10 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"types": ["node"],
"allowJs": true
"types": ["node"]
},
"include": ["src/**/*.ts", "src/process/packageRunnerCommand.mjs"],
"include": ["src/**/*.ts"],
"exclude": [
"src/**/*.fixture.ts",
"src/**/*.test.ts",