diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc6c92d..a4e4ae2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,4 @@ jobs: node-version: 22 check-latest: true - run: npm install - - run: npm run build - run: npm test diff --git a/package.json b/package.json index 68f6f10..98105b4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "distribution" ], "scripts": { + "prepublishOnly": "npm run build", "build": "del-cli distribution && tsc", + "pretest": "npm run build", "test": "xo && c8 ava" }, "repository": {