Skip to content

Commit

Permalink
chore: update to node22 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-seifert authored Dec 27, 2024
1 parent 394de2b commit 12ab3b2
Show file tree
Hide file tree
Showing 10 changed files with 2,568 additions and 2,127 deletions.
1 change: 0 additions & 1 deletion .github/workflows/companion-module-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ jobs:
uses: bitfocus/actions/.github/workflows/module-checks.yaml@main
# with:
# upload-artifact: true # uncomment this to upload the built package as an artifact to this workflow that you can download and share with others

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
package-lock.json
.DS_Store
/pkg
/pkg.tgz
/pkg.tgz
/.yarn
4 changes: 2 additions & 2 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function getActions() {
this.sourceList.sort((a, b) =>
a.label.localeCompare(b.label, undefined, {
numeric: true,
})
}),
)
this.sourceListDefault = this.sourceList[0].id
} else {
Expand All @@ -27,7 +27,7 @@ export function getActions() {
this.destinationList.sort((a, b) =>
a.label.localeCompare(b.label, undefined, {
numeric: true,
})
}),
)
this.destinationListDefault = this.destinationList[0].id
} else {
Expand Down
4 changes: 2 additions & 2 deletions companion/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "softron-movierecorder",
"shortname": "MovieRecorder",
"description": "Module to control MovieRecorder",
"version": "2.0.4",
"version": "0.0.0",
"license": "MIT",
"repository": "git+https://github.com/bitfocus/companion-module-softron-movierecorder.git",
"bugs": "https://github.com/bitfocus/companion-module-softron-movierecorder/issues",
Expand All @@ -15,7 +15,7 @@
],
"legacyIds": [],
"runtime": {
"type": "node18",
"type": "node22",
"api": "nodejs-ipc",
"apiVersion": "0.0.0",
"entrypoint": "../index.js"
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs'

const baseConfig = await generateEslintConfig({})

const customConfig = [
...baseConfig,
{
languageOptions: {
sourceType: 'module',
},
},
]

export default customConfig
1 change: 0 additions & 1 deletion feedbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export function getFeedbacks() {
const feedbacks = {}

const ColorWhite = combineRgb(255, 255, 255)
const ColorBlack = combineRgb(0, 0, 0)
const ColorRed = combineRgb(200, 0, 0)
const ColorGreen = combineRgb(0, 200, 0)
const ColorOrange = combineRgb(255, 102, 0)
Expand Down
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,28 @@
"main": "index.js",
"type": "module",
"scripts": {
"format": "prettier -w ."
"format": "prettier -w .",
"package": "companion-module-build",
"lint:raw": "eslint",
"lint": "yarn lint:raw ."
},
"license": "MIT",
"dependencies": {
"@companion-module/base": "~1.10.0",
"@companion-module/base": "~1.11.3",
"node-fetch": "^3.3.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bitfocus/companion-module-softron-movierecorder.git"
},
"devDependencies": {
"@companion-module/tools": "^1.4.1"
"@companion-module/tools": "^2.1.1",
"eslint": "^9.17.0",
"prettier": "^3.4.2"
},
"prettier": "@companion-module/tools/.prettierrc.json"
"engines": {
"node": "^22.12"
},
"prettier": "@companion-module/tools/.prettierrc.json",
"packageManager": "[email protected]"
}
2 changes: 0 additions & 2 deletions presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export function getPresets() {
const ColorWhite = combineRgb(255, 255, 255)
const ColorBlack = combineRgb(0, 0, 0)
const ColorRed = combineRgb(200, 0, 0)
const ColorGreen = combineRgb(0, 200, 0)
const ColorOrange = combineRgb(255, 102, 0)

let presets = {}

Expand Down
Loading

0 comments on commit 12ab3b2

Please sign in to comment.