Skip to content

[PSA] Sandbox with Typescript 4.5.0-beta and ts-node with nodenext modules #1490

Description

@FossPrime

Sandbox: https://codesandbox.io/s/ts-http-ygsxh?file=/tsconfig.json

// tsconfig.json
{
  "ts-node": {
    "files": true
  },
  "compilerOptions": {
    "target": "es2021",
    "module": "nodenext",
    "outDir": "/tmp/ts-http",
    "rootDir": "./src",
    "strict": true
  },
  "exclude": [
    "test"
  ]
}
// package.json
"type": "module",
"scripts": {
  "start": "nodemon -x node --loader ts-node/esm src/index.ts"
},
"dependencies": {
  "typescript": "4.5.0-beta",
  "@types/node": "14.14.37",

Though I'd post this somewhere... because it's not just a run ts-node-dev and you're done deal... they are on ts-node version 9, and don't override files/includes by default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions