Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

pass tsconfig.json to node command

# To force the use of a specific tsconfig.json, use the TS_NODE_PROJECT environment variable
TS_NODE_PROJECT="path/to/tsconfig.json" node --loader ts-node/esm ./my-script.ts
Source by parceljs.org #
 
PREVIOUS NEXT
Tagged: #pass #node #command
ADD COMMENT
Topic
Name
4+6 =