Skip to content

Commit

Permalink
deps: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Apr 6, 2024
1 parent 00ce16a commit f8820a7
Show file tree
Hide file tree
Showing 13 changed files with 3,639 additions and 4,730 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,25 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run typecheck
- run: npm run lint
- run: npm test
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: true
- run: |
pnpm build
pnpm typecheck
pnpm lint
pnpm test
pnpm check-format
env:
CI: true
6 changes: 6 additions & 0 deletions jest.config.bak.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: ['.*.spec.ts$'],
testPathIgnorePatterns: ['dist'],
};
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: ['.*.spec.ts$'],
testPathIgnorePatterns: ['dist'],
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
};

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"build": "rimraf dist && tsc -p tsconfig.build.json",
"prepare": "npm run build",
"lint": "eslint --fix --ext .js,.ts src/**",
"format": "prettier --write \"src/**/*.ts\" --loglevel warn",
"format": "prettier -w . --loglevel warn",
"check-format": "prettier -c .",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
"precommit": "pnpm run typecheck && pnpm run lint && pnpm run format"
},
Expand All @@ -36,6 +37,8 @@
"ws": "^8.16.0"
},
"devDependencies": {
"@swc/core": "^1.4.12",
"@swc/jest": "^0.2.36",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/debug": "^4.1.12",
Expand All @@ -45,7 +48,7 @@
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai": "^5.1.0",
"chai": "^4.4.1 < 5",
"chai-as-promised": "^7.1.1",
"duplexify": "^4.1.3",
"eslint": "^8.57.0",
Expand All @@ -65,3 +68,4 @@
"author": "nerixyz",
"license": "MIT"
}

Loading

0 comments on commit f8820a7

Please sign in to comment.