Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Commit 1402f70

Browse files
committed
Move .d.ts to the dist folder
1 parent fae56b6 commit 1402f70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"repository": "github/query-selector",
66
"main": "dist/index.umd.js",
77
"module": "dist/index.esm.js",
8-
"types": "index.d.ts",
8+
"types": "dist/index.d.ts",
99
"scripts": {
1010
"clean": "rm -rf dist",
1111
"lint": "eslint index.js test/ && flow check",
1212
"prebuild": "npm run clean && npm run lint && mkdir dist",
1313
"build-umd": "BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow",
1414
"build-esm": "BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow",
15-
"build": "npm run build-umd && npm run build-esm",
15+
"build": "npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts",
1616
"test": "BABEL_ENV=umd mocha --require @babel/register",
1717
"prepublishOnly": "npm run build"
1818
},
@@ -22,8 +22,7 @@
2222
],
2323
"license": "MIT",
2424
"files": [
25-
"dist",
26-
"index.d.ts"
25+
"dist"
2726
],
2827
"devDependencies": {
2928
"@babel/cli": "^7.0.0",

0 commit comments

Comments
 (0)