Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version while reading it from package.json #90

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudamqp/amqp-client",
"version": "3.1.0",
"version": "3.1.1",
"description": "AMQP 0-9-1 client, both for browsers (WebSocket) and node (TCP Socket)",
"type": "module",
"main": "lib/cjs/index.js",
Expand Down Expand Up @@ -32,12 +32,11 @@
"lint": "eslint .",
"test": "vitest run --coverage",
"test-browser": "vitest --config ./vitest.config.browser.ts",
"prebuild": "rm -rf dist lib types",
"prebuild": "rm -rf dist lib types && npm run version",
"build": "tsc && tsc --module commonjs --outDir lib/cjs && tsc --emitDeclarationOnly --removeComments false && rollup -c",
"postbuild": "echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"prepare": "npm run build",
"preversion": "npm test",
"version": "sed -i'' \"s/VERSION = .*/VERSION = '$npm_package_version'/\" src/amqp-base-client.ts && git add src/amqp-base-client.ts"
"version": "sed -i'' \"s/VERSION = .*/VERSION = '$npm_package_version'/\" src/amqp-base-client.ts"
},
"files": [
"src/",
Expand Down
2 changes: 1 addition & 1 deletion src/amqp-base-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AMQPMessage } from './amqp-message.js'
import { AMQPView } from './amqp-view.js'
import type { Logger } from './types.js'

const VERSION = '3.0.0'
const VERSION = '3.1.1'

/**
* Base class for AMQPClients.
Expand Down