13 lines
483 B
TypeScript
13 lines
483 B
TypeScript
import { describe, expect, test } from "vitest";
|
|
import packageJson from "../package.json" with { type: "json" };
|
|
|
|
describe("plugin runtime package exports", () => {
|
|
test("exposes browser-safe subpaths without forcing the node runtime aggregate into web bundles", () => {
|
|
expect(packageJson.exports).toMatchObject({
|
|
"./capabilities": "./src/capabilities.ts",
|
|
"./hooks/registry": "./src/hooks/registry.ts",
|
|
"./manifest": "./src/manifest.ts",
|
|
});
|
|
});
|
|
});
|