Skip to content

Commit

Permalink
feat(packaging): relax peerDependencies versions
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
tinesoft committed Nov 22, 2017
1 parent aa45539 commit 02496e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ gulp.task('npm-package', (cb) => {
targetPkgJson.peerDependencies = {};
Object.keys(pkgJson.dependencies).forEach((dependency) => {
// versions are defined as '^' by default, but you can customize it by editing "dependenciesRange" in '.yo-rc.json' file
targetPkgJson.peerDependencies[dependency] = `^${pkgJson.dependencies[dependency].replace(/[\^~><=]/,'')}`;
targetPkgJson.peerDependencies[dependency] = `>=${pkgJson.dependencies[dependency].replace(/[\^~><=]/,'')}`;
});

// copy the needed additional files in the 'dist' folder
Expand Down

0 comments on commit 02496e8

Please sign in to comment.