Skip to content

Commit 8ff8641

Browse files
committed
fix build scripts
1 parent fa9a024 commit 8ff8641

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

lib/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,24 @@
9898
],
9999
"keywords": [
100100
"react",
101-
"state-management",
101+
"react-state-management",
102102
"global-state",
103103
"react-hooks",
104104
"useSyncExternalStore",
105-
"lightweight",
105+
"lightweight-state-library",
106106
"kosha",
107-
"zustand",
107+
"zustand-alternative",
108108
"react18",
109-
"frontend",
110-
"performance",
111-
"selectors",
112-
"partial-updates",
113-
"react-concurrent-rendering",
109+
"frontend-performance",
110+
"state-selectors",
111+
"partial-state-updates",
112+
"concurrent-rendering",
114113
"modern-react",
115-
"npm-package",
114+
"npm-library",
116115
"javascript",
117116
"typescript",
117+
"immer",
118+
"persist-middleware",
118119
"mayank1513"
119120
]
120121
}

scripts/publish.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ if (isPatch) {
4343
);
4444
} catch {}
4545
} else {
46-
require("./update-security-md")(`${newMajor}.${newMinor}`, `${oldMajor}.${oldMinor}`);
47-
/** Create new release branch for every Major or Minor release */
48-
execSync(`git checkout -b ${releaseBranch} && git push origin ${releaseBranch}`);
46+
try {
47+
require("./update-security-md")(`${newMajor}.${newMinor}`, `${oldMajor}.${oldMinor}`);
48+
/** Create new release branch for every Major or Minor release */
49+
execSync(`git checkout -b ${releaseBranch} && git push origin ${releaseBranch}`);
50+
} catch {
51+
// empty
52+
}
4953
}
5054

5155
const { visibility } = JSON.parse(execSync("gh repo view --json visibility").toString());

0 commit comments

Comments
 (0)