Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ts-node with tsx #829

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ See the section about [Test runner](https://nodejs.org/docs/latest-v18.x/api/tes
Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

## How to run repl

```ts
❯ npx tsx
> const n: string = 42; // You can write with TypeScript except actual type checking
> const { shuffleArray } = await import('./src/common/listHelpers');
undefined
> shuffleArray([1, 2, 3, 4, 5]);
[ 4, 2, 1, 3, 5 ]
> shuffleArray([1, 2, 3, 4, 5]);
[ 3, 2, 1, 4, 5 ]
```

## How to update contributors list

Members will update the list with this command after merging your PR.
Expand Down
153 changes: 152 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react-hooks": "^4.6.0",
"ts-node": "^10.9.1",
"ts-node-test": "^0.3.0",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vite": "^4.1.1"
},
Expand Down