Skip to content

Instantly share code, notes, and snippets.

@JacobWeisenburger
Last active January 20, 2023 16:41
Show Gist options
  • Save JacobWeisenburger/0d933a09ba149cb31ccf4f6911c7304b to your computer and use it in GitHub Desktop.
Save JacobWeisenburger/0d933a09ba149cb31ccf4f6911c7304b to your computer and use it in GitHub Desktop.
ts-node-starter
{
"name": "ts-node-starter",
"main": "src/index.ts",
"author": "Jacob Weisenburger",
"type": "module",
"scripts": {
"start": "node --no-warnings --loader ts-node/esm --es-module-specifier-resolution=node src",
"dev": "nodemon",
"dev.cmd": "start cmd /k npm run dev"
},
"nodemonConfig": {
"watch": [
"./"
],
"ext": "",
"exec": "cls && npm start"
},
"devDependencies": {
"nodemon": "^2.0.15",
"ts-node": "^10.7.0"
}
}
console.log( 'hello world' )
{
"compilerOptions": {
"paths": {
"@weis-guys/*": [
"../libs/*"
]
},
"lib": [
"dom",
"dom.iterable",
"ESNext"
],
"esModuleInterop": true,
"moduleResolution": "Node",
"module": "ESNext",
"target": "ESNext",
"jsx": "preserve",
"composite": false,
"declaration": true,
"declarationMap": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": false,
"strictNullChecks": true,
"noImplicitAny": false,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"noEmit": true,
"incremental": true,
"resolveJsonModule": true
},
"ts-node": {
"transpileOnly": true,
"files": true,
"experimentalResolver": true
},
"include": [
"src"
],
"exclude": [
"node_modules"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment