Skip to content

Commit a4b8eb1

Browse files
authored
Fix npm TypeScript icon
Closes #43
1 parent 6e774bb commit a4b8eb1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "comment-json",
33
"version": "4.2.4",
44
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!",
5-
"main": "src/index.js",
5+
"main": "./src/index.js",
6+
"types": "./index.d.ts",
67
"scripts": {
78
"test": "npm run test:only",
89
"test:only": "npm run test:ts && npm run test:node",
@@ -17,8 +18,8 @@
1718
"report:open": "open coverage/index.html"
1819
},
1920
"files": [
20-
"src/",
21-
"index.d.ts"
21+
"./src/",
22+
"./index.d.ts"
2223
],
2324
"repository": {
2425
"type": "git",

0 commit comments

Comments
 (0)