@modality-counter/core 2.8.1 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,16 +17,9 @@ export { validateProtocolFile } from "./schemas/protocol-validation.js";
17
17
  export { extractCodeBlocks, extractYamlBlocks, readMdxPrompt, readMdxYaml, readPrompt, } from "./util_prompts";
18
18
  export { readMdx, importMdx } from "./util_mdx";
19
19
  /**
20
- * Test setups (validation setup functions)
20
+ * Test setup helpers live in a separate entry point to keep bun:test
21
+ * out of the main bundle: import from "@modality-counter/core/testing".
21
22
  */
22
- export { setupCategoryLinkValidation } from "./tools/setupCategoryLinkValidation.js";
23
- export { setupMethodValidation } from "./tools/setupMethodValidation.js";
24
- export { setupPersonaValidation } from "./tools/setupPersonaValidation.js";
25
- export { setupTemplateValidation } from "./tools/setupTemplateValidation.js";
26
- /**
27
- * Validation
28
- */
29
- export { setupSingleMethodValidation } from "./tools/setupSingleMethodValidation.js";
30
23
  /**
31
24
  * Protocols
32
25
  */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Test setup helpers (Bun test based).
3
+ *
4
+ * Import from "@modality-counter/core/testing" to avoid pulling bun:test into the main bundle.
5
+ */
6
+ export { setupCategoryLinkValidation } from "./tools/setupCategoryLinkValidation.js";
7
+ export { setupMethodValidation } from "./tools/setupMethodValidation.js";
8
+ export { setupPersonaValidation } from "./tools/setupPersonaValidation.js";
9
+ export { setupTemplateValidation } from "./tools/setupTemplateValidation.js";
10
+ export { setupSingleMethodValidation } from "./tools/setupSingleMethodValidation.js";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.8.1",
2
+ "version": "2.9.1",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",
@@ -37,9 +37,16 @@
37
37
  "xdm": "3.4.0"
38
38
  },
39
39
  "exports": {
40
- "types": "./dist/types/index.d.ts",
41
- "require": "./dist/index.js",
42
- "import": "./dist/index.js"
40
+ ".": {
41
+ "types": "./dist/types/index.d.ts",
42
+ "require": "./dist/index.js",
43
+ "import": "./dist/index.js"
44
+ },
45
+ "./testing": {
46
+ "types": "./dist/types/testing.d.ts",
47
+ "require": "./dist/testing.js",
48
+ "import": "./dist/testing.js"
49
+ }
43
50
  },
44
51
  "types": "./dist/types/index.d.ts",
45
52
  "main": "./dist/index.js",