Skip to content

Commit a44fda6

Browse files
icd2k3jschrader-nr
andauthored
chore: remove react-router-dom types & rollup global (#104)
* fix: remove react-router-dom types & rollup global * chore: cleanup and bump version Co-authored-by: Justin Schrader <[email protected]>
1 parent eb243cc commit a44fda6

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-breadcrumbs-hoc",
3-
"version": "3.2.8",
3+
"version": "3.2.9",
44
"description": "small, flexible, higher order component for rendering breadcrumbs with react-router 4.x",
55
"repository": "icd2k3/react-router-breadcrumbs-hoc",
66
"main": "dist/cjs/index.js",
@@ -44,7 +44,6 @@
4444
"@types/react": "^16.9.23",
4545
"@types/react-dom": "^16.9.5",
4646
"@types/react-router": "^5.1.4",
47-
"@types/react-router-dom": "^5.1.3",
4847
"@typescript-eslint/eslint-plugin": "^2.24.0",
4948
"@typescript-eslint/parser": "^2.24.0",
5049
"babel-eslint": "^10.1.0",

rollup.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const plugins = [
2020
}),
2121
];
2222

23-
const exports = [
23+
const formats = [
2424
{ format: 'cjs', file: pkg.main, plugins: plugins.concat([commonjs(), uglify()]) },
2525
{ format: 'umd', file: pkg.umd, plugins: plugins.concat([commonjs(), uglify()]) },
2626
{ format: 'es', file: pkg.module, plugins },
@@ -29,10 +29,9 @@ const exports = [
2929
const globals = {
3030
react: 'React',
3131
'react-router': 'ReactRouter',
32-
'react-router-dom': 'reactRouterDom',
3332
};
3433

35-
export default exports.map((item) => ({
34+
export default formats.map((item) => ({
3635
input: 'src/index.tsx',
3736
plugins: item.plugins,
3837
external,

yarn.lock

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,16 +1304,7 @@
13041304
dependencies:
13051305
"@types/react" "*"
13061306

1307-
"@types/react-router-dom@^5.1.3":
1308-
version "5.1.3"
1309-
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.3.tgz#b5d28e7850bd274d944c0fbbe5d57e6b30d71196"
1310-
integrity sha512-pCq7AkOvjE65jkGS5fQwQhvUp4+4PVD9g39gXLZViP2UqFiFzsEpB3PKf0O6mdbKsewSK8N14/eegisa/0CwnA==
1311-
dependencies:
1312-
"@types/history" "*"
1313-
"@types/react" "*"
1314-
"@types/react-router" "*"
1315-
1316-
"@types/react-router@*", "@types/react-router@^5.1.4":
1307+
"@types/react-router@^5.1.4":
13171308
version "5.1.4"
13181309
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.4.tgz#7d70bd905543cb6bcbdcc6bd98902332054f31a6"
13191310
integrity sha512-PZtnBuyfL07sqCJvGg3z+0+kt6fobc/xmle08jBiezLS8FrmGeiGkJnuxL/8Zgy9L83ypUhniV5atZn/L8n9MQ==

0 commit comments

Comments
 (0)