diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e50b85f5..a6179fab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,12 @@ jobs: node: [20, 22, 24] steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm build - run: node --test test.mjs @@ -31,12 +31,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm run lint - run: pnpm run format:check @@ -46,12 +46,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm run typecheck @@ -60,12 +60,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm build - name: Verify pack contents diff --git a/package.json b/package.json index 157319b2..31870244 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "moon-cycle", "version": "2.0.0", - "description": "Maps any date to NASA moon phase imagery via synodic and calendar-year cycles. Lightweight npm package \u2014 images served via CDN or self-hosted from the GitHub repository.", + "description": "Maps any date to NASA moon phase imagery via synodic and calendar-year cycles. Lightweight npm package — images served via CDN or self-hosted from the GitHub repository.", "author": "Aric Camarata", "license": "MIT", "main": "./dist/index.cjs", @@ -31,7 +31,8 @@ "pretest": "tsup", "test": "node --test test.mjs && node --test test-cjs.cjs", "prepublishOnly": "tsup", - "coverage": "c8 --reporter=lcov --reporter=text node --test" + "coverage": "c8 --reporter=lcov --reporter=text node --test", + "postbuild": "cp dist/index.d.ts dist/index.d.mts" }, "engines": { "node": ">=20"