Skip to content

Commit

Permalink
fix(package): set type: 'module'
Browse files Browse the repository at this point in the history
  • Loading branch information
irudoy committed Apr 16, 2022
1 parent 73e2196 commit 7f74c25
Show file tree
Hide file tree
Showing 4 changed files with 1,003 additions and 1,351 deletions.
4 changes: 4 additions & 0 deletions .storybook/main.js → .storybook/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ module.exports = {
},
],
})
config.module.rules.push({
resolve: { fullySpecified: false },
})
config.resolve.extensions.push('.ts', '.tsx')
config.resolve.fallback.util = require.resolve('util')
return config
},
}
File renamed without changes.
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "react-photoswipe-gallery",
"version": "2.0.2",
"description": "React component wrapper around PhotoSwipe",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down Expand Up @@ -43,17 +44,17 @@
"@commitlint/cli": "16.2.3",
"@commitlint/config-conventional": "16.2.1",
"@commitlint/prompt": "16.2.3",
"@storybook/addon-essentials": "6.4.21",
"@storybook/addon-storysource": "6.4.21",
"@storybook/addons": "6.4.21",
"@storybook/api": "6.4.21",
"@storybook/builder-webpack5": "6.4.21",
"@storybook/components": "6.4.21",
"@storybook/core-events": "6.4.21",
"@storybook/manager-webpack5": "6.4.21",
"@storybook/react": "6.4.21",
"@storybook/source-loader": "6.4.21",
"@storybook/theming": "6.4.21",
"@storybook/addon-essentials": "6.5.0-alpha.63",
"@storybook/addon-storysource": "6.5.0-alpha.63",
"@storybook/addons": "6.5.0-alpha.63",
"@storybook/api": "6.5.0-alpha.63",
"@storybook/builder-webpack5": "6.5.0-alpha.63",
"@storybook/components": "6.5.0-alpha.63",
"@storybook/core-events": "6.5.0-alpha.63",
"@storybook/manager-webpack5": "6.5.0-alpha.63",
"@storybook/react": "6.5.0-alpha.63",
"@storybook/source-loader": "6.5.0-alpha.63",
"@storybook/theming": "6.5.0-alpha.63",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.0.1",
Expand All @@ -68,6 +69,7 @@
"@typescript-eslint/parser": "5.19.0",
"@yarnpkg/sdks": "2.6.0",
"babel-loader": "8.2.4",
"babel-plugin-named-exports-order": "0.0.2",
"commitizen": "4.2.4",
"core-js": "3.21.1",
"eslint": "8.13.0",
Expand Down Expand Up @@ -95,6 +97,7 @@
"ts-jest": "27.1.4",
"ts-loader": "9.2.8",
"typescript": "4.6.3",
"util": "0.12.4",
"webpack": "5.72.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 7f74c25

Please sign in to comment.