Skip to content

Commit 9af727e

Browse files
committed
feat: Install TypeScript and add tsconfig
1 parent a8285ca commit 9af727e

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"eslint": "^7.20.0",
1414
"eslint-config-sora": "^3.1.0",
1515
"husky": "^5.0.9",
16-
"lerna": "^4.0.0"
16+
"lerna": "^4.0.0",
17+
"typescript": "^4.1.5"
1718
}
1819
}

tsconfig.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2017",
4+
"strict": true,
5+
"jsx": "preserve",
6+
"moduleResolution": "node",
7+
"importHelpers": true,
8+
"skipLibCheck": true,
9+
"esModuleInterop": true,
10+
"sourceMap": true,
11+
"lib": ["es2017", "dom", "dom.iterable"]
12+
},
13+
"include": [
14+
"src/**/*.ts",
15+
"src/**/*.tsx",
16+
],
17+
"exclude": [
18+
"node_modules"
19+
]
20+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,11 @@ typedarray@^0.0.6:
48544854
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
48554855
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
48564856

4857+
typescript@^4.1.5:
4858+
version "4.1.5"
4859+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
4860+
integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==
4861+
48574862
uglify-js@^3.1.4:
48584863
version "3.12.4"
48594864
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.12.4.tgz#93de48bb76bb3ec0fc36563f871ba46e2ee5c7ee"

0 commit comments

Comments
 (0)