Skip to content

Commit

Permalink
fix: remove deps from optional
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jun 11, 2018
1 parent 6fcb9e6 commit 21a93b8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 69 deletions.
4 changes: 2 additions & 2 deletions generators/app/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ pkg.optionalDependencies = pkg.optionalDependencies || {};
pkg.devDependencies = pkg.devDependencies || {};

const getGeneratorVersion = (pkgName) =>
pkg.optionalDependencies[pkgName] || pkg.devDependencies[pkgName];
pkg.optionalDependencies[pkgName] || pkg.devDependencies[pkgName] || pkg.dependencies[pkgName];

const getGeneratorVersions = (pkgList) => pkgList.reduce((acc, pkgName) => {
const version = getGeneratorVersion(pkgName);

if (!version) {
throw new Error(
`Error ${pkgName} is not in optional/devdependencies for generator-videojs-plugin`
`Error ${pkgName} is not in dependencies for generator-videojs-plugin`
);
}

Expand Down
82 changes: 17 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@
"postcss-import": "^11.1.0",
"postcss-preset-env": "^5.1.0",
"qunit": "^2.5.1",
"rimraf": "^2.6.2",
"rollup": "^0.60.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-multi-entry": "^2.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^4.0.0",
"semver": "^5.4.1",
"sinon": "^5.1.0",
"uglify-es": "^3.3.9",
"video.js": "6.10.2 || ^7.0.3",
Expand Down

0 comments on commit 21a93b8

Please sign in to comment.