From f0e2465876b0793bed3284c42ba0f57e20c0ed0e Mon Sep 17 00:00:00 2001 From: Henry Dineen Date: Wed, 28 Oct 2026 15:49:19 -0400 Subject: [PATCH] 2.2.0-rc.0 Publish a release candidate on the `next` dist-tag so the React 19 fix can be adopted and tested before it becomes `latest`. publishConfig pins the npm registry so publishing does not depend on local npm config, and prepublish becomes prepublishOnly because modern npm runs `prepublish` on install rather than publish. Co-Authored-By: Claude Opus 5.5 --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e31049d..7372b37 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,13 @@ { "name": "draft-convert", - "version": "2.1.13", + "version": "2.2.0-rc.0", "description": "Extensibly serialize & deserialize Draft.js ContentState", "main": "lib/index.js", "module": "esm/index.js", "repository": "HubSpot/draft-convert", + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, "scripts": { "build": "npm run build:cjs && npm run build:esm && npm run build:umd", "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib", @@ -19,7 +22,7 @@ "build-and-test": "npm run clean && npm run build && npm run test-once", "lint": "eslint src/ test/", "prepare": "npm run build-and-test", - "prepublish": "npm run lint && npm run build-and-test", + "prepublishOnly": "npm run lint && npm run build-and-test", "prettier:write": "prettier --write src test", "prettier:check": "prettier --check src test" },