Skip to content

Commit

Permalink
Merge pull request #728 from forehalo/main
Browse files Browse the repository at this point in the history
fix dual module types exporting
  • Loading branch information
abraham authored Feb 6, 2023
2 parents c53a3b9 + 0ab5dec commit bed14d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm run test
- name: module test
run: |
node --input-type=module --eval "import * as m from '@abraham/reflection'; console.log(m)"
node --input-type=commonjs --eval "const m = require('@abraham/reflection'); console.log(m)"
- run: npm run pkg-ok
- uses: coverallsapp/github-action@master
with:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.umd.js"
"require": "./dist/index.umd.cjs"
},
"main": "./dist/index.umd.js",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
Expand Down Expand Up @@ -80,7 +80,7 @@
"rollup": {
"input": "dist/index.js",
"output": {
"file": "dist/index.umd.js",
"file": "dist/index.umd.cjs",
"format": "umd",
"name": "@abraham/reflection"
}
Expand Down

0 comments on commit bed14d1

Please # to comment.