Skip to content

Commit

Permalink
refactor(npm-publish): add np package
Browse files Browse the repository at this point in the history
1) Add `np` package for npm publish,
2) Add scripts to trigger npm release with `np` package
  • Loading branch information
emjimadhu committed Apr 14, 2020
1 parent 91fb339 commit 7990209
Show file tree
Hide file tree
Showing 2 changed files with 1,341 additions and 20 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-formatter-formattify",
"version": "1.0.0",
"version": "0.0.0",
"description": "A Custom beautiful eslint formatter.",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -10,6 +10,8 @@
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"git:commit": "git-cz",
"release": "np --any-branch --no-yarn --no-cleanup",
"release:preview": "np --any-branch --no-yarn --no-cleanup --preview",
"preinstall": "$npm_execpath --silent run checkYarn",
"checkYarn": "echo \"$npm_execpath\" | grep -q \"yarn\\.js$\" || (echo '⚠️ Use YARN not NPM! ⚠️ ' && echo && exit 1)"
},
Expand Down Expand Up @@ -47,6 +49,7 @@
"cz-conventional-changelog": "3.1.0",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"np": "^6.2.1",
"typescript": "^3.8.3"
},
"husky": {
Expand Down
Loading

0 comments on commit 7990209

Please sign in to comment.