Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update tsconfig by replacing ts-node-test with tsx (#1028)
Browse files Browse the repository at this point in the history
* `npm install --save-dev @tsconfig/strictest @tsconfig/node18`

* Update tsconfig with using tsconfig/base again

* `npm install --save-dev tsx`

* `npm uninstall ts-node-test`

* Use glob to run tsx with test runner for TS files

nodejs/help#3902 (comment)

* Replace ts-node-test with tsx

* Update docs around repl
  • Loading branch information
kachick authored Jul 23, 2023
1 parent 4004fe1 commit fae617f
Show file tree
Hide file tree
Showing 7 changed files with 927 additions and 668 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- run: npm ci
- run: npx tsc
- run: make eslint-check
- run: npx ts-node-test test/*.ts
- run: npm test
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $ make check
dprint check
./bin/cli lint
npx tsc
npx ts-node-test test/*.ts
npm test
crystal spec
./bin/cli validate
```
Expand Down Expand Up @@ -83,12 +83,12 @@ Actual behavior checking requires <https://github.com/uhop/node-re2> that includ

```console
$ npm install
$ node
Welcome to Node.js v18.15.0.
$ npx tsx
Welcome to Node.js v18.16.1.
Type ".help" for more information.
```

```js
```typescript
> const RE2 = require("re2");
undefined
> let pattern = new RE2("^v(?<version>\\S+)");
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ check: lint-all test validate
.PHONY: test
test:
npx tsc
npx ts-node-test test/*.ts
npm test
crystal spec

.PHONY: setup
Expand Down
Loading

0 comments on commit fae617f

Please sign in to comment.