Skip to content

Commit

Permalink
fix: bumps up to node v20; reinstates CommonJS TS specific configs
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmeraz committed Nov 27, 2023
1 parent 3d26784 commit a1e7377
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 16 ]
node: [ 20 ]

steps:
- name: Checkout 🔔
Expand All @@ -28,7 +28,7 @@ jobs:
run: npm install

- name: Compile Typescript 📝
run: npm run tsc
run: npm run tsc && npm run commonjs/tsc

- name: Run unit tests 🛠
run: npm run test
Expand Down
10 changes: 10 additions & 0 deletions commonjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es2019",
"module": "commonjs",
"strict": true,
"moduleResolution": "node"
},
"include": ["../ClassGroup.d.ts"],
"exclude": ["node_modules", "**/__tests__/*"],
}
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint": "tslint -p tsconfig.json",
"test": "jest",
"tsc": "node_modules/.bin/tsc",
"commonjs/tsc": "node_modules/.bin/tsc commonjs/index.ts",
"release": "semantic-release --branches main"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"strict": true,
"moduleResolution": "node"
},
"include": ["./esm", "./commonjs", "ClassGroup.d.ts"],
"include": ["./esm", "ClassGroup.d.ts"],
"exclude": ["node_modules", "**/__tests__/*"],
}

0 comments on commit a1e7377

Please sign in to comment.