Skip to content

Commit 30b0f73

Browse files
austincekeithamus
authored andcommitted
fix: add typings to package.json files (#230)
1 parent d0aa54a commit 30b0f73

File tree

3 files changed

+3
-101
lines changed

3 files changed

+3
-101
lines changed

dist/chai-http.d.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

package-lock.json

Lines changed: 0 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
"files": [
2323
"dist/chai-http.js",
2424
"lib/*.js",
25-
"index.js"
25+
"index.js",
26+
"types/index.d.ts"
2627
],
2728
"main": "./index",
29+
"types": "./types/index.d.ts",
2830
"repository": {
2931
"type": "git",
3032
"url": "[email protected]:chaijs/chai-http.git"
@@ -34,7 +36,6 @@
3436
"prebuild:js": "rm -rf dist",
3537
"build:js": "simplifyify lib/http.js --outfile dist/chai-http.js --bundle --minify --debug --standalone chaiHttp",
3638
"build:ts": "cd types && tsc",
37-
"postbuild:ts": "cpr types/index.d.ts dist/chai-http.d.ts --overwrite",
3839
"build:readme": "rm -rf README.md && node ./support/readme",
3940
"start": "npm-run-all --parallel watch server",
4041
"watch": "npm run build:js -- --watch",
@@ -60,7 +61,6 @@
6061
"devDependencies": {
6162
"chai": "4",
6263
"coveralls": "^3.0.0",
63-
"cpr": "^3.0.1",
6464
"dox": "^0.9.0",
6565
"es6-shim": "^0.35.1",
6666
"http-server": "^0.10.0",

0 commit comments

Comments
 (0)