generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update publish script to add publishing canonicals to manual publish …
…as well.
- Loading branch information
1 parent
dbb05ba
commit b39eb8f
Showing
3 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Publish canonical packages | ||
[ | ||
"@mayank1513\\/r18gs", | ||
"react18-global-store", | ||
"react18-store", | ||
"react19-global-store", | ||
"react19-store", | ||
"r19gs", | ||
].forEach(pkg => { | ||
execSync(`sed -i -e "s/name.*/name\\": \\"${pkg}\\",/" lib/package.json`); | ||
execSync("cd lib && npm publish --provenance --access public"); | ||
}); | ||
|
||
// Mark deprecated | ||
execSync( | ||
'npm deprecate @mayank1513/r18gs "Please use https://www.npmjs.com/package/r18gs instead. We initially created scoped packages to have similarities with the GitHub Public Repository (which requires packages to be scoped). We are no longer using GPR and thus deprecating all scoped packages for which corresponding un-scoped packages exist."', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters