From ddb040f45c480cfd24ae393956c9f1f194143826 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sat, 6 Aug 2022 01:40:39 +0000 Subject: [PATCH] PR-134290: fixing npx. --- bin/cli.js | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index 12b964b..3e829a7 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -14,6 +14,15 @@ const runCommand = command => { return true; } +const runCommandWithOutput = command => { + try{ + return execSync(`${command}`); + } catch (e) { + console.error(`Failed to execute ${command}`, e); + return false; + } +} + const replaceTextOnFile = ({ file, textToBeReplaced, diff --git a/package.json b/package.json index 567e7e8..3955eff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-node-ts-graphql-server", - "version": "1.1.2", + "version": "1.1.3", "description": "Node with Typescript and GraphQL Server", "bin": "./bin/cli.js", "main": "index.js",