From 8c2720f460f33e4f7cd4c1528bdc8625b3d15dac Mon Sep 17 00:00:00 2001 From: zackad Date: Thu, 28 Mar 2024 07:04:07 +0700 Subject: [PATCH] chore: remove npm script to publish Ref: https://stackoverflow.com/a/72176325/6265296 When publishing to npm, the existence of npm script named 'publish' will trigger publishing packages twice for the same version. --- CHANGELOG.md | 7 +++++-- package.json | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40d3bd05..234416ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,14 +2,17 @@ ## unreleased +### Internals +- Remove npm script to publish + --- ## v0.6.0 (2024-03-27) ### Features -- BREAKING: Change package name `prettier-plugin-twig-melody` -> `@zackad/prettier-plugin-twig-melody` +- BREAKING: Change package name `prettier-plugin-twig-melody` -> `@zackad/prettier-plugin-twig-melody` ### Internals -- Publish package as `@zackad/prettier-plugin-twig-melody` into npm registry +- Publish package as `@zackad/prettier-plugin-twig-melody` into npm registry --- ## v0.5.0 diff --git a/package.json b/package.json index 446429b2..7ce76eb9 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "scripts": { "lint": "jest -c jest.eslint.config.js", "test": "jest", - "prettier": "prettier --plugin=. --parser=melody", - "publish": "npm publish" + "prettier": "prettier --plugin=. --parser=melody" }, "dependencies": { "babel-types": "^6.26.0",