@code-pushup/nx-plugin 0.79.0 → 0.79.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/nx-plugin",
3
- "version": "0.79.0",
3
+ "version": "0.79.1",
4
4
  "license": "MIT",
5
5
  "description": "Nx plugin to integrate the Code PushUp CLI into your workspace 🛠️",
6
6
  "publishConfig": {
@@ -32,8 +32,8 @@
32
32
  "generators": "./generators.json",
33
33
  "executors": "./executors.json",
34
34
  "dependencies": {
35
- "@code-pushup/models": "0.79.0",
36
- "@code-pushup/utils": "0.79.0",
35
+ "@code-pushup/models": "0.79.1",
36
+ "@code-pushup/utils": "0.79.1",
37
37
  "@nx/devkit": ">=17.0.0",
38
38
  "ansis": "^3.3.0",
39
39
  "nx": ">=17.0.0",
@@ -1,7 +1,11 @@
1
1
  import type { PersistConfig, UploadConfig } from '@code-pushup/models';
2
2
  import type { CollectExecutorOnlyOptions, GeneralExecutorOnlyOptions, GlobalExecutorOptions, ProjectExecutorOnlyOptions } from '../internal/types.js';
3
+ export type PrintConfigOptions = {
4
+ output?: string;
5
+ };
6
+ export type PrintConfigCommandExecutorOptions = PrintConfigOptions;
3
7
  export type AutorunCommandExecutorOnlyOptions = ProjectExecutorOnlyOptions & CollectExecutorOnlyOptions & GeneralExecutorOnlyOptions;
4
8
  export type AutorunCommandExecutorOptions = Partial<{
5
9
  upload: Partial<UploadConfig>;
6
10
  persist: Partial<PersistConfig>;
7
- } & AutorunCommandExecutorOnlyOptions & GlobalExecutorOptions>;
11
+ } & AutorunCommandExecutorOnlyOptions & GlobalExecutorOptions> & PrintConfigOptions;
@@ -44,6 +44,10 @@
44
44
  "type": "string",
45
45
  "description": "Prefix for project name"
46
46
  },
47
+ "output": {
48
+ "type": "string",
49
+ "description": "Config output path of print-config command"
50
+ },
47
51
  "persist": {
48
52
  "type": "object",
49
53
  "properties": {
@@ -1,6 +1,7 @@
1
1
  import type { NormalizedExecutorContext } from '../internal/context.js';
2
- import type { AutorunCommandExecutorOnlyOptions, AutorunCommandExecutorOptions } from './schema.js';
2
+ import type { AutorunCommandExecutorOnlyOptions, AutorunCommandExecutorOptions, PrintConfigCommandExecutorOptions } from './schema.js';
3
3
  export declare function parseAutorunExecutorOnlyOptions(options: Partial<AutorunCommandExecutorOnlyOptions>): AutorunCommandExecutorOnlyOptions;
4
+ export declare function parsePrintConfigExecutorOptions(options: Partial<PrintConfigCommandExecutorOptions>): PrintConfigCommandExecutorOptions;
4
5
  export declare function parseAutorunExecutorOptions(options: Partial<AutorunCommandExecutorOptions>, normalizedContext: NormalizedExecutorContext): AutorunCommandExecutorOptions;
5
6
  /**
6
7
  * Deeply merges executor options.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseAutorunExecutorOnlyOptions = parseAutorunExecutorOnlyOptions;
4
+ exports.parsePrintConfigExecutorOptions = parsePrintConfigExecutorOptions;
4
5
  exports.parseAutorunExecutorOptions = parseAutorunExecutorOptions;
5
6
  exports.mergeExecutorOptions = mergeExecutorOptions;
6
7
  const config_js_1 = require("../internal/config.js");
@@ -12,12 +13,19 @@ function parseAutorunExecutorOnlyOptions(options) {
12
13
  ...(onlyPlugins && { onlyPlugins }),
13
14
  };
14
15
  }
16
+ function parsePrintConfigExecutorOptions(options) {
17
+ const { output } = options;
18
+ return {
19
+ ...(output && { output }),
20
+ };
21
+ }
15
22
  function parseAutorunExecutorOptions(options, normalizedContext) {
16
23
  const { projectPrefix, persist, upload, command } = options;
17
24
  const needsUploadParams = command === 'upload' || command === 'autorun' || command === undefined;
18
25
  const uploadCfg = (0, config_js_1.uploadConfig)({ projectPrefix, ...upload }, normalizedContext);
19
26
  const hasApiToken = uploadCfg?.apiKey != null;
20
27
  return {
28
+ ...parsePrintConfigExecutorOptions(options),
21
29
  ...parseAutorunExecutorOnlyOptions(options),
22
30
  ...(0, config_js_1.globalConfig)(options, normalizedContext),
23
31
  persist: (0, config_js_1.persistConfig)({ projectPrefix, ...persist }, normalizedContext),
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/executors/cli/utils.ts"],"names":[],"mappings":";;AAWA,0EASC;AAED,kEAqBC;AAcD,oDAwBC;AAjFD,qDAI+B;AAO/B,SAAgB,+BAA+B,CAC7C,OAAmD;IAEnD,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IACvD,OAAO;QACL,GAAG,CAAC,aAAa,IAAI,EAAE,aAAa,EAAE,CAAC;QACvC,GAAG,CAAC,MAAM,IAAI,IAAI,IAAI,EAAE,MAAM,EAAE,CAAC;QACjC,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,OAA+C,EAC/C,iBAA4C;IAE5C,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,iBAAiB,GACrB,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,CAAC;IACzE,MAAM,SAAS,GAAG,IAAA,wBAAY,EAC5B,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,EAC5B,iBAAiB,CAClB,CAAC;IACF,MAAM,WAAW,GAAG,SAAS,EAAE,MAAM,IAAI,IAAI,CAAC;IAC9C,OAAO;QACL,GAAG,+BAA+B,CAAC,OAAO,CAAC;QAC3C,GAAG,IAAA,wBAAY,EAAC,OAAO,EAAE,iBAAiB,CAAC;QAC3C,OAAO,EAAE,IAAA,yBAAa,EAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,EAAE,iBAAiB,CAAC;QACxE,mGAAmG;QACnG,qDAAqD;QACrD,6CAA6C;QAC7C,GAAG,CAAC,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