Skip to content

Commit

Permalink
fix(types): adding typescript d.ts file into dist
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Apr 19, 2020
1 parent 9cbc27e commit e6300f7
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 53 deletions.
23 changes: 20 additions & 3 deletions package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0-semantic-release",
"description": "react tooltip component",
"main": "dist/index.js",
"types": "react-tooltip.d.ts",
"types": "dist/react-tooltip.d.ts",
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"engines": {
Expand All @@ -15,11 +15,12 @@
"test:unit": "mocha --require @babel/register --require ignore-styles 'test/*.spec.js'",
"clean": "rimraf dist",
"build:rollup": "rollup -c",
"build": "npm-run-all test:unit build:rollup",
"build": "npm-run-all clean copy:types build:rollup",
"build:watch": "rollup -c -w",
"start": "npm-run-all clean build:watch",
"gh-pages": "gh-pages -d example",
"github-changes": "github-changes -o wwayne -r react-tooltip -a --only-pulls --use-commit-body",
"copy:types": "cpy './react-tooltip.d.ts' './dist' --parents --dot",
"cm": "git cz",
"semantic-release": "semantic-release"
},
Expand All @@ -28,6 +29,11 @@
"path": "node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"repository": {
"type": "git",
"url": "https://github.com/wwayne/react-tooltip"
Expand Down Expand Up @@ -74,6 +80,9 @@
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.8.3",
"@babel/register": "^7.8.3",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/travis-cli": "^8.3.5",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@semantic-release/changelog": "^5.0.0",
Expand All @@ -93,6 +102,7 @@
"chai-spies": "^1.0.0",
"commitizen": "2.9.6",
"concurrently": "^2.1.0",
"cpy-cli": "^3.1.0",
"cz-conventional-changelog": "2.1.0",
"enzyme": "^2.3.0",
"enzyme-adapter-react-16": "^1.15.2",
Expand All @@ -109,6 +119,7 @@
"eslint-plugin-standard": "^4.0.1",
"gh-pages": "1.1.0",
"github-changes": "^1.1.2",
"husky": "^3.1.0",
"http-server": "^0.11.1",
"ignore-styles": "5.0.1",
"jsdom": "^9.2.1",
Expand Down Expand Up @@ -142,5 +153,11 @@
},
"files": [
"dist"
]
],
"husky": {
"hooks": {
"pre-commit": "yarn test:unit",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}

0 comments on commit e6300f7

Please sign in to comment.