Skip to content

Commit

Permalink
feat: upgrade dependencies (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn authored Feb 1, 2024
1 parent 08d7bb4 commit 653bd13
Show file tree
Hide file tree
Showing 25 changed files with 2,638 additions and 2,136 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parserOptions:
jsx: true
ecmaVersion: 2020
sourceType: module
project: ./tsconfig.json
project: ./tsconfig.lint.json

env:
browser: true
Expand All @@ -18,8 +18,7 @@ plugins:

extends:
- eslint:recommended
- plugin:prettier/recommended

- prettier
rules:
# 0 = off, 1 = warn, 2 = error
'space-before-function-paren': 0
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,23 @@ on:

jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

name: stable - ${{ matrix.os }} - node@18
name: stable - ${{ matrix.os }} - node@20
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: 'Install dependencies'
Expand All @@ -48,18 +46,18 @@ jobs:
- test

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Cache NPM dependencies
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: npm-cache-${{ matrix.os }}-node@18
key: npm-cache-${{ matrix.os }}-node@20

- name: 'Install dependencies'
run: |
Expand Down
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"license": "MIT",
"scripts": {
"bench": "node -r @swc-node/register ./bench/index.ts",
"build": "tsc -b tsconfig.project.json",
"build": "tsc -b tsconfig.json",
"format": "prettier --config ./package.json . -w",
"lint": "eslint -c ./.eslintrc.yml .",
"test": "ava",
Expand All @@ -36,40 +36,39 @@
"postinstall": "husky install"
},
"devDependencies": {
"@babel/core": "^7.22.10",
"@babel/plugin-transform-typescript": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/preset-typescript": "^7.22.5",
"@babel/core": "^7.23.9",
"@babel/plugin-transform-typescript": "^7.23.6",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@swc-node/core": "workspace:*",
"@swc-node/jest": "workspace:*",
"@swc-node/register": "workspace:*",
"@types/babel__core": "^7.20.1",
"@types/benchmark": "^2.1.2",
"@types/lodash": "^4.14.197",
"@types/node": "^20.11.0",
"@types/sinon": "^10.0.16",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"ava": "^5.3.1",
"@types/babel__core": "^7.20.5",
"@types/benchmark": "^2.1.5",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.15",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"ava": "^6.1.1",
"benchmark": "^2.1.4",
"colorette": "^2.0.20",
"cross-env": "^7.0.3",
"esbuild": "^0.19.2",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"jest": "^29.6.2",
"lerna": "^7.1.5",
"lint-staged": "^14.0.0",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.8",
"jest": "^29.7.0",
"lerna": "^8.0.2",
"lint-staged": "^15.2.1",
"lodash": "^4.17.21",
"prettier": "^3.0.2",
"prettier": "^3.2.4",
"react": "^18.2.0",
"rxjs": "^7.8.1",
"sinon": "^15.2.0",
"tslib": "^2.6.1",
"typescript": "^5.1.6"
"sinon": "^17.0.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
},
"lint-staged": {
"*.@(js|ts|tsx|mts)": [
Expand All @@ -94,12 +93,13 @@
"require": [
"@swc-node/register"
],
"cache": false,
"files": [
"packages/**/*.spec.{ts,tsx}"
],
"environmentVariables": {
"SWC_NODE_PROJECT": "./tsconfig.test.json"
}
},
"packageManager": "pnpm@8.6.12"
"packageManager": "pnpm@8.15.1"
}
6 changes: 4 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
"url": "https://github.com/swc-project/swc-node/issues"
},
"peerDependencies": {
"@swc/core": ">= 1.3"
"@swc/core": ">= 1.3",
"@swc/types": ">= 0.1"
},
"devDependencies": {
"@swc/core": "^1.3.78"
"@swc/core": "^1.3.107",
"@swc/types": "^0.1.5"
},
"funding": {
"type": "github",
Expand Down
5 changes: 2 additions & 3 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"compilerOptions": {
"composite": true,
"rootDir": ".",
"outDir": "./lib"
"outDir": "./lib",
},
"include": ["."],
"files": ["./package.json"],
"exclude": ["lib"]
"exclude": ["./lib"],
}
5 changes: 0 additions & 5 deletions packages/core/tsconfig.project.json

This file was deleted.

8 changes: 4 additions & 4 deletions packages/integrate-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"file-type": "^18.2.1",
"p-timeout": "^6.1.1"
"file-type": "^19.0.0",
"p-timeout": "^6.1.2"
},
"devDependencies": {
"@swc/core": "^1.3.78",
"@swc/core": "^1.3.107",
"@swc-node/register": "workspace:*",
"typescript": "^5.0.4"
"typescript": "^5.3.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Generated by [AVA](https://avajs.dev).
`Error: ␊
at /packages/integrate/__tests__/sourcemaps/sourcemaps.spec.ts:27:5␊
at Test.callFn (file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/test.js:523:21)␊
at Test.run (file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/test.js:536:23)␊
at Runner.runSingle (file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/runner.js:285:33)␊
at Runner.runTest (file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/runner.js:367:30)␊
at Test.callFn (file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/test.js:521:26)␊
at Test.run (file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/test.js:530:33)␊
at Runner.runSingle (file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/runner.js:281:33)␊
at Runner.runTest (file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/runner.js:363:30)␊
at processTicksAndRejections (node:internal/process/task_queues:95:5)␊
at async Promise.all (index 0)␊
at file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/runner.js:532:21␊
at Runner.start (file:///node_modules/.pnpm/ava@5.3.1/node_modules/ava/lib/runner.js:540:15)`
at file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/runner.js:528:21␊
at Runner.start (file:///node_modules/.pnpm/ava@6.1.1/node_modules/ava/lib/runner.js:536:15)`
Binary file not shown.
14 changes: 7 additions & 7 deletions packages/integrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"url": "https://github.com/swc-project/swc-node/issues"
},
"devDependencies": {
"@swc/helpers": "^0.5.0",
"@swc-node/core": "^1.10.2",
"@types/jest": "^29.5.0",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"jest": "^29.5.0",
"@swc/helpers": "^0.5.3",
"@swc-node/core": "^1.10.6",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.51",
"@types/react-dom": "^18.2.18",
"jest": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sinon": "^15.0.3"
"sinon": "^17.0.1"
}
}
9 changes: 7 additions & 2 deletions packages/integrate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
"rootDir": ".",
"outDir": "./lib",
"jsx": "react-jsx",
"types": ["node", "jest"]
"types": ["node", "jest"],
},
"references": [
{
"path": "../core",
},
],
"include": ["."],
"files": ["./package.json"],
"exclude": ["lib"]
"exclude": ["lib"],
}
8 changes: 5 additions & 3 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@
"access": "public"
},
"dependencies": {
"@node-rs/xxhash": "^1.3.0",
"@node-rs/xxhash": "^1.6.2",
"@swc-node/core": "^1.11.0",
"@swc-node/register": "^1.7.0"
},
"peerDependencies": {
"@swc/core": ">= 1.3",
"typescript": ">= 4.3"
"@swc/types": ">= 0.1",
"typescript": ">= 5.0"
},
"devDependencies": {
"@swc/core": "^1.3.78"
"@swc/core": "^1.3.107",
"@swc/types": "^0.1.5"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/jest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"compilerOptions": {
"composite": true,
"rootDir": ".",
"outDir": "./lib"
"outDir": "./lib",
},
"references": [{ "path": "../register" }],
"include": ["."],
"exclude": ["lib"]
"files": ["index.ts"],
"exclude": ["lib"],
}
6 changes: 0 additions & 6 deletions packages/jest/tsconfig.project.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"url": "https://github.com/sponsors/Brooooooklyn"
},
"devDependencies": {
"typescript": "^5.0.4",
"webpack": "^5.78.0"
"typescript": "^5.3.3",
"webpack": "^5.90.0"
}
}
6 changes: 0 additions & 6 deletions packages/loader/tsconfig.project.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test('default values', (t) => {
esModuleInterop: false,
dynamicImport: true,
externalHelpers: false,
ignoreDynamic: false,
jsx: true,
paths: {},
keepClassNames: true,
Expand Down Expand Up @@ -103,6 +104,7 @@ test('should set all values', (t) => {
useDefineForClassFields: false,
esModuleInterop: options.esModuleInterop,
externalHelpers: true,
ignoreDynamic: false,
dynamicImport: true,
keepClassNames: true,
jsx: true,
Expand Down
16 changes: 8 additions & 8 deletions packages/register/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@
"dependencies": {
"@swc-node/core": "^1.11.0",
"@swc-node/sourcemap-support": "^0.3.0",
"colorette": "^2.0.19",
"colorette": "^2.0.20",
"debug": "^4.3.4",
"pirates": "^4.0.5",
"tslib": "^2.5.0"
"pirates": "^4.0.6",
"tslib": "^2.6.2"
},
"peerDependencies": {
"@swc/core": ">= 1.3",
"typescript": ">= 4.3"
},
"devDependencies": {
"@swc/core": "^1.3.78",
"@swc/helpers": "^0.5.0",
"@types/debug": "^4.1.7",
"@swc/core": "^1.3.107",
"@swc/helpers": "^0.5.3",
"@types/debug": "^4.1.12",
"lodash": "^4.17.21",
"sinon": "^15.0.3",
"typescript": "^5.0.4"
"sinon": "^17.0.1",
"typescript": "^5.3.3"
},
"funding": {
"type": "github",
Expand Down
9 changes: 7 additions & 2 deletions packages/register/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"compilerOptions": {
"composite": true,
"rootDir": ".",
"outDir": "./lib"
"outDir": "./lib",
},
"references": [
{
"path": "../core",
},
],
"include": ["."],
"exclude": ["lib"]
"exclude": ["lib"],
}
5 changes: 0 additions & 5 deletions packages/register/tsconfig.project.json

This file was deleted.

Loading

0 comments on commit 653bd13

Please sign in to comment.