From f1d43a32654002b8b4380682a130f88489151281 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 26 Jun 2024 18:28:08 +0200 Subject: [PATCH] improve changeset setup --- .changeset/config.json | 2 +- CONTRIBUTING.md | 9 +++++++++ examples/app/package.json | 2 +- package.json | 6 ++---- pnpm-lock.yaml | 3 +-- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 8639ae5..0ab2d3e 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,5 @@ "access": "restricted", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": [] + "ignore": ["react-yjs-example-app"] } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9740613..1db47cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,8 +24,17 @@ pnpm dev pnpm test ``` +## Adding a new Changeset + +In root run: + +```bash +pnpm changeset +``` + ## Publishing ```bash +pnpm changeset version pnpm release ``` diff --git a/examples/app/package.json b/examples/app/package.json index 7314759..5979d60 100644 --- a/examples/app/package.json +++ b/examples/app/package.json @@ -1,5 +1,5 @@ { - "name": "app", + "name": "react-yjs-example-app", "private": true, "version": "0.0.0", "type": "module", diff --git a/package.json b/package.json index e6d4adb..2f91695 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "test": "CI=true pnpm --parallel run test" }, "devDependencies": { + "@changesets/cli": "^2.27.6", "@typescript-eslint/eslint-plugin": "^7.13.0", "@typescript-eslint/parser": "^7.13.0", "eslint": "^8.57.0", @@ -19,8 +20,5 @@ "tsup": "^8.1.0", "typescript": "^5.4.5" }, - "packageManager": "pnpm@9.3.0", - "dependencies": { - "@changesets/cli": "^2.27.6" - } + "packageManager": "pnpm@9.3.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a964167..13a1166 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,11 +7,10 @@ settings: importers: .: - dependencies: + devDependencies: '@changesets/cli': specifier: ^2.27.6 version: 2.27.6 - devDependencies: '@typescript-eslint/eslint-plugin': specifier: ^7.13.0 version: 7.13.0(@typescript-eslint/parser@7.13.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5)