Skip to content

Commit

Permalink
refactor: add publishConfig and clean-publish package (#752)
Browse files Browse the repository at this point in the history
* refactor: add publishCongif and clean-publish package

* refactor: add del-cli
  • Loading branch information
thabarbados committed Feb 14, 2022
1 parent 216abf9 commit c9c48de
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 26 deletions.
4 changes: 4 additions & 0 deletions .clean-publish
@@ -0,0 +1,4 @@
{
"withoutPublish": true,
"tempDir": "package"
}
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -4,9 +4,8 @@
node_modules

# builds
build
dist
es
package

# misc
.DS_Store
Expand Down
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -36,25 +36,23 @@
"Wrapper",
"Charts"
],
"main": "dist/vue-chartjs.cjs",
"module": "dist/vue-chartjs.mjs",
"jsnext:main": "es/index.js",
"typings": "types/index.d.ts",
"files": [
"src",
"dist",
"es",
"types/*.d.ts"
],
"main": "./src/index.js",
"typings": "./dist/index.d.ts",
"publishConfig": {
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"directory": "package"
},
"scripts": {
"prepublishOnly": "pnpm test && pnpm build && del ./package && clean-publish",
"postpublish": "del ./package",
"emitDeclarations": "tsc --skipLibCheck --emitDeclarationOnly",
"build": "rollup -c & pnpm emitDeclarations",
"unit": "jest -c jest.config.json",
"test": "pnpm lint && pnpm unit",
"lint": "eslint --ext .js,.vue src test",
"format": "prettier --write src test",
"release": "standard-version",
"prepublishOnly": "pnpm lint && pnpm test && pnpm build",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"commit": "cz",
Expand Down Expand Up @@ -85,10 +83,12 @@
"babel-loader": "8.2.3",
"browserslist": "^4.19.1",
"chart.js": "^2.8.0",
"clean-publish": "^4.0.0",
"commitizen": "^4.2.4",
"cross-env": "^5.1.1",
"css-loader": "^0.28.0",
"cz-conventional-changelog": "3.3.0",
"del-cli": "^4.0.1",
"eslint": "7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^10.2.1",
Expand Down
150 changes: 142 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9c48de

Please sign in to comment.