Skip to content

Commit

Permalink
fix yarn install
Browse files Browse the repository at this point in the history
  • Loading branch information
BzenkoSergey committed Oct 14, 2022
1 parent 6788e0c commit 84520c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sbzen/re-cron",
"version": "2.0.3",
"version": "2.0.4",
"description": "Quartz Cron Component - React",
"author": "Serhii Bzenko <[email protected]>",
"license": "MIT",
Expand Down
11 changes: 10 additions & 1 deletion prepare-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ const {
} = JSON.parse(packageString);

const nextVersion = isAlpha ? `${version}-alpha.${Date.now()}` : version;
const nextDependencies = Object.keys(dependencies).reduce((acc, prop) => {
if (prop === name) {
return acc;
}
return {
...acc,
[prop]: dependencies[prop]
}
}, {});

const libPackage = JSON.stringify({
name,
Expand All @@ -33,7 +42,7 @@ const libPackage = JSON.stringify({
keywords,
repository,
homepage,
dependencies,
dependencies: nextDependencies,
peerDependencies,
sideEffects,
bugs,
Expand Down

0 comments on commit 84520c4

Please sign in to comment.