Skip to content

Commit

Permalink
fix default export
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinraja committed Jun 1, 2022
1 parent 5d24823 commit 7d7692c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 206 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/index.cjs').default
module.exports = require('./index-wrapper.cjs')
1 change: 1 addition & 0 deletions index-wrapper.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/index.cjs').default
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "@sachinraja/eslint-config",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.cjs",
"main": "index-wrapper.cjs",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"default": "./dist/index.cjs"
"default": "./index-wrapper.cjs"
}
},
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -44,7 +46,6 @@
"@types/node": "17.0.38",
"dprint": "0.29.1",
"eslint": "8.16.0",
"eslint-plugin-import": "2.26.0",
"husky": "8.0.1",
"nano-staged": "0.8.0",
"npm-run-all": "4.1.5",
Expand All @@ -61,7 +62,6 @@
"src/index.ts"
],
"format": [
"esm",
"cjs"
],
"dts": {
Expand Down
Loading

0 comments on commit 7d7692c

Please sign in to comment.