Skip to content

Commit

Permalink
chore(deps): migrate from ts-node to tsx (#25603)
Browse files Browse the repository at this point in the history
* chore(deps): remove ts-node

* chore(deps): add tsx

* chore(deps): migrate from ts-node to tsx

* chore(scripts/diff-features): remove unnecessary ts-node fallback

* chore(deps): remove `@swc/*`

* chore(tsx): remove unnecesssary --no-warnings option

The warnings that concern us are ignored by tsx:
https://github.com/privatenumber/tsx/blob/28a3e7d2b8fd72b683aab8a98dd1fcee4624e4cb/src/suppress-warnings.cts\#L12

Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>

---------

Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
  • Loading branch information
caugner and queengooborg authored Jan 9, 2025
1 parent 80ca389 commit f986486
Show file tree
Hide file tree
Showing 7 changed files with 546 additions and 1,561 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add-push-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: node --loader=ts-node/esm --no-warnings=ExperimentalWarning ./scripts/enumerate-features.ts features.json
- run: node --loader=ts-node/esm --no-warnings=ExperimentalWarning ./scripts/diff-features.ts --no-github --format=json > features.diff.json
- run: npx tsx ./scripts/enumerate-features.ts features.json
- run: npx tsx ./scripts/diff-features.ts --no-github --format=json > features.diff.json
- uses: actions/upload-artifact@v4
with:
name: enumerate-features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-browser-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
node-version-file: ".nvmrc"
cache: npm
- run: npm install -D typescript
- run: npm install -D ts-node
- run: npm install -D tsx
- name: Run update-browser-releases script
id: ubr
run: |
Expand Down
1 change: 0 additions & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"loader": "ts-node/esm",
"extensions": ["ts", "tsx"]
}
Loading

0 comments on commit f986486

Please sign in to comment.