diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index 531cf75..7e67b3a 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -19,4 +19,4 @@ jobs: - name: Build package run: bun run build - name: Publish package - run: npx jsr publish + run: npx jsr publish --config jsr.json diff --git a/package.json b/package.json index d3e69a4..77f7e99 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "scripts": { "build": "bun build src/suite.deno.js --outdir=dist --minify", "test": "node --test && deno test && bun test", - "deploy": "npm publish && npx jsr publish" + "deploy": "npm publish && npx jsr publish", + "prepublishOnly": "bun run build" }, "publishConfig": { "access": "public" @@ -26,11 +27,11 @@ "bun": "./src/suite.bun.js", "node": "./src/suite.node.js", "types": "./src/suite.d.ts" - } + }, + "./package.json": "./package.json" }, "imports": { "#suite": { - "deno": "./dist/suite.deno.js", "bun": "./src/suite.bun.js", "node": "./src/suite.node.js", "types": "./src/suite.d.ts" diff --git a/src/suite.bun.js b/src/suite.bun.js index 7192e56..65f2ba5 100644 --- a/src/suite.bun.js +++ b/src/suite.bun.js @@ -1,5 +1,4 @@ export function setup(meta) { - // @ts-ignore const native = Bun.jest(meta.path) const test = native.test.bind() test.skip = native.test.skip diff --git a/src/suite.deno.js b/src/suite.deno.js index 368fd6d..7a333b2 100644 --- a/src/suite.deno.js +++ b/src/suite.deno.js @@ -8,7 +8,6 @@ import { assertThrows } from '../node_modules/@jsr/std__assert/mod.js' -// @ts-ignore const native = Deno.test const test = native.bind() test.skip = native.ignore