Skip to content

Commit a1e7377

Browse files
committed
fix: bumps up to node v20; reinstates CommonJS TS specific configs
1 parent 3d26784 commit a1e7377

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ ubuntu-latest ]
15-
node: [ 16 ]
15+
node: [ 20 ]
1616

1717
steps:
1818
- name: Checkout 🔔
@@ -28,7 +28,7 @@ jobs:
2828
run: npm install
2929

3030
- name: Compile Typescript 📝
31-
run: npm run tsc
31+
run: npm run tsc && npm run commonjs/tsc
3232

3333
- name: Run unit tests 🛠
3434
run: npm run test

commonjs/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2019",
4+
"module": "commonjs",
5+
"strict": true,
6+
"moduleResolution": "node"
7+
},
8+
"include": ["../ClassGroup.d.ts"],
9+
"exclude": ["node_modules", "**/__tests__/*"],
10+
}

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"lint": "tslint -p tsconfig.json",
1212
"test": "jest",
1313
"tsc": "node_modules/.bin/tsc",
14+
"commonjs/tsc": "node_modules/.bin/tsc commonjs/index.ts",
1415
"release": "semantic-release --branches main"
1516
},
1617
"keywords": [

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"strict": true,
66
"moduleResolution": "node"
77
},
8-
"include": ["./esm", "./commonjs", "ClassGroup.d.ts"],
8+
"include": ["./esm", "ClassGroup.d.ts"],
99
"exclude": ["node_modules", "**/__tests__/*"],
1010
}

0 commit comments

Comments
 (0)