diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 93ebcca..7800f8f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,14 @@ name: Publish Package on: + workflow_dispatch: push: branches: - main paths: - "package.json" + - "lib/**" + - ".github/workflows/publish.yml" jobs: publish: @@ -58,7 +61,7 @@ jobs: - name: Build if: steps.version-check.outputs.changed == 'true' - run: bun run build:lib + run: bun run build - name: Publish if: steps.version-check.outputs.changed == 'true' diff --git a/.gitignore b/.gitignore index 2001633..82e72f9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ temp/ *.tsbuildinfo .DS_Store pnpm-lock.yaml -package-lock.json \ No newline at end of file +package-lock.json diff --git a/biome.json b/biome.json index a6c0b05..76fb6c1 100644 --- a/biome.json +++ b/biome.json @@ -17,6 +17,7 @@ "!**/dist", "!**/bun.lock", "!**/*.lock", + "!lib/validate.ts", "!lib/validate.js" ] }, diff --git a/package.json b/package.json index 60415bc..db80dd0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "check-types": "tsc --noEmit", "lint": "bunx @biomejs/biome ci .", "lint:fix": "bunx @biomejs/biome check --write .", - "build:lib": "esbuild lib/validate.ts --bundle --minify --format=esm --platform=node --target=es2022 --external:node:crypto --outfile=lib/validate.js", + "build:lib": "node -e \"const fs=require('node:fs'); fs.accessSync('lib/validate.js'); fs.accessSync('lib/validate.d.ts')\"", "prepack": "npm run build" }, "peerDependencies": {