Skip to content

Commit 25ccf52

Browse files
committed
Move types
1 parent 57faf1c commit 25ccf52

File tree

2 files changed

+5777
-5628
lines changed

2 files changed

+5777
-5628
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"version": "5.1.0",
44
"description": "Convert query parameters from API urls to MongoDB queries",
55
"main": "dist/cjs/index.js",
6+
"types": "dist/cjs/types.d.ts",
67
"files": [
7-
"dist/",
8-
"./types.d.ts"
8+
"dist/"
99
],
10-
"types": "./types.d.ts",
1110
"scripts": {
12-
"build": "babel ./src/index.js --out-file ./dist/cjs/index.js",
11+
"build": "babel ./src/index.js --out-file ./dist/cjs/index.js && shx cp ./types.d.ts ./dist/cjs/",
1312
"coverage": "nyc npm test && nyc report --reporter=html",
1413
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
1514
"lint": "eslint ./src ./test",
@@ -35,7 +34,6 @@
3534
"url": "https://github.com/loris/api-query-params/issues"
3635
},
3736
"homepage": "https://github.com/loris/api-query-params#readme",
38-
"dependencies": {},
3937
"devDependencies": {
4038
"@babel/cli": "7.11.6",
4139
"@babel/core": "7.11.6",
@@ -50,6 +48,7 @@
5048
"np": "6.5.0",
5149
"nyc": "15.1.0",
5250
"prettier": "2.1.2",
53-
"rimraf": "3.0.2"
51+
"rimraf": "3.0.2",
52+
"shx": "^0.3.3"
5453
}
5554
}

0 commit comments

Comments
 (0)