-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.txt
38 lines (22 loc) · 900 Bytes
/
info.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
tsc --init
npm init -y
npm install nodemon
npm install concurrently
edit package.json :
"scripts": {
"go:build": "tsc -w",
"go:run": "nodemon build/index.js",
"start": "concurrently npm:go:*"
},
then shell command:
npm start
------------------
running DENO instead of Node
In DENO all imports need to have a valid filename with extension, for example:
import { Sorter } from "./Sorter.ts";
DIRECTLY RUN A .TS FILE
deno run --no-check src/index.ts
FROM DENO DOCS:
When using deno run, deno test, deno cache, or deno bundle you can specify the --no-check flag to disable TypeScript type checking. This can significantly reduce the time that program startup takes. This can be very useful when type checking is provided by your editor and you want startup time to be as fast as possible
using tsconfig.json for Deno
deno run --no-check -c tsconfig.json src/index.ts