diff --git a/.gitignore b/.gitignore index 428c3226..2a855bae 100644 --- a/.gitignore +++ b/.gitignore @@ -43,7 +43,5 @@ logs **/auto-imports.d.ts **/components.d.ts -# Comark -packages/comark/skills .vercel .env* diff --git a/AGENTS.md b/AGENTS.md index 69626899..20375c20 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1031,7 +1031,8 @@ Every package in `packages/*` shares one version and one `vX.Y.Z` tag (lockstep) 2. Merging the PR tags `vX.Y.Z`, creates the GitHub release from the PR body, and dispatches the publish run on the tag. 3. `pack` installs with `--ignore-scripts`, runs `pnpm build`, then `pnpm pack`s each - package (its `prepack` runs; `comark`'s `build` copies `docs/skills` into the package). + package (its `prepack` runs). Agent skills are served from comark.dev (`docs/skills`), not + shipped in the npm package. 4. `publish` stages every tarball with `npm stage publish` over OIDC in the `npm` environment. Approve the staged versions on npmjs.com to make them live. diff --git a/packages/comark/package.json b/packages/comark/package.json index 226805b8..b622bffa 100644 --- a/packages/comark/package.json +++ b/packages/comark/package.json @@ -39,8 +39,7 @@ "url": "git+https://github.com/comarkdown/comark.git" }, "files": [ - "dist", - "skills" + "dist" ], "type": "module", "sideEffects": false, @@ -64,10 +63,10 @@ }, "scripts": { "stub": "node ../../scripts/stub.mjs", - "build": "rm -rf skills && cp -r ../../docs/skills skills && tsc --removeComments --declaration false && tsc --emitDeclarationOnly", + "build": "tsc --removeComments --declaration false && tsc --emitDeclarationOnly", "dev": "tsc --watch", "test": "vitest run", - "prepack": "pnpm run build" + "prepack": "tsc --removeComments --declaration false && tsc --emitDeclarationOnly" }, "dependencies": { "character-entities": "catalog:", diff --git a/skills b/skills deleted file mode 120000 index 5cc2d541..00000000 --- a/skills +++ /dev/null @@ -1 +0,0 @@ -packages/comark/skills \ No newline at end of file diff --git a/test/bundle.test.ts b/test/bundle.test.ts index 6b693146..60b2c1f2 100644 --- a/test/bundle.test.ts +++ b/test/bundle.test.ts @@ -67,7 +67,7 @@ describe('package bundle size', { timeout: 60_000 }, () => { "@comark/react": "42.9k (83 files)", "@comark/svelte": "50.3k (91 files)", "@comark/vue": "60.2k (87 files)", - "comark": "515k (176 files)", + "comark": "422k (167 files)", } `) })