Skip to content

Commit 6fe71aa

Browse files
authored
Switch from ts-node to tsx (#2135)
* Switch from ts-node to tsx * Make tsx a non-dev dependency
1 parent b1d8b47 commit 6fe71aa

File tree

7 files changed

+457
-155
lines changed

7 files changed

+457
-155
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
if: steps.check.outputs.changed == 'true'
6464
run: |
6565
npm install -D typescript
66-
npm install -D ts-node
66+
npm install -D tsx
6767
RESULTS_DIR=mdn-bcd-results npm run selenium
6868
env:
6969
SECRETS_JSON: ${{secrets.SECRETS_JSON}}

.mocharc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"loader": "ts-node/esm",
32
"extensions": ["ts", "tsx"],
43
"exclude": ["unittest/", "./**/node_modules/**/*", "es-scraper/"]
54
}

Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
tests: nodemon -e json,yaml,idl,ts --watch custom --watch test-builder --exec "npm run build:tests"
22
resources: nodemon --watch package-lock.json --watch style.scss --exec "npm run build:resources"
3-
web: nodemon -e ts,json --exec "node --loader=ts-node/esm --no-warnings=ExperimentalWarning app.ts"
3+
web: nodemon -e ts,json --exec "tsx app.ts"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ See [docs/reviewing-bcd-changes.md](./docs/reviewing-bcd-changes.md) for informa
3434
npm run dev
3535
```
3636

37-
(`dev`, as opposed to `start`, will use `ts-node` to run the TypeScript file, as well as automatically rebuild the tests and reload the server on file changes.)
37+
(`dev`, as opposed to `start`, will use `tsx` to run the TypeScript file, as well as automatically rebuild the tests and reload the server on file changes.)
3838

3939
To also handle HTTPS traffic, use the `--https-cert` and `--https-key` arguments:
4040

0 commit comments

Comments
 (0)