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
3 changes: 3 additions & 0 deletions plugin/scripts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
9 changes: 9 additions & 0 deletions src/__tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ describe("plugin/.mcp.json", () => {
});
});

describe("plugin/scripts/package.json", () => {
// The plugin cache copies only plugin/, so this file is what makes Node
// load bundle.js as ESM on versions without module syntax detection
// (Node < 20.19 and 22.0-22.6).
it("marks the bundle directory as ESM", () => {
expect(loadJson("plugin/scripts/package.json").type).toBe("module");
});
});

describe("plugin/skills/ (slash commands)", () => {
it("skills/setup/SKILL.md exists", () => {
expect(existsSync(resolve(ROOT, "plugin/skills/setup/SKILL.md"))).toBe(true);
Expand Down
Loading