@wyxos/zephyr 0.5.0 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,8 @@ function hasExplicitReleaseOptions(options = {}) {
8
8
  'releaseType',
9
9
  'skipGitHooks',
10
10
  'skipTests',
11
- 'skipLint'
11
+ 'skipLint',
12
+ 'skipVersioning'
12
13
  ].some((key) => key in options)
13
14
  }
14
15
 
@@ -18,11 +19,16 @@ export async function releasePackagist(options = {}) {
18
19
  releaseType: 'releaseType' in options ? (options.releaseType ?? null) : null,
19
20
  skipGitHooks: options.skipGitHooks === true,
20
21
  skipTests: options.skipTests === true,
21
- skipLint: options.skipLint === true
22
+ skipLint: options.skipLint === true,
23
+ skipVersioning: options.skipVersioning === true
22
24
  }
23
25
  : parseReleaseArgs({
24
- booleanFlags: ['--skip-git-hooks', '--skip-tests', '--skip-lint']
26
+ booleanFlags: ['--skip-git-hooks', '--skip-tests', '--skip-lint', '--skip-versioning']
25
27
  })
28
+
29
+ if (parsed.skipVersioning && parsed.releaseType) {
30
+ throw new Error('--skip-versioning cannot be used together with an explicit version or bump argument.')
31
+ }
26
32
  const rootDir = options.rootDir ?? process.cwd()
27
33
  const context = options.context ?? createAppContext({
28
34
  executionMode: {
@@ -38,6 +44,7 @@ export async function releasePackagist(options = {}) {
38
44
  skipGitHooks: parsed.skipGitHooks === true || executionMode?.skipGitHooks === true,
39
45
  skipTests: parsed.skipTests === true,
40
46
  skipLint: parsed.skipLint === true,
47
+ skipVersioning: parsed.skipVersioning === true,
41
48
  rootDir,
42
49
  logStep,
43
50
  logSuccess,
@@ -24,9 +24,21 @@ export function createAppContext({
24
24
  workflow: executionMode.workflow ?? 'deploy',
25
25
  presetName: executionMode.presetName ?? null,
26
26
  maintenanceMode: executionMode.maintenanceMode ?? null,
27
+ autoCommit: executionMode.autoCommit === true,
28
+ skipVersioning: executionMode.skipVersioning === true,
27
29
  skipGitHooks: executionMode.skipGitHooks === true,
30
+ skipChecks: executionMode.skipChecks === true,
31
+ skipTests: executionMode.skipTests === true || executionMode.skipChecks === true,
32
+ skipLint: executionMode.skipLint === true || executionMode.skipChecks === true,
28
33
  resumePending: executionMode.resumePending === true,
29
- discardPending: executionMode.discardPending === true
34
+ discardPending: executionMode.discardPending === true,
35
+ explicitMaintenanceMode: executionMode.explicitMaintenanceMode === true,
36
+ explicitAutoCommit: executionMode.explicitAutoCommit === true,
37
+ explicitSkipVersioning: executionMode.explicitSkipVersioning === true,
38
+ explicitSkipGitHooks: executionMode.explicitSkipGitHooks === true,
39
+ explicitSkipChecks: executionMode.explicitSkipChecks === true,
40
+ explicitSkipTests: executionMode.explicitSkipTests === true || executionMode.explicitSkipChecks === true,
41
+ explicitSkipLint: executionMode.explicitSkipLint === true || executionMode.explicitSkipChecks === true
30
42
  }
31
43
  const emitEvent = normalizedExecutionMode.json
32
44
  ? createJsonEventEmitter({workflow: normalizedExecutionMode.workflow})