diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 718666b..2d3ceab 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -8,8 +8,9 @@ inputs: runs: using: 'composite' steps: - - name: Setup pnpm - uses: pnpm/action-setup@v4.0.0 + - name: Corepack Enable + run: corepack enable + shell: bash - name: Use Node.js ${{ inputs.node-version }} uses: actions/setup-node@v4 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0d4a013..d0070fa 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -16,5 +16,6 @@ jobs: steps: - name: 'Checkout Repository' uses: actions/checkout@v4 + - name: 'Dependency Review' uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4af5974..c0ed725 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -33,6 +33,7 @@ jobs: steps: # The logic below handles the npm publication: - uses: actions/checkout@v4 + - name: Setup uses: ./.github/actions/setup diff --git a/package.json b/package.json index 95e9f16..2f1edca 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "3.1.0", "description": "Command line tool to inject files into markdown files.", "type": "module", - "packageManager": "pnpm@9.4.0", + "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee", "bin": { "inject-markdown": "./bin.mjs" }, @@ -79,6 +79,20 @@ "vfile": "^6.0.3", "vfile-reporter": "^8.1.1" }, + "exports": { + ".": { + "import": "./dist/app.mjs" + }, + "./app": { + "import": "./dist/app.mjs" + }, + "./bin": { + "import": "./bin.mjs" + }, + "./bin.mjs": { + "import": "./bin.mjs" + } + }, "files": [ "bin.mjs", "dist/**/*.mjs",