Skip to content

Commit b420621

Browse files
authored
fix: Add exports (#426)
1 parent b3edbdd commit b420621

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.github/actions/setup/action.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ inputs:
88
runs:
99
using: 'composite'
1010
steps:
11-
- name: Setup pnpm
12-
uses: pnpm/action-setup@v4.0.0
11+
- name: Corepack Enable
12+
run: corepack enable
13+
shell: bash
1314

1415
- name: Use Node.js ${{ inputs.node-version }}
1516
uses: actions/setup-node@v4

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ jobs:
1616
steps:
1717
- name: 'Checkout Repository'
1818
uses: actions/checkout@v4
19+
1920
- name: 'Dependency Review'
2021
uses: actions/dependency-review-action@v4

.github/workflows/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
steps:
3434
# The logic below handles the npm publication:
3535
- uses: actions/checkout@v4
36+
3637
- name: Setup
3738
uses: ./.github/actions/setup
3839

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "3.1.0",
44
"description": "Command line tool to inject files into markdown files.",
55
"type": "module",
6-
"packageManager": "pnpm@9.4.0",
6+
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
77
"bin": {
88
"inject-markdown": "./bin.mjs"
99
},
@@ -79,6 +79,20 @@
7979
"vfile": "^6.0.3",
8080
"vfile-reporter": "^8.1.1"
8181
},
82+
"exports": {
83+
".": {
84+
"import": "./dist/app.mjs"
85+
},
86+
"./app": {
87+
"import": "./dist/app.mjs"
88+
},
89+
"./bin": {
90+
"import": "./bin.mjs"
91+
},
92+
"./bin.mjs": {
93+
"import": "./bin.mjs"
94+
}
95+
},
8296
"files": [
8397
"bin.mjs",
8498
"dist/**/*.mjs",

0 commit comments

Comments
 (0)