Skip to content

Commit 1210d86

Browse files
committed
chore: prepare esm
1 parent 2b74f84 commit 1210d86

7 files changed

Lines changed: 5574 additions & 4178 deletions

File tree

.github/workflows/node.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
uses: actions/checkout@v6
1717
with:
1818
persist-credentials: false
19-
- name: Use Node.js 18.x
19+
- name: Use Node.js 22.x
2020
uses: actions/setup-node@v6
2121
with:
22-
node-version: 18.x
22+
node-version: 22.x
2323
- name: Prepare Environment
2424
run: |
2525
corepack enable
@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x, 26.x]
44+
node-version: [22.x, 24.x, 26.x]
4545

4646
steps:
4747
- name: Git checkout
@@ -67,9 +67,9 @@ jobs:
6767
uses: codecov/codecov-action@v6
6868
env:
6969
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
70-
if: matrix.node-version == '18.x'
70+
if: matrix.node-version == '22.x'
7171
- name: Check docs generation
72-
if: matrix.node-version == '18.x'
72+
if: matrix.node-version == '22.x'
7373
run: |
7474
yarn docs:test
7575
env:
@@ -86,10 +86,10 @@ jobs:
8686
uses: actions/checkout@v6
8787
with:
8888
persist-credentials: false
89-
- name: Use Node.js 18.x
89+
- name: Use Node.js 22.x
9090
uses: actions/setup-node@v6
9191
with:
92-
node-version: 18.x
92+
node-version: 22.x
9393
- name: Prepare Environment
9494
run: |
9595
corepack enable
@@ -117,10 +117,10 @@ jobs:
117117
uses: actions/checkout@v6
118118
with:
119119
persist-credentials: false
120-
- name: Use Node.js 18.x
120+
- name: Use Node.js 22.x
121121
uses: actions/setup-node@v6
122122
with:
123-
node-version: 18.x
123+
node-version: 22.x
124124
- name: Prepare Environment
125125
run: |
126126
corepack enable

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x, 26.x]
27+
node-version: [22.x, 24.x, 26.x]
2828

2929
steps:
3030
- name: Git checkout
@@ -63,10 +63,10 @@ jobs:
6363
with:
6464
fetch-depth: 0
6565
persist-credentials: false
66-
- name: Use Node.js 18.x
66+
- name: Use Node.js 22.x
6767
uses: actions/setup-node@v6
6868
with:
69-
node-version: 18.x
69+
node-version: 22.x
7070
- name: Enable corepack
7171
run: corepack enable
7272
- name: Determine publish info

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ src/**.js
1111
wallaby.conf.js
1212

1313
.DS_Store
14+
15+
.pnp.*
16+
.yarn/*
17+
!.yarn/patches
18+
!.yarn/plugins
19+
!.yarn/releases
20+
!.yarn/sdks
21+
*/.yarn/*

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn lint-staged
1+
lint-staged

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
approvedGitRepositories:
2+
- '**'
3+
4+
enableScripts: true
5+
6+
nodeLinker: node-modules
7+
8+
npmMinimalAgeGate: 3d

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
],
3030
"scripts": {
31-
"prepare": "husky install",
31+
"prepare": "husky",
3232
"build": "rimraf dist && yarn build:main",
3333
"build:main": "tsc -p tsconfig.build.json",
3434
"lint:raw": "eslint --ext .ts --ext .js --ext .tsx --ext .jsx --ignore-pattern dist",
@@ -52,7 +52,7 @@
5252
"license-validate": "yarn sofie-licensecheck --allowPackages caniuse-lite@1.0.30001312"
5353
},
5454
"engines": {
55-
"node": ">=14.18"
55+
"node": ">=22.22"
5656
},
5757
"files": [
5858
"/dist",
@@ -63,13 +63,15 @@
6363
"devDependencies": {
6464
"@sofie-automation/code-standard-preset": "~2.5.1",
6565
"@types/jest": "^29.5.5",
66-
"@types/node": "^14.18.62",
66+
"@types/node": "^22.19.21",
67+
"husky": "^9.1.7",
6768
"jest": "^29.7.0",
69+
"lint-staged": "^17.0.7",
6870
"open-cli": "^7.2.0",
69-
"rimraf": "^5.0.1",
71+
"rimraf": "^6.1.3",
7072
"ts-jest": "^29.1.1",
7173
"typedoc": "^0.23.28",
72-
"typescript": "~4.9"
74+
"typescript": "~4.9.5"
7375
},
7476
"keywords": [
7577
"blackmagic",
@@ -83,7 +85,7 @@
8385
],
8486
"dependencies": {
8587
"eventemitter3": "^4.0.7",
86-
"tslib": "^2.6.2"
88+
"tslib": "^2.8.1"
8789
},
8890
"prettier": "@sofie-automation/code-standard-preset/.prettierrc.json",
8991
"lint-staged": {
@@ -96,5 +98,6 @@
9698
},
9799
"resolutions": {
98100
"lint-staged": "13.2.3"
99-
}
101+
},
102+
"packageManager": "yarn@4.17.0"
100103
}

0 commit comments

Comments
 (0)