Skip to content

Commit

Permalink
properly include prop-types in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcmahen committed Apr 5, 2019
1 parent c876b2d commit 7c4c784
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/lode_modules
/lode_modules
.rpt2_cache
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
"is-mobile": "^2.0.0",
"open-color": "^1.6.3",
"popper.js": "^1.14.7",
"prop-types": "^15.7.2",
"react-popper": "^1.3.3",
"react-remove-scroll": "^1.0.4",
"react-spring": "^8.0.18",
"react-swipeable-views": "^0.13.1",
"resize-observer-polyfill": "^1.5.1",
"toasted-notes": "^2.1.5",
"tslib": "^1.9.3",
"use-media": "^1.2.0"
},
"peerDependencies": {
Expand Down
6 changes: 1 addition & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import resolve from "rollup-plugin-node-resolve";
import filesize from "rollup-plugin-filesize";
import sourceMaps from "rollup-plugin-sourcemaps";
import pkg from "./package.json";
import commonjs from "rollup-plugin-commonjs";
import cleanup from "rollup-plugin-cleanup";
import typescript from "rollup-plugin-typescript2";

const input = "src/index.ts";
const input = "src/index.tsx";

const plugins = [
resolve(),
typescript({
typescript: require("typescript")
}),
commonjs(),
cleanup(),
sourceMaps(),
filesize()
];

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "dist",
"esModuleInterop": true,
"importHelpers": true,
"jsx": "react",
"lib": ["dom", "es2015", "es2016"],
"module": "esnext",
"target": "esnext",
"outDir": "build",
Expand All @@ -19,5 +19,5 @@
},

"include": ["src/**/*"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist", "stories", "tests", "compiled"]
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10151,7 +10151,7 @@ prompts@^0.1.9:
kleur "^2.0.1"
sisteransi "^0.1.1"

prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.6.0, prop-types@^15.6.1:
prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.7.2:
version "15.7.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
Expand Down Expand Up @@ -12504,7 +12504,7 @@ ts-pnp@^1.0.0:
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.0.0.tgz#44a3a9e8c13fcb711bcda75d7b576c21af120c9d"
integrity sha512-qgwM7eBrxFvZSXLtSvjf3c2mXwJOOGD49VlE+KocUGX95DuMdLc/psZHBnPpZL5b2NU7VtQGHRCWF3cNfe5kxQ==

tslib@1.9.3, tslib@^1.0.0, tslib@^1.9.0:
tslib@1.9.3, tslib@^1.0.0, tslib@^1.9.0, tslib@^1.9.3:
version "1.9.3"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
Expand Down

0 comments on commit 7c4c784

Please sign in to comment.