Skip to content

Commit

Permalink
fix: upgrade fujs and use exports to define multiple entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jan 3, 2024
1 parent 4fca90b commit 71f46fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@
"/build"
],
"type": "module",
"main": "build/cjs/index.js",
"main": "build/cjs/index.cjs",
"module": "build/esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./build/esm/index.d.ts",
"import": "./build/esm/index.js",
"require": "./build/cjs/index.cjs"
}
},
"typings": "build/esm/index.d.ts",
"scripts": {
"prepare": "install-peers",
Expand All @@ -32,7 +40,7 @@
"homepage": "https://github.com/toggle-corp/toggle-form#readme",
"dependencies": {
"@babel/runtime-corejs3": "^7.22.3",
"@togglecorp/fujs": "^2.0.0"
"@togglecorp/fujs": "^2.1.1"
},
"peerDependencies": {
"react": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions lib/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const OUTPUT_DATA = [
{
dir: 'build/cjs',
format: 'cjs',
entryFileNames: '[name].cjs'
},
{
dir: 'build/esm',
Expand Down
2 changes: 1 addition & 1 deletion storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@togglecorp/fujs": "^2.0.0",
"@togglecorp/fujs": "^2.1.1",
"@togglecorp/toggle-form": "^2.0.3",
"@togglecorp/toggle-ui": "^0.15.0",
"react": "^18.2.0",
Expand Down

0 comments on commit 71f46fa

Please sign in to comment.