Skip to content

Commit

Permalink
Merge pull request #22 from stagetimerio/main
Browse files Browse the repository at this point in the history
Release v2.2.2
  • Loading branch information
lhermann authored Aug 29, 2024
2 parents 099cd4c + f1b68fe commit 22a6126
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 824 deletions.
2 changes: 1 addition & 1 deletion companion/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "stagetimer",
"shortname": "stagetimer",
"description": "Stagetimer.io module for Companion v3",
"version": "2.2.1",
"version": "2.2.2",
"license": "MIT",
"repository": "git+https://github.com/bitfocus/companion-module-stagetimerio-api.git",
"bugs": "https://github.com/bitfocus/companion-module-stagetimerio-api/issues",
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "stagetimerio-api",
"version": "2.2.1",
"version": "2.2.2",
"description": "Stagetimer.io module for Companion v3",
"main": "src/index.js",
"type": "module",
"scripts": {
"lint": "eslint ./src",
"test": "node --test"
"test": "node --test",
"version": "node syncVersions.js && git add ."
},
"license": "MIT",
"author": "Lukas Hermann <lukas@stagetimer.io>",
Expand All @@ -15,12 +16,13 @@
"url": "git+https://github.com/bitfocus/companion-module-stagetimerio-api.git"
},
"dependencies": {
"@companion-module/base": "~1.8.0",
"@companion-module/base": "~1.10.0",
"@stagetimerio/shared": "^1.6.4",
"@stagetimerio/timeutils": "^1.6.1",
"socket.io-client": "^4.7.1"
},
"devDependencies": {
"@companion-module/tools": "^1.3.2"
}
"@companion-module/tools": "^2.0.0"
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}
9 changes: 9 additions & 0 deletions syncVersions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { exec } from 'child_process'

const version = process.env.npm_package_version

if (!version) throw new Error(`Skipping version sync because version='${version}'`)

console.info(`Syncing version v${version} to manifest file.`)

exec(`sed -i '' 's/"version": .*$/"version": "${version}",/' companion/manifest.json`)
Loading

0 comments on commit 22a6126

Please sign in to comment.