From bb062e1177eed0d56db4cfdc528cfb2a7c0e38a0 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Tue, 3 May 2022 20:07:42 -0700 Subject: [PATCH] Remove non-meaningful or outdated default options --- ...l-4c6ad658-2d31-47ee-b8d7-6159244c9467.json | 7 +++++++ src/options/getDefaultOptions.ts | 18 ++---------------- 2 files changed, 9 insertions(+), 16 deletions(-) create mode 100644 change/beachball-4c6ad658-2d31-47ee-b8d7-6159244c9467.json diff --git a/change/beachball-4c6ad658-2d31-47ee-b8d7-6159244c9467.json b/change/beachball-4c6ad658-2d31-47ee-b8d7-6159244c9467.json new file mode 100644 index 000000000..9b66dfb86 --- /dev/null +++ b/change/beachball-4c6ad658-2d31-47ee-b8d7-6159244c9467.json @@ -0,0 +1,7 @@ +{ + "comment": "Remove non-meaningful or outdated default options", + "type": "patch", + "packageName": "beachball", + "email": "elcraig@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/src/options/getDefaultOptions.ts b/src/options/getDefaultOptions.ts index 213fd7e71..029b4c3eb 100644 --- a/src/options/getDefaultOptions.ts +++ b/src/options/getDefaultOptions.ts @@ -1,34 +1,20 @@ import { BeachballOptions } from '../types/BeachballOptions'; -export function getDefaultOptions() { +export function getDefaultOptions(): Partial { return { - all: false, authType: 'authtoken', - branch: 'origin/master', command: 'change', - message: '', publish: true, bumpDeps: true, push: true, registry: 'https://registry.npmjs.org/', - token: '', gitTags: true, - tag: '', - yes: false, access: 'restricted', - package: '', changehint: 'Run "beachball change" to create a change file', - type: null, fetch: true, - version: false, - disallowedChangeTypes: null, defaultNpmTag: 'latest', - scope: null, retries: 3, - timeout: undefined, bump: true, - canaryName: undefined, generateChangelog: true, - depth: undefined, - } as BeachballOptions; + }; }