Skip to content

Commit bfc3525

Browse files
authored
Merge pull request #12 from lucasgdb/dev
chore: add typescript support
2 parents 7fea0bf + f2951e2 commit bfc3525

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0",
44
"description": "Generate random strings, strings with mask and strength passwords with password-strength tester",
55
"scripts": {
6-
"build": "webpack",
6+
"build": "webpack && tsc",
77
"test": "jest"
88
},
99
"devDependencies": {

tsconfig.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"compilerOptions": {
3-
"esModuleInterop": true,
3+
"noImplicitAny": true,
4+
"noImplicitThis": true,
5+
"strictNullChecks": true,
6+
"noEmit": false,
7+
"emitDeclarationOnly": true,
8+
"declaration": true,
49
"allowJs": true,
5-
"noEmit": true,
6-
"moduleResolution": "node",
7-
"resolveJsonModule": true,
8-
"strict": true
10+
"declarationDir": "dist/@types"
911
},
1012
"include": ["src"],
1113
"exclude": ["dist", "node_modules"]

0 commit comments

Comments
 (0)