Skip to content

Commit

Permalink
fix: type definitions (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Schrader <[email protected]>
  • Loading branch information
icd2k3 and jschrader-nr authored Jun 10, 2021
1 parent b4c539a commit d548a9b
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 705 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-breadcrumbs-hoc",
"version": "4.0.0",
"version": "4.0.1",
"description": "small, flexible, higher order component for rendering breadcrumbs with react-router 4.x",
"repository": "icd2k3/react-router-breadcrumbs-hoc",
"main": "dist/cjs/index.js",
Expand All @@ -9,10 +9,10 @@
"types": "dist/index.d.ts",
"scripts": {
"prepublishOnly": "npm run build && pinst --disable",
"build": "rollup -c",
"build": "rollup -c && yarn types",
"test": "jest",
"test-build": "sh ./scripts/test-build.sh",
"types": "tsc -p tsconfig.json",
"types": "tsc -p tsconfig.json --declaration --emitDeclarationOnly",
"lint": "eslint ./src/**",
"postpublish": "pinst --enable",
"prepare": "husky install"
Expand All @@ -24,18 +24,18 @@
"react-router": ">=5"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.4",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-typescript": "^8.2.1",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.6",
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.7",
"@types/react-router": "^5.1.15",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const external = Object.keys(pkg.peerDependencies).concat(/@babel\/runtime/);
const extensions = ['.js', '.tsx'];

const sharedPlugins = [
typescript(),
typescript({ tsconfig: './tsconfig.json' }),
babel({
babelHelpers: 'runtime',
exclude: 'node_modules/**',
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down
Loading

0 comments on commit d548a9b

Please sign in to comment.