Skip to content

Commit

Permalink
fix: TypeScript definition not available on npm module
Browse files Browse the repository at this point in the history
Fixes #73
  • Loading branch information
jhnns committed Jun 14, 2019
1 parent 27199d5 commit 2f4684c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parse-domain
============
**Splits a URL into sub-domain, domain and the top-level domain.**
**Splits a URL into sub-domain, domain and the top-level domain. Provides TypeScript typings.**

[![](https://img.shields.io/npm/v/parse-domain.svg)](https://www.npmjs.com/package/parse-domain)
[![](https://img.shields.io/npm/dm/parse-domain.svg)](https://www.npmjs.com/package/parse-domain)
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.3.0",
"description": "Splits an url into sub-domain, domain and effective top-level-domain",
"main": "./lib/parseDomain.js",
"types": "./lib/index.d.ts",
"types": "./src/index.d.ts",
"scripts": {
"build": "run-s build:lib build:tries",
"build:lib": "run-s build:lib:clean build:lib:babel",
Expand Down Expand Up @@ -61,6 +61,7 @@
"scripts",
"lists",
"test",
"build"
"build",
"src/index.d.ts"
]
}

0 comments on commit 2f4684c

Please sign in to comment.