From 95b9599dd578412a579fea795045c5c9bd739f31 Mon Sep 17 00:00:00 2001 From: lzear Date: Mon, 19 Oct 2020 01:02:39 +0200 Subject: [PATCH] feat: force a release --- package.json | 1 - tools/semantic-release-prepare.ts | 54 ------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 tools/semantic-release-prepare.ts diff --git a/package.json b/package.json index 05b3675..2612cd1 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "report-coverage": "cat ./coverage/lcov.info | coveralls", "commit": "git-cz", "semantic-release": "semantic-release", - "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "precommit": "lint-staged", "travis-deploy-once": "travis-deploy-once", "prepush": "npm run test:prod && npm run build", diff --git a/tools/semantic-release-prepare.ts b/tools/semantic-release-prepare.ts deleted file mode 100644 index db14dd7..0000000 --- a/tools/semantic-release-prepare.ts +++ /dev/null @@ -1,54 +0,0 @@ -const path = require("path") -const { fork } = require("child_process") -const colors = require("colors") - -const { readFileSync, writeFileSync } = require("fs") -const pkg = JSON.parse( - readFileSync(path.resolve(__dirname, "..", "package.json")) -) - -pkg.scripts.prepush = "npm run test:prod && npm run build" -pkg.scripts.commitmsg = "commitlint -E HUSKY_GIT_PARAMS" - -writeFileSync( - path.resolve(__dirname, "..", "package.json"), - JSON.stringify(pkg, null, 2) -) - -// Call husky to set up the hooks -fork(path.resolve(__dirname, "..", "node_modules", "husky", "lib", "installer", 'bin'), ['install']) - -console.log() -console.log(colors.green("Done!!")) -console.log() - -if (pkg.repository.url.trim()) { - console.log(colors.cyan("Now run:")) - console.log(colors.cyan(" npm install -g semantic-release-cli")) - console.log(colors.cyan(" semantic-release-cli setup")) - console.log() - console.log( - colors.cyan('Important! Answer NO to "Generate travis.yml" question') - ) - console.log() - console.log( - colors.gray( - 'Note: Make sure "repository.url" in your package.json is correct before' - ) - ) -} else { - console.log( - colors.red( - 'First you need to set the "repository.url" property in package.json' - ) - ) - console.log(colors.cyan("Then run:")) - console.log(colors.cyan(" npm install -g semantic-release-cli")) - console.log(colors.cyan(" semantic-release-cli setup")) - console.log() - console.log( - colors.cyan('Important! Answer NO to "Generate travis.yml" question') - ) -} - -console.log()