Skip to content

Commit 5fc952e

Browse files
LongYinanBrooooooklyn
authored andcommitted
chore: migrate to @swc-node/register
1 parent 96449c6 commit 5fc952e

File tree

5 files changed

+1140
-1128
lines changed

5 files changed

+1140
-1128
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ jobs:
169169
- name: 'Install dependencies'
170170
run: yarn install --frozen-lockfile --registry https://registry.npmjs.org
171171

172+
- name: Build TypeScript
173+
run: yarn build:ts
174+
172175
- name: Download artifacts
173176
uses: actions/download-artifact@v2
174177
with:
@@ -182,9 +185,6 @@ jobs:
182185
- name: Test bindings
183186
run: yarn test
184187

185-
- name: Build TypeScript
186-
run: yarn build:ts
187-
188188
- name: List packages
189189
run: ls -R packages
190190
shell: bash

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
},
2222
"devDependencies": {
2323
"@octokit/rest": "^18.0.3",
24+
"@swc-node/register": "^0.4.2",
2425
"@typescript-eslint/eslint-plugin": "^3.9.1",
2526
"@typescript-eslint/parser": "^3.9.1",
26-
"ava": "^3.11.1",
27+
"ava": "^3.12.1",
2728
"benchmark": "^2.1.4",
2829
"chalk": "^4.1.0",
2930
"codecov": "^3.7.2",
@@ -39,15 +40,17 @@
3940
"napi-rs": "^0.2.6",
4041
"npm-run-all": "^4.1.5",
4142
"nyc": "^15.1.0",
42-
"prettier": "^2.0.5",
43+
"prettier": "^2.1.0",
4344
"putasset": "^5.0.3",
44-
"ts-node": "^9.0.0",
4545
"tsconfig-paths": "^3.9.0",
4646
"typescript": "^4.0.2"
4747
},
48+
"optionalDependencies": {
49+
"@swc-node/core-linux-musl": "^0.4.2"
50+
},
4851
"ava": {
4952
"extensions": ["ts"],
50-
"require": ["ts-node/register", "tsconfig-paths/register"],
53+
"require": ["@swc-node/register", "tsconfig-paths/register"],
5154
"files": ["packages/**/*.spec.ts"]
5255
},
5356
"lint-staged": {

packages/deno-lint/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,5 @@
4141
},
4242
"devDependencies": {
4343
"@types/webpack": "^4.41.21"
44-
},
45-
"optionalDependencies": {
46-
"@node-rs/deno-lint-darwin": "^0.2.0",
47-
"@node-rs/deno-lint-linux": "^0.2.0",
48-
"@node-rs/deno-lint-win32": "^0.2.0"
4944
}
5045
}

packages/helper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"url": "https://github.com/napi-rs/node-rs/issues"
2222
},
2323
"dependencies": {
24-
"tslib": "^2.0.0"
24+
"tslib": "^2.0.1"
2525
}
2626
}

0 commit comments

Comments
 (0)