Skip to content

Commit

Permalink
docs(changeset): Update readme and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Aug 25, 2023
1 parent 24b95d3 commit b23b5c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/metal-ladybugs-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"nextjs-themes": patch
"persistnsync": patch
---

Update readme and versions
2 changes: 2 additions & 0 deletions .github/workflows/publish-to-npm-on-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
working-directory: ./packages/persistnsync
continue-on-error: true
run: pnpm publish-package && pnpm publish-package2 && pnpm publish-package3
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- uses: actions/setup-node@v3
if: steps.persistNsync.outcome == 'success'
with:
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs-themes/createPackageJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
const fs = require("fs");
const path = require("path");
const packageJson = require(path.resolve(__dirname, "package.json"));
const persistnsyncPackageVersion = require(path.resolve(__dirname, "..", "persistnsync", "package.json")).version;

delete packageJson.devDependencies;
delete packageJson.scripts;

packageJson.main = "index.js";
packageJson.types = "index.d.ts";
packageJson.dependencies.persistnsync = persistnsyncPackageVersion;

fs.writeFileSync(path.resolve(__dirname, "dist", "package.json"), JSON.stringify(packageJson, null, 2));

Expand Down
2 changes: 1 addition & 1 deletion packages/persistnsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> Motivation: Recently I got cought up in several issues working with persist miggleware and syncing tabs with zustand. This is a simple light weight middleware to persist and instantly share state between tabs or windows
- ✅ 🐙 size cross-tab state sharing for zustand
- ✅ 🐙 (574 Bytes gZiped) ~ 0.5 kB size cross-tab state sharing + persistance for zustand
- ✅ Full TypeScript Support
- ✅ solid reliability in 1 writing and n reading tab-scenarios (with changing writing tab)
- ✅ Fire and forget approach of always using the latest state. Perfect for single user systems
Expand Down
2 changes: 1 addition & 1 deletion packages/persistnsync/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "persistnsync",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"version": "0.0.1",
"version": "0.0.0",
"description": "Zustand middleware to easily persist and sync Zustand state between tabs and windows",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit b23b5c7

Please sign in to comment.