From f51090dd53a14a3abccfe43a4aae8c41acd4cd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Louv-Jansen?= Date: Fri, 11 Feb 2022 20:02:00 +0100 Subject: [PATCH] Add missing dependency `graphql` (#299) --- package.json | 4 ++-- src/backportRun.ts | 2 +- src/options/ConfigOptions.ts | 1 + src/options/config/projectConfig.ts | 2 +- src/utils/packageVersion.ts | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e7e61f66..c5010efa 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "branches", "branching" ], - "version": "7.0.0", + "version": "7.0.1", "main": "./dist/entrypoint.module.js", "types": "dist/entrypoint.module.d.ts", "bin": { @@ -68,6 +68,7 @@ "del": "^6.0.0", "dotenv": "^16.0.0", "find-up": "^5.0.0", + "graphql": "^16.3.0", "graphql-tag": "^2.12.6", "inquirer": "^8.2.0", "lodash": "^4.17.21", @@ -98,7 +99,6 @@ "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.0", "eslint-plugin-prettier": "^4.0.0", - "graphql": "^16.3.0", "graphql-config": "^4.1.0", "husky": "^7.0.4", "jest": "^27.5.1", diff --git a/src/backportRun.ts b/src/backportRun.ts index dd91181e..093339dc 100755 --- a/src/backportRun.ts +++ b/src/backportRun.ts @@ -38,7 +38,7 @@ export async function backportRun( // don't show spinner for yargs commands that exit the process without stopping the spinner first const spinner = ora(); - if (!argv.help && !argv.version) { + if (!argv.help && !argv.version && !argv.v) { spinner.start('Initializing...'); } diff --git a/src/options/ConfigOptions.ts b/src/options/ConfigOptions.ts index 70b492e9..0a9c6e3b 100644 --- a/src/options/ConfigOptions.ts +++ b/src/options/ConfigOptions.ts @@ -69,6 +69,7 @@ export type ConfigFileOptions = Options & // yargs options help: boolean; version: boolean; + v: boolean; // only allowed in project config. Not allowed in CI and denoted in plural (historicalBranchLabelMappings) in options from Github branchLabelMapping: Record; diff --git a/src/options/config/projectConfig.ts b/src/options/config/projectConfig.ts index 985827d4..a1ce90ba 100644 --- a/src/options/config/projectConfig.ts +++ b/src/options/config/projectConfig.ts @@ -1,4 +1,4 @@ -import path from 'path/posix'; +import path from 'path'; import findUp from 'find-up'; import { ConfigFileOptions } from '../ConfigOptions'; import { readConfigFile } from '../config/readConfigFile'; diff --git a/src/utils/packageVersion.ts b/src/utils/packageVersion.ts index 9f27506d..3bbdfd86 100644 --- a/src/utils/packageVersion.ts +++ b/src/utils/packageVersion.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '7.0.0'; +export const PACKAGE_VERSION = '7.0.1';