Skip to content

Commit c63e1e1

Browse files
committed
refactor(repo): changed tsconfig to generate type defination
1 parent 38d67fe commit c63e1e1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "string-cipher",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Simple string encryption and decryption functions",
55
"main": "./dist/index.js",
6+
"types": "dist/index.d.ts",
67
"repository": {
78
"type": "git",
89
"url": "https://github.com/limplash/string-cipher.git"

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"target": "es2015",
4+
"target": "es6",
55
"lib": [
66
"es2020"
77
],
88
"moduleResolution": "node",
99
"baseUrl": "./",
10-
"outDir": "./dist"
10+
"outDir": "./dist",
11+
"declaration": true
1112
},
1213
"exclude": [
1314
"node_modules",

0 commit comments

Comments
 (0)