diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9524bb2..3b38ba6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: uses: changesets/action@v1 with: version: pnpm run version-packages - publish: pnpm run prerelease && pnpm run release + publish: pnpm run publish:packages commit: "chore: version packages" title: "chore: version packages" env: diff --git a/examples/p21-parser/tokenize-file.ts b/examples/p21-parser/tokenize-file.ts index c70df63..223a46d 100644 --- a/examples/p21-parser/tokenize-file.ts +++ b/examples/p21-parser/tokenize-file.ts @@ -1,7 +1,6 @@ +import { lexP21 } from '@step-nc/p21-parser'; import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; -import { lexP21 } from '@step-nc/p21-parser'; -import type { P21Token } from '@step-nc/p21-parser'; // ── CLI args ──────────────────────────────────────────────── diff --git a/package.json b/package.json index b462d5d..ed61a2d 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "changeset": "changeset", "version-packages": "changeset version", "release": "changeset publish", + "publish:packages": "pnpm run prerelease && pnpm run release", "prepare": "husky install", "example:tokenize": "pnpm --filter @step-nc/examples express-parser:tokenize-file", "example:parse": "pnpm --filter @step-nc/examples express-parser:parse-file", diff --git a/scripts/fix-express-doc-format.ts b/scripts/fix-express-doc-format.ts index fdf0015..5f17a8b 100644 --- a/scripts/fix-express-doc-format.ts +++ b/scripts/fix-express-doc-format.ts @@ -202,8 +202,4 @@ function main(): void { console.log(`Written: ${inputPath}`); } -function escapeRe(s: string): string { - return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); -} - main();