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

"Fix" for ts-node-issue-1671 #24

Open
wants to merge 4 commits into
base: ts-node-issue-1671
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion package-lock.json → back/package-lock.json

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

10 changes: 10 additions & 0 deletions back/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "module",
"dependencies": {
"ts-node": "latest",
"typescript": "latest"
},
"volta": {
"node": "17.6.0"
}
}
3 changes: 1 addition & 2 deletions run.sh → back/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ n 17.6.0
npm install

# Run ts-node
cd back
node --loader=ts-node/esm --experimental-specifier-resolution=node server.ts
node server.js

echo "Process exited with code: $?"
echo
Expand Down
7 changes: 7 additions & 0 deletions back/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {getErrorMessage} from './common/getErrorMessage.js';

console.log();
console.log();
console.log(getErrorMessage());
console.log();
console.log();
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion example.ts

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions front/common
Empty file added front/package.json
Empty file.
Empty file added front/run.sh
Empty file.
Empty file added front/tsconfig.json
Empty file.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"type": "module",
"dependencies": {
"ts-node": "latest",
"typescript": "latest"
},
"volta": {
"node": "17.6.0"
}
"type": "module"
}