From a993ce2584e8268c981fbc23e5ec1595ac800dee Mon Sep 17 00:00:00 2001 From: Nicholas Griffin Date: Wed, 3 Jul 2024 20:29:59 +0100 Subject: [PATCH] chore: adding semantic jsr publishing --- README.md | 2 ++ package-lock.json | 13 +++++++++++++ package.json | 5 +++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb7fbf7..52c48e7 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ To install this package, simply enter the following command into your terminal ( npm install sqs-consumer ``` +If you would like to use JSR instead, you can find the package [here](https://jsr.io/@bbc/sqs-consumer). + > **Note** > This library assumes you are using [AWS SDK v3](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sqs/index.html). If you are using v2, please install v5.8.0: > diff --git a/package-lock.json b/package-lock.json index 64316fc..45eba71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@cucumber/cucumber": "^10.8.0", + "@sebbo2002/semantic-release-jsr": "^1.0.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.0", "@semantic-release/git": "^10.0.1", @@ -1553,6 +1554,18 @@ "node": ">=12" } }, + "node_modules/@sebbo2002/semantic-release-jsr": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sebbo2002/semantic-release-jsr/-/semantic-release-jsr-1.0.0.tgz", + "integrity": "sha512-R4CQqDfzvaaPXcwjUknmR/mrZkG3qhSG6zDqZ92XOWPoDdIfg6O4jmtTlQaxKVGGf62G4NaMhsAoEQtpSYjz0A==", + "dev": true, + "dependencies": { + "jsr": "^0.12.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@sec-ant/readable-stream": { "version": "0.4.1", "dev": true, diff --git a/package.json b/package.json index 39d69da..32a6ded 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "build": "npm run clean && npm run compile && npm run add-package-jsons", "watch": "tsc --watch", "prepublishOnly": "npm run build", - "publish:jsr": "jsr publish", "test:unit": "mocha --recursive --full-trace --exit --reporter json > test/reports/test-results.json", "pretest:integration:init": "npm run build", "test:integration:init": "sh ./test/scripts/initIntTests.sh", @@ -141,11 +140,13 @@ ], "@semantic-release/changelog", "@semantic-release/github", - "@semantic-release/npm" + "@semantic-release/npm", + "@sebbo2002/semantic-release-jsr" ] }, "devDependencies": { "@cucumber/cucumber": "^10.8.0", + "@sebbo2002/semantic-release-jsr": "^1.0.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.0", "@semantic-release/git": "^10.0.1",