Skip to content

Commit

Permalink
fix: Implement 'exports' field in package.json for the core & basics …
Browse files Browse the repository at this point in the history
…setup package (#692)
  • Loading branch information
fatton139 authored Oct 24, 2024
1 parent ed1e515 commit 8f1ff2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"license": "MIT",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"exports": {
"require": "./cjs/index.js",
"import": "./esm/index.js"
},
"scripts": {
"bundle": "ncc build src/index.tsx --target web --filename codemirror && npm run bundle:min",
"bundle:watch": "ncc watch src/index.tsx --target web --filename codemirror",
Expand Down
4 changes: 4 additions & 0 deletions extensions/basic-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"license": "MIT",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"exports": {
"require": "./cjs/index.js",
"import": "./esm/index.js"
},
"scripts": {
"watch": "tsbb watch src/*.ts --use-babel",
"build": "tsbb build src/*.ts --use-babel"
Expand Down

0 comments on commit 8f1ff2d

Please sign in to comment.