From 070bc1a55982865ebe2250a79c0dc67045082c65 Mon Sep 17 00:00:00 2001 From: Charlike Mike Reagent Date: Wed, 14 Nov 2018 03:36:00 +0200 Subject: [PATCH] fix: tweaks Signed-off-by: Charlike Mike Reagent --- .circleci/config.yml | 7 +++++-- .gitkeep | 0 package.json | 22 ++++++++++++---------- yarn.lock | 6 +++--- 4 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 .gitkeep diff --git a/.circleci/config.yml b/.circleci/config.yml index 2fbe736..f8f0d6e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,8 +55,11 @@ jobtest: &jobtest name: Installing project dependencies command: yarn install --prefer-offline || yarn install - run: - name: Linting and testing your project - command: yarn global add nyc@latest && yarn run lint && yarn test + name: Linting your project + command: yarn run lint + - run: + name: Testing your project + command: yarn global add nyc@latest && yarn test - save_cache: key: new-release-{{ checksum "yarn.lock" }} paths: node_modules diff --git a/.gitkeep b/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index eac3ec9..724254c 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,12 @@ "scripts": { "docs": "verb", "lint": "eslint '**/*.js' --cache --fix --quiet --format codeframe", + "test-only": "asia -r esm", "test": "nyc asia", - "commit": "yarn lint && yarn test && yarn dry", - "dry": "git add -A && git status --porcelain && gitcommit -sS", - "release": "node cli.js" + "precommit": "yarn run lint && yarn run test-only", + "commit": "yarn dry", + "dry": "git add -A && git status --porcelain && gitcommit", + "release": "tunnckocore-release" }, "engines": { "node": "^8.11.0 || >=10.13.0" @@ -28,17 +30,12 @@ "index.js", "cli.js" ], - "bin": { - "release": "cli.js", - "new-release": "cli.js", - "tunnckocore-release": "cli.js" - }, "main": "index.js", "module": "src/index.js", "typings": "src/index.d.ts", - "version": "5.0.0", + "version": "5.0.3", "repository": "tunnckoCoreLabs/new-release", - "homepage": "https://github.com/tunnckoCore/release-cli", + "homepage": "https://github.com/tunnckoCoreLabs/new-release", "author": "Charlike Mike Reagent (https://tunnckocore.com)", "publishConfig": { "access": "public", @@ -76,5 +73,10 @@ "new-release", "semantic-release" ] + }, + "bin": { + "release": "cli.js", + "new-release": "cli.js", + "tunnckocore-release": "cli.js" } } diff --git a/yarn.lock b/yarn.lock index de96240..00d4f61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2140,9 +2140,9 @@ p-try@^1.0.0: integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= parse-commit-message@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/parse-commit-message/-/parse-commit-message-3.2.0.tgz#8065d006e9e4b273889130067ae435b8986508a6" - integrity sha512-LzkHT+I2cG+3v0iGnMNPda4qdZoTjiz40rOEdo7pd7gpE4YHXFDvF4dj2LuoMQX7Ykb3WlKZBfwLSKFHASvjGw== + version "3.2.1" + resolved "https://registry.yarnpkg.com/parse-commit-message/-/parse-commit-message-3.2.1.tgz#2c04524469df5c7f8d952205a112ba10fe64554b" + integrity sha512-Qis/J5olChQS7UG/sPDc4fYX/GQvc33a1kxwq+Md42CSCexczXA1C4IR3rOziriYxYhptyBdaT2r7hs897UTLQ== dependencies: collect-mentions "^1.0.2" dedent "^0.7.0"