@contractspec/example.content-generation 1.57.0 → 1.58.0

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.
package/dist/generate.js CHANGED
@@ -1,48 +1,51 @@
1
- import { BlogGenerator, EmailCampaignGenerator, LandingPageGenerator, SocialPostGenerator } from "@contractspec/lib.content-gen/generators";
1
+ // @bun
2
+ // src/generate.ts
3
+ import {
4
+ BlogGenerator,
5
+ EmailCampaignGenerator,
6
+ LandingPageGenerator,
7
+ SocialPostGenerator
8
+ } from "@contractspec/lib.content-gen/generators";
2
9
  import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
3
- import { LogLevel, Logger } from "@contractspec/lib.logger";
4
-
5
- //#region src/generate.ts
6
- const logger = new Logger({
7
- level: process.env.NODE_ENV === "production" ? LogLevel.INFO : LogLevel.DEBUG,
8
- environment: process.env.NODE_ENV || "development",
9
- enableColors: process.env.NODE_ENV !== "production"
10
+ import { Logger, LogLevel } from "@contractspec/lib.logger";
11
+ var logger = new Logger({
12
+ level: LogLevel.DEBUG,
13
+ environment: "development",
14
+ enableColors: true
10
15
  });
11
16
  async function runContentGenerationExample() {
12
- const brief = {
13
- title: "AI-Native Operations Copilot",
14
- summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
15
- problems: ["Support queues pile up after hours", "Growth teams lack fresh experiments"],
16
- solutions: [
17
- "Stateful AI agents grounded in your knowledge spaces",
18
- "CI-safe approval workflows for human review",
19
- "Analytics + experimentation stack built into ContractSpec"
20
- ],
21
- metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
22
- audience: {
23
- role: "COO",
24
- industry: "Fintech",
25
- maturity: "scaleup"
26
- },
27
- callToAction: "Book a 15‑minute pilot run"
28
- };
29
- const blog = await new BlogGenerator().generate(brief);
30
- const landing = await new LandingPageGenerator().generate(brief);
31
- const email = await new EmailCampaignGenerator().generate({
32
- brief,
33
- variant: "announcement"
34
- });
35
- const social = await new SocialPostGenerator().generate(brief);
36
- const seo = new SeoOptimizer().optimize(brief);
37
- logger.info("Generated content assets", {
38
- blogIntro: blog.intro,
39
- landingHero: landing.hero,
40
- emailSubject: email.subject,
41
- socialPosts: social.map((post) => post.body),
42
- seo
43
- });
17
+ const brief = {
18
+ title: "AI-Native Operations Copilot",
19
+ summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
20
+ problems: [
21
+ "Support queues pile up after hours",
22
+ "Growth teams lack fresh experiments"
23
+ ],
24
+ solutions: [
25
+ "Stateful AI agents grounded in your knowledge spaces",
26
+ "CI-safe approval workflows for human review",
27
+ "Analytics + experimentation stack built into ContractSpec"
28
+ ],
29
+ metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
30
+ audience: { role: "COO", industry: "Fintech", maturity: "scaleup" },
31
+ callToAction: "Book a 15\u2011minute pilot run"
32
+ };
33
+ const blog = await new BlogGenerator().generate(brief);
34
+ const landing = await new LandingPageGenerator().generate(brief);
35
+ const email = await new EmailCampaignGenerator().generate({
36
+ brief,
37
+ variant: "announcement"
38
+ });
39
+ const social = await new SocialPostGenerator().generate(brief);
40
+ const seo = new SeoOptimizer().optimize(brief);
41
+ logger.info("Generated content assets", {
42
+ blogIntro: blog.intro,
43
+ landingHero: landing.hero,
44
+ emailSubject: email.subject,
45
+ socialPosts: social.map((post) => post.body),
46
+ seo
47
+ });
44
48
  }
45
-
46
- //#endregion
47
- export { runContentGenerationExample };
48
- //# sourceMappingURL=generate.js.map
49
+ export {
50
+ runContentGenerationExample
51
+ };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import example from "./example.js";
2
- import { runContentGenerationExample } from "./generate.js";
3
- export { example, runContentGenerationExample };
1
+ export * from './generate';
2
+ export { default as example } from './example';
3
+ import './docs';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,123 @@
1
- import example from "./example.js";
2
- import { runContentGenerationExample } from "./generate.js";
3
- import "./docs/index.js";
1
+ // @bun
2
+ // src/docs/content-generation.docblock.ts
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
4
+ var blocks = [
5
+ {
6
+ id: "docs.examples.content-generation",
7
+ title: "Content Generation (example)",
8
+ summary: "Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).",
9
+ kind: "reference",
10
+ visibility: "public",
11
+ route: "/docs/examples/content-generation",
12
+ tags: ["content", "marketing", "example"],
13
+ body: `## What this example shows
14
+ - A spec-first-ish interface for content brief inputs (typed, validated).
15
+ - Deterministic orchestration of generators (same input \u2192 same structure).
4
16
 
5
- export { example, runContentGenerationExample };
17
+ ## Outputs
18
+ - Blog intro
19
+ - Landing hero
20
+ - Email subject/body
21
+ - Social post bodies
22
+ - SEO metadata`
23
+ },
24
+ {
25
+ id: "docs.examples.content-generation.usage",
26
+ title: "Content Generation \u2014 Usage",
27
+ summary: "How to run the example and extend the brief.",
28
+ kind: "usage",
29
+ visibility: "public",
30
+ route: "/docs/examples/content-generation/usage",
31
+ tags: ["content", "usage"],
32
+ body: `## Usage
33
+ - Call \`runContentGenerationExample()\`.
34
+ - Modify the \`ContentBrief\` fields to drive different outputs.
35
+
36
+ ## Guardrails
37
+ - Avoid PII in briefs.
38
+ - Keep output logging structured; no raw \`console.log\` in library code.`
39
+ }
40
+ ];
41
+ registerDocBlocks(blocks);
42
+ // src/example.ts
43
+ import { defineExample } from "@contractspec/lib.contracts";
44
+ var example = defineExample({
45
+ meta: {
46
+ key: "content-generation",
47
+ version: "1.0.0",
48
+ title: "Content Generation",
49
+ description: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.",
50
+ kind: "script",
51
+ visibility: "public",
52
+ stability: "experimental",
53
+ owners: ["@platform.core"],
54
+ tags: ["content", "marketing", "generation", "ai"]
55
+ },
56
+ docs: {
57
+ rootDocId: "docs.examples.content-generation",
58
+ usageDocId: "docs.examples.content-generation.usage"
59
+ },
60
+ entrypoints: {
61
+ packageName: "@contractspec/example.content-generation",
62
+ docs: "./docs"
63
+ },
64
+ surfaces: {
65
+ templates: true,
66
+ sandbox: { enabled: true, modes: ["markdown"] },
67
+ studio: { enabled: true, installable: true },
68
+ mcp: { enabled: true }
69
+ }
70
+ });
71
+ var example_default = example;
72
+
73
+ // src/generate.ts
74
+ import {
75
+ BlogGenerator,
76
+ EmailCampaignGenerator,
77
+ LandingPageGenerator,
78
+ SocialPostGenerator
79
+ } from "@contractspec/lib.content-gen/generators";
80
+ import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
81
+ import { Logger, LogLevel } from "@contractspec/lib.logger";
82
+ var logger = new Logger({
83
+ level: LogLevel.DEBUG,
84
+ environment: "development",
85
+ enableColors: true
86
+ });
87
+ async function runContentGenerationExample() {
88
+ const brief = {
89
+ title: "AI-Native Operations Copilot",
90
+ summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
91
+ problems: [
92
+ "Support queues pile up after hours",
93
+ "Growth teams lack fresh experiments"
94
+ ],
95
+ solutions: [
96
+ "Stateful AI agents grounded in your knowledge spaces",
97
+ "CI-safe approval workflows for human review",
98
+ "Analytics + experimentation stack built into ContractSpec"
99
+ ],
100
+ metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
101
+ audience: { role: "COO", industry: "Fintech", maturity: "scaleup" },
102
+ callToAction: "Book a 15\u2011minute pilot run"
103
+ };
104
+ const blog = await new BlogGenerator().generate(brief);
105
+ const landing = await new LandingPageGenerator().generate(brief);
106
+ const email = await new EmailCampaignGenerator().generate({
107
+ brief,
108
+ variant: "announcement"
109
+ });
110
+ const social = await new SocialPostGenerator().generate(brief);
111
+ const seo = new SeoOptimizer().optimize(brief);
112
+ logger.info("Generated content assets", {
113
+ blogIntro: blog.intro,
114
+ landingHero: landing.hero,
115
+ emailSubject: email.subject,
116
+ socialPosts: social.map((post) => post.body),
117
+ seo
118
+ });
119
+ }
120
+ export {
121
+ runContentGenerationExample,
122
+ example_default as example
123
+ };
@@ -0,0 +1,40 @@
1
+ // src/docs/content-generation.docblock.ts
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ var blocks = [
4
+ {
5
+ id: "docs.examples.content-generation",
6
+ title: "Content Generation (example)",
7
+ summary: "Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/examples/content-generation",
11
+ tags: ["content", "marketing", "example"],
12
+ body: `## What this example shows
13
+ - A spec-first-ish interface for content brief inputs (typed, validated).
14
+ - Deterministic orchestration of generators (same input → same structure).
15
+
16
+ ## Outputs
17
+ - Blog intro
18
+ - Landing hero
19
+ - Email subject/body
20
+ - Social post bodies
21
+ - SEO metadata`
22
+ },
23
+ {
24
+ id: "docs.examples.content-generation.usage",
25
+ title: "Content Generation — Usage",
26
+ summary: "How to run the example and extend the brief.",
27
+ kind: "usage",
28
+ visibility: "public",
29
+ route: "/docs/examples/content-generation/usage",
30
+ tags: ["content", "usage"],
31
+ body: `## Usage
32
+ - Call \`runContentGenerationExample()\`.
33
+ - Modify the \`ContentBrief\` fields to drive different outputs.
34
+
35
+ ## Guardrails
36
+ - Avoid PII in briefs.
37
+ - Keep output logging structured; no raw \`console.log\` in library code.`
38
+ }
39
+ ];
40
+ registerDocBlocks(blocks);
@@ -0,0 +1,40 @@
1
+ // src/docs/content-generation.docblock.ts
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ var blocks = [
4
+ {
5
+ id: "docs.examples.content-generation",
6
+ title: "Content Generation (example)",
7
+ summary: "Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/examples/content-generation",
11
+ tags: ["content", "marketing", "example"],
12
+ body: `## What this example shows
13
+ - A spec-first-ish interface for content brief inputs (typed, validated).
14
+ - Deterministic orchestration of generators (same input → same structure).
15
+
16
+ ## Outputs
17
+ - Blog intro
18
+ - Landing hero
19
+ - Email subject/body
20
+ - Social post bodies
21
+ - SEO metadata`
22
+ },
23
+ {
24
+ id: "docs.examples.content-generation.usage",
25
+ title: "Content Generation — Usage",
26
+ summary: "How to run the example and extend the brief.",
27
+ kind: "usage",
28
+ visibility: "public",
29
+ route: "/docs/examples/content-generation/usage",
30
+ tags: ["content", "usage"],
31
+ body: `## Usage
32
+ - Call \`runContentGenerationExample()\`.
33
+ - Modify the \`ContentBrief\` fields to drive different outputs.
34
+
35
+ ## Guardrails
36
+ - Avoid PII in briefs.
37
+ - Keep output logging structured; no raw \`console.log\` in library code.`
38
+ }
39
+ ];
40
+ registerDocBlocks(blocks);
@@ -0,0 +1,33 @@
1
+ // src/example.ts
2
+ import { defineExample } from "@contractspec/lib.contracts";
3
+ var example = defineExample({
4
+ meta: {
5
+ key: "content-generation",
6
+ version: "1.0.0",
7
+ title: "Content Generation",
8
+ description: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.",
9
+ kind: "script",
10
+ visibility: "public",
11
+ stability: "experimental",
12
+ owners: ["@platform.core"],
13
+ tags: ["content", "marketing", "generation", "ai"]
14
+ },
15
+ docs: {
16
+ rootDocId: "docs.examples.content-generation",
17
+ usageDocId: "docs.examples.content-generation.usage"
18
+ },
19
+ entrypoints: {
20
+ packageName: "@contractspec/example.content-generation",
21
+ docs: "./docs"
22
+ },
23
+ surfaces: {
24
+ templates: true,
25
+ sandbox: { enabled: true, modes: ["markdown"] },
26
+ studio: { enabled: true, installable: true },
27
+ mcp: { enabled: true }
28
+ }
29
+ });
30
+ var example_default = example;
31
+ export {
32
+ example_default as default
33
+ };
@@ -0,0 +1,50 @@
1
+ // src/generate.ts
2
+ import {
3
+ BlogGenerator,
4
+ EmailCampaignGenerator,
5
+ LandingPageGenerator,
6
+ SocialPostGenerator
7
+ } from "@contractspec/lib.content-gen/generators";
8
+ import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
9
+ import { Logger, LogLevel } from "@contractspec/lib.logger";
10
+ var logger = new Logger({
11
+ level: LogLevel.DEBUG,
12
+ environment: "development",
13
+ enableColors: true
14
+ });
15
+ async function runContentGenerationExample() {
16
+ const brief = {
17
+ title: "AI-Native Operations Copilot",
18
+ summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
19
+ problems: [
20
+ "Support queues pile up after hours",
21
+ "Growth teams lack fresh experiments"
22
+ ],
23
+ solutions: [
24
+ "Stateful AI agents grounded in your knowledge spaces",
25
+ "CI-safe approval workflows for human review",
26
+ "Analytics + experimentation stack built into ContractSpec"
27
+ ],
28
+ metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
29
+ audience: { role: "COO", industry: "Fintech", maturity: "scaleup" },
30
+ callToAction: "Book a 15‑minute pilot run"
31
+ };
32
+ const blog = await new BlogGenerator().generate(brief);
33
+ const landing = await new LandingPageGenerator().generate(brief);
34
+ const email = await new EmailCampaignGenerator().generate({
35
+ brief,
36
+ variant: "announcement"
37
+ });
38
+ const social = await new SocialPostGenerator().generate(brief);
39
+ const seo = new SeoOptimizer().optimize(brief);
40
+ logger.info("Generated content assets", {
41
+ blogIntro: blog.intro,
42
+ landingHero: landing.hero,
43
+ emailSubject: email.subject,
44
+ socialPosts: social.map((post) => post.body),
45
+ seo
46
+ });
47
+ }
48
+ export {
49
+ runContentGenerationExample
50
+ };
@@ -0,0 +1,122 @@
1
+ // src/docs/content-generation.docblock.ts
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ var blocks = [
4
+ {
5
+ id: "docs.examples.content-generation",
6
+ title: "Content Generation (example)",
7
+ summary: "Generate a consistent set of marketing assets from a typed ContentBrief (blog, landing hero, email, social, SEO).",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/examples/content-generation",
11
+ tags: ["content", "marketing", "example"],
12
+ body: `## What this example shows
13
+ - A spec-first-ish interface for content brief inputs (typed, validated).
14
+ - Deterministic orchestration of generators (same input → same structure).
15
+
16
+ ## Outputs
17
+ - Blog intro
18
+ - Landing hero
19
+ - Email subject/body
20
+ - Social post bodies
21
+ - SEO metadata`
22
+ },
23
+ {
24
+ id: "docs.examples.content-generation.usage",
25
+ title: "Content Generation — Usage",
26
+ summary: "How to run the example and extend the brief.",
27
+ kind: "usage",
28
+ visibility: "public",
29
+ route: "/docs/examples/content-generation/usage",
30
+ tags: ["content", "usage"],
31
+ body: `## Usage
32
+ - Call \`runContentGenerationExample()\`.
33
+ - Modify the \`ContentBrief\` fields to drive different outputs.
34
+
35
+ ## Guardrails
36
+ - Avoid PII in briefs.
37
+ - Keep output logging structured; no raw \`console.log\` in library code.`
38
+ }
39
+ ];
40
+ registerDocBlocks(blocks);
41
+ // src/example.ts
42
+ import { defineExample } from "@contractspec/lib.contracts";
43
+ var example = defineExample({
44
+ meta: {
45
+ key: "content-generation",
46
+ version: "1.0.0",
47
+ title: "Content Generation",
48
+ description: "Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.",
49
+ kind: "script",
50
+ visibility: "public",
51
+ stability: "experimental",
52
+ owners: ["@platform.core"],
53
+ tags: ["content", "marketing", "generation", "ai"]
54
+ },
55
+ docs: {
56
+ rootDocId: "docs.examples.content-generation",
57
+ usageDocId: "docs.examples.content-generation.usage"
58
+ },
59
+ entrypoints: {
60
+ packageName: "@contractspec/example.content-generation",
61
+ docs: "./docs"
62
+ },
63
+ surfaces: {
64
+ templates: true,
65
+ sandbox: { enabled: true, modes: ["markdown"] },
66
+ studio: { enabled: true, installable: true },
67
+ mcp: { enabled: true }
68
+ }
69
+ });
70
+ var example_default = example;
71
+
72
+ // src/generate.ts
73
+ import {
74
+ BlogGenerator,
75
+ EmailCampaignGenerator,
76
+ LandingPageGenerator,
77
+ SocialPostGenerator
78
+ } from "@contractspec/lib.content-gen/generators";
79
+ import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
80
+ import { Logger, LogLevel } from "@contractspec/lib.logger";
81
+ var logger = new Logger({
82
+ level: LogLevel.DEBUG,
83
+ environment: "development",
84
+ enableColors: true
85
+ });
86
+ async function runContentGenerationExample() {
87
+ const brief = {
88
+ title: "AI-Native Operations Copilot",
89
+ summary: "Automates support resolutions, growth playbooks, and DevOps rituals.",
90
+ problems: [
91
+ "Support queues pile up after hours",
92
+ "Growth teams lack fresh experiments"
93
+ ],
94
+ solutions: [
95
+ "Stateful AI agents grounded in your knowledge spaces",
96
+ "CI-safe approval workflows for human review",
97
+ "Analytics + experimentation stack built into ContractSpec"
98
+ ],
99
+ metrics: ["80% auto-resolution rate", "10+ experiments shipped weekly"],
100
+ audience: { role: "COO", industry: "Fintech", maturity: "scaleup" },
101
+ callToAction: "Book a 15‑minute pilot run"
102
+ };
103
+ const blog = await new BlogGenerator().generate(brief);
104
+ const landing = await new LandingPageGenerator().generate(brief);
105
+ const email = await new EmailCampaignGenerator().generate({
106
+ brief,
107
+ variant: "announcement"
108
+ });
109
+ const social = await new SocialPostGenerator().generate(brief);
110
+ const seo = new SeoOptimizer().optimize(brief);
111
+ logger.info("Generated content assets", {
112
+ blogIntro: blog.intro,
113
+ landingHero: landing.hero,
114
+ emailSubject: email.subject,
115
+ socialPosts: social.map((post) => post.body),
116
+ seo
117
+ });
118
+ }
119
+ export {
120
+ runContentGenerationExample,
121
+ example_default as example
122
+ };
package/package.json CHANGED
@@ -1,50 +1,87 @@
1
1
  {
2
2
  "name": "@contractspec/example.content-generation",
3
- "version": "1.57.0",
3
+ "version": "1.58.0",
4
4
  "description": "Content generation example using @contractspec/lib.content-gen.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "exports": {
8
- ".": "./dist/index.js",
9
- "./docs": "./dist/docs/index.js",
10
- "./docs/content-generation.docblock": "./dist/docs/content-generation.docblock.js",
11
- "./example": "./dist/example.js",
12
- "./generate": "./dist/generate.js",
13
- "./*": "./*"
8
+ ".": "./src/index.ts",
9
+ "./docs": "./src/docs/index.ts",
10
+ "./docs/content-generation.docblock": "./src/docs/content-generation.docblock.ts",
11
+ "./docs/index": "./src/docs/index.ts",
12
+ "./example": "./src/example.ts",
13
+ "./generate": "./src/generate.ts"
14
14
  },
15
15
  "scripts": {
16
16
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
17
17
  "publish:pkg:canary": "bun publish:pkg --tag canary",
18
- "build": "bun build:types && bun build:bundle",
19
- "build:bundle": "tsdown",
20
- "build:types": "tsc --noEmit",
21
- "dev": "bun build:bundle --watch",
18
+ "build": "bun run prebuild && bun run build:bundle && bun run build:types",
19
+ "build:bundle": "contractspec-bun-build transpile",
20
+ "build:types": "contractspec-bun-build types",
21
+ "dev": "contractspec-bun-build dev",
22
22
  "clean": "rimraf dist .turbo",
23
23
  "lint": "bun lint:fix",
24
24
  "lint:fix": "eslint src --fix",
25
25
  "lint:check": "eslint src",
26
- "test": "bun test"
26
+ "test": "bun test",
27
+ "prebuild": "contractspec-bun-build prebuild",
28
+ "typecheck": "tsc --noEmit"
27
29
  },
28
30
  "dependencies": {
29
- "@contractspec/lib.contracts": "1.57.0",
30
- "@contractspec/lib.content-gen": "1.57.0",
31
- "@contractspec/lib.logger": "1.57.0"
31
+ "@contractspec/lib.contracts": "1.58.0",
32
+ "@contractspec/lib.content-gen": "1.58.0",
33
+ "@contractspec/lib.logger": "1.58.0"
32
34
  },
33
35
  "devDependencies": {
34
- "@contractspec/tool.tsdown": "1.57.0",
35
- "@contractspec/tool.typescript": "1.57.0",
36
- "tsdown": "^0.20.3",
37
- "typescript": "^5.9.3"
36
+ "@contractspec/tool.typescript": "1.58.0",
37
+ "typescript": "^5.9.3",
38
+ "@contractspec/tool.bun": "1.57.0"
38
39
  },
39
40
  "publishConfig": {
40
41
  "access": "public",
41
42
  "exports": {
42
- ".": "./dist/index.js",
43
- "./docs": "./dist/docs/index.js",
44
- "./docs/content-generation.docblock": "./dist/docs/content-generation.docblock.js",
45
- "./example": "./dist/example.js",
46
- "./generate": "./dist/generate.js",
47
- "./*": "./*"
43
+ ".": {
44
+ "types": "./dist/index.d.ts",
45
+ "bun": "./dist/index.js",
46
+ "node": "./dist/node/index.mjs",
47
+ "browser": "./dist/browser/index.js",
48
+ "default": "./dist/index.js"
49
+ },
50
+ "./docs": {
51
+ "types": "./dist/docs/index.d.ts",
52
+ "bun": "./dist/docs/index.js",
53
+ "node": "./dist/node/docs/index.mjs",
54
+ "browser": "./dist/browser/docs/index.js",
55
+ "default": "./dist/docs/index.js"
56
+ },
57
+ "./docs/content-generation.docblock": {
58
+ "types": "./dist/docs/content-generation.docblock.d.ts",
59
+ "bun": "./dist/docs/content-generation.docblock.js",
60
+ "node": "./dist/node/docs/content-generation.docblock.mjs",
61
+ "browser": "./dist/browser/docs/content-generation.docblock.js",
62
+ "default": "./dist/docs/content-generation.docblock.js"
63
+ },
64
+ "./docs/index": {
65
+ "types": "./dist/docs/index.d.ts",
66
+ "bun": "./dist/docs/index.js",
67
+ "node": "./dist/node/docs/index.mjs",
68
+ "browser": "./dist/browser/docs/index.js",
69
+ "default": "./dist/docs/index.js"
70
+ },
71
+ "./example": {
72
+ "types": "./dist/example.d.ts",
73
+ "bun": "./dist/example.js",
74
+ "node": "./dist/node/example.mjs",
75
+ "browser": "./dist/browser/example.js",
76
+ "default": "./dist/example.js"
77
+ },
78
+ "./generate": {
79
+ "types": "./dist/generate.d.ts",
80
+ "bun": "./dist/generate.js",
81
+ "node": "./dist/node/generate.mjs",
82
+ "browser": "./dist/browser/generate.js",
83
+ "default": "./dist/generate.js"
84
+ }
48
85
  },
49
86
  "registry": "https://registry.npmjs.org/"
50
87
  },
package/tsdown.config.js CHANGED
@@ -1,5 +1,4 @@
1
- import { defineConfig } from 'tsdown';
2
- import { moduleLibrary } from '@contractspec/tool.tsdown';
1
+ import { defineConfig, moduleLibrary } from '@contractspec/tool.bun';
3
2
 
4
3
  export default defineConfig(() => ({
5
4
  ...moduleLibrary,