Skip to content

Commit

Permalink
Merge pull request #244 from josiaskas/hotfix/git-actions-node
Browse files Browse the repository at this point in the history
update to node 20 for git-actions
  • Loading branch information
sadortun authored Sep 26, 2024
2 parents 6a59b8f + 8261126 commit 7a9a078
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npmPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: npm publish --access public
Expand Down
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* https://jestjs.io/docs/configuration
*/

const { pathsToModuleNameMapper } = require('ts-jest');
const tsConfigFile = require('./tsconfig');
import { pathsToModuleNameMapper } from 'ts-jest';
import tsConfigFile from './tsconfig.json';

export default {
// All imported modules in your tests should be mocked automatically
Expand Down
4 changes: 2 additions & 2 deletions src/JSONUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs';

export class JSONUtils {
static readFile<T>(filePath: string): T {
const fs = require('fs');

const raw = fs.readFileSync(filePath, 'utf8');
return JSON.parse(raw);
}
Expand Down

0 comments on commit 7a9a078

Please sign in to comment.