Skip to content

Commit

Permalink
fix: add exports field in package.json #31
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 14, 2022
1 parent 7e75adf commit 9baa752
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@
"description": "A simple code editor with syntax highlighting.",
"main": "cjs/index.js",
"module": "esm/index.js",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./index": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./shortcuts": {
"import": "./esm/shortcuts.js",
"require": "./cjs/shortcuts.js"
},
"./styles": {
"import": "./esm/styles.js",
"require": "./cjs/styles.js"
},
"./SelectionText": {
"import": "./esm/SelectionText.js",
"require": "./cjs/SelectionText.js"
},
"./utils": {
"import": "./esm/utils.js",
"require": "./cjs/utils.js"
}
},
"scripts": {
"prepare": "husky install && npm run build",
"doc": "kkt build --app-src ./website",
Expand Down

0 comments on commit 9baa752

Please sign in to comment.