Skip to content

Commit 2f4684c

Browse files
committed
fix: TypeScript definition not available on npm module
Fixes #73
1 parent 27199d5 commit 2f4684c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parse-domain
22
============
3-
**Splits a URL into sub-domain, domain and the top-level domain.**
3+
**Splits a URL into sub-domain, domain and the top-level domain. Provides TypeScript typings.**
44

55
[![](https://img.shields.io/npm/v/parse-domain.svg)](https://www.npmjs.com/package/parse-domain)
66
[![](https://img.shields.io/npm/dm/parse-domain.svg)](https://www.npmjs.com/package/parse-domain)

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.3.0",
44
"description": "Splits an url into sub-domain, domain and effective top-level-domain",
55
"main": "./lib/parseDomain.js",
6-
"types": "./lib/index.d.ts",
6+
"types": "./src/index.d.ts",
77
"scripts": {
88
"build": "run-s build:lib build:tries",
99
"build:lib": "run-s build:lib:clean build:lib:babel",
@@ -61,6 +61,7 @@
6161
"scripts",
6262
"lists",
6363
"test",
64-
"build"
64+
"build",
65+
"src/index.d.ts"
6566
]
6667
}

0 commit comments

Comments
 (0)