From 2443ebd1fdcfbba204111e02f5cc8c11d7c9c489 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 27 May 2019 20:59:13 +0300 Subject: [PATCH] =?UTF-8?q?=EF=BF=BD=20Finished=20the=20deploy=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ts | 2 -- package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy.ts b/deploy.ts index a53833e..1e9a1e0 100644 --- a/deploy.ts +++ b/deploy.ts @@ -2,8 +2,6 @@ import { publish } from "gh-pages" import { exec } from "child_process" const args = process.argv.splice(2) -const argsNoFlags = args.filter(val => val[0] !== "-") - const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1 const message = (mFlag) ? args[mFlag + 1] : "automated update" diff --git a/package.json b/package.json index 8b663af..65c0dad 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "webpack-dev-server --open --mode development", "build": "webpack --mode production", - "deploy": "#needs node 12.2.0 && npm run build && ts-node deploy" + "deploy": "ts-node deploy" }, "sideEffects": [ "*.scss"