Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,4 +656,5 @@ Exit codes:

- 0 when docs are current or updated
- 1 when --check finds stale docs

<!-- pluginpack-cli:end -->
885 changes: 362 additions & 523 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@
"zod": "^4.4.3"
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"@types/node": "^24.10.1",
"@eslint/js": "^10.0.1",
"@types/node": "^26.0.1",
"ajv": "^8.20.0",
"ajv-formats": "^3.0.1",
"bintastic": "^4.0.2",
"eslint": "^9.39.4",
"eslint": "^10.6.0",
"fixturify-project": "^7.1.3",
"markdown-code": "^1.1.0",
"prettier": "^3.8.3",
"release-it": "^20.0.1",
"sort-package-json": "^3.6.1",
"sort-package-json": "^4.0.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.0",
"vitest": "^4.0.14"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function replaceGeneratedSection(readme: string, content: string): string {
if (startIndex === -1 || endIndex === -1 || endIndex < startIndex) {
throw new Error("README.md is missing pluginpack CLI marker comments.");
}
return `${readme.slice(0, startIndex + start.length)}\n\n${content}\n${readme.slice(endIndex)}`;
return `${readme.slice(0, startIndex + start.length)}\n\n${content}\n\n${readme.slice(endIndex)}`;
}

/** Reads the package's own version and description, for `--version`/`--help`. */
Expand Down
4 changes: 3 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ async function readSourceManifest(
) as SourcePluginManifest;
} catch (error) {
if (error instanceof SyntaxError) {
throw new Error(`Invalid JSON in ${filePath}: ${error.message}`);
throw new Error(`Invalid JSON in ${filePath}: ${error.message}`, {
cause: error,
});
}
throw error;
}
Expand Down
1 change: 1 addition & 0 deletions src/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ async function readMcpServers(
} catch (error) {
throw new Error(
`Invalid JSON in ${filePath}: ${(error as Error).message}`,
{ cause: error },
);
}
const servers = (parsed as { mcpServers?: unknown }).mcpServers;
Expand Down
6 changes: 1 addition & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ export type {
};

export type TargetName =
| "claude"
| "copilot"
| "cursor"
| "antigravity"
| "codex";
"claude" | "copilot" | "cursor" | "antigravity" | "codex";

/** A discovered source plugin, before it's emitted into any target. */
export type SourcePlugin = {
Expand Down
1 change: 1 addition & 0 deletions src/update-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export function applyUpdateCheck(
`Target "${target}" plugin "${options.pluginName}" has an invalid ` +
`"${HOOKS_FILE_PATH}" (${error instanceof Error ? error.message : String(error)}); ` +
`cannot merge the generated update-check hook.`,
{ cause: error },
);
}
pluginFiles.set(HOOKS_FILE_PATH, merged);
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"sourceMap": true,
"outDir": "dist",
"rootDir": ".",
"types": ["node"]
"types": ["node"],
"ignoreDeprecations": "6.0"
},
"include": ["src/**/*.ts", "tests/**/*.ts"],
"exclude": ["dist", "node_modules"]
Expand Down