Skip to content

Commit 3e9cdd3

Browse files
author
Mohamad Yusup S.Tr.Stat
committed
fix: resolve TypeScript and Node.js version issues in CI
- Add missing tslib dependency required by @rollup/plugin-typescript - Update GitHub Actions to use Node.js 23 to match local environment - Fix test script to use correct example file path (example/index.ts) - Ensure build works consistently across environments
1 parent 4aa22d8 commit 3e9cdd3

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup Node.js
3838
uses: actions/setup-node@v4
3939
with:
40-
node-version: '20'
40+
node-version: '23'
4141

4242
- name: Install dependencies
4343
run: |

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Node.js
4040
uses: actions/setup-node@v4
4141
with:
42-
node-version: '20'
42+
node-version: '23'
4343
registry-url: 'https://registry.npmjs.org'
4444

4545
- name: Install dependencies

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "rollup -c",
2121
"build:watch": "rollup -c --watch",
22-
"test": "tsx src/example.ts",
22+
"test": "tsx example/index.ts",
2323
"prepare": "npm run build",
2424
"docs": "typedoc src/index.ts --out docs --excludePrivate --excludeInternal",
2525
"clean": "rm -rf dist"
@@ -46,6 +46,7 @@
4646
"rollup": "^4.52.4",
4747
"rollup-plugin-dts": "^6.2.3",
4848
"terser": "^5.44.0",
49+
"tslib": "^2.8.1",
4950
"tsx": "^4.20.6",
5051
"typedoc": "^0.28.14",
5152
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)