Skip to content

Commit

Permalink
fix: Add exports (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Nov 9, 2024
1 parent b3edbdd commit b420621
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ inputs:
runs:
using: 'composite'
steps:
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Corepack Enable
run: corepack enable
shell: bash

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ jobs:
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

Expand Down
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b420621

Please sign in to comment.