Skip to content

Commit 0dd5ce5

Browse files
committed
Add TS compiler
1 parent 08ecc5b commit 0dd5ce5

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

package-lock.json

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "1.0.0",
44
"scripts": {
55
"lint": "eslint . && prettier -c \"**/*.js\"",
6-
"fix": "eslint . --fix && prettier --write \"**/*.js\""
6+
"fix": "eslint . --fix && prettier --write \"**/*.js\"",
7+
"build": "tsc; prettier --write \"**/*.js\""
78
},
89
"author": "Timur Shemsedinov",
910
"private": true,
1011
"dependencies": {
1112
"eslint": "^9.12.0",
1213
"eslint-config-metarhia": "^9.1.0",
13-
"prettier": "^3.3.3"
14+
"prettier": "^3.3.3",
15+
"typescript": "^5.6.3"
1416
}
1517
}

tsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "CommonJS",
5+
"moduleResolution": "node",
6+
"strict": true,
7+
"esModuleInterop": true,
8+
"skipLibCheck": true,
9+
"outDir": "./TypeScript",
10+
"rootDir": "./TypeScript",
11+
"allowSyntheticDefaultImports": true,
12+
"isolatedModules": true,
13+
"pretty": true
14+
},
15+
"include": ["TypeScript/*.ts"],
16+
"exclude": ["node_modules"]
17+
}

0 commit comments

Comments
 (0)