@storm-software/workspace-tools 1.177.0 → 1.177.2

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.
@@ -0,0 +1,4 @@
1
+ import { DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils";
2
+ import * as rollup from "rollup";
3
+ import { RollupWithNxPluginOptions } from "./normalize-options";
4
+ export declare function withRollupConfig(rawOptions: RollupWithNxPluginOptions, rollupConfig?: rollup.RollupOptions, dependencies?: DependentBuildableProjectNode[]): rollup.RollupOptions;
@@ -0,0 +1,91 @@
1
+ export interface RollupWithNxPluginOptions {
2
+ /**
3
+ * Additional entry-points to add to exports field in the package.json file.
4
+ * */
5
+ additionalEntryPoints?: string[];
6
+ /**
7
+ * Allow JavaScript files to be compiled.
8
+ */
9
+ allowJs?: boolean;
10
+ /**
11
+ * List of static assets.
12
+ */
13
+ assets?: any[];
14
+ /**
15
+ * Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode
16
+ */
17
+ babelUpwardRootMode?: boolean;
18
+ /**
19
+ * Which compiler to use.
20
+ */
21
+ compiler?: "babel" | "tsc" | "swc";
22
+ /**
23
+ * Delete the output path before building. Defaults to true.
24
+ */
25
+ deleteOutputPath?: boolean;
26
+ /**
27
+ * A list of external modules that will not be bundled (`react`, `react-dom`, etc.). Can also be set to `all` (bundle nothing) or `none` (bundle everything).
28
+ */
29
+ external?: string[] | "all" | "none";
30
+ /**
31
+ * CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)
32
+ */
33
+ extractCss?: boolean | string;
34
+ /**
35
+ * List of module formats to output. Defaults to matching format from tsconfig (e.g. CJS for CommonJS, and ESM otherwise).
36
+ */
37
+ format?: ("cjs" | "esm")[];
38
+ /**
39
+ * Update the output package.json file's 'exports' field. This field is used by Node and bundles.
40
+ */
41
+ generateExportsField?: boolean;
42
+ /**
43
+ * Sets `javascriptEnabled` option for less loader
44
+ */
45
+ javascriptEnabled?: boolean;
46
+ /**
47
+ * The path to the entry file, relative to project.
48
+ */
49
+ main: string;
50
+ /**
51
+ * The path to package.json file.
52
+ * @deprecated Do not set this. The package.json file in project root is detected automatically.
53
+ */
54
+ project?: string;
55
+ /**
56
+ * Name of the main output file. Defaults same basename as 'main' file.
57
+ */
58
+ outputFileName?: string;
59
+ /**
60
+ * The output path of the generated files.
61
+ */
62
+ outputPath: string;
63
+ /**
64
+ * Whether to skip TypeScript type checking.
65
+ */
66
+ skipTypeCheck?: boolean;
67
+ /**
68
+ * Prevents 'type' field from being added to compiled package.json file. Use this if you are having an issue with this field.
69
+ */
70
+ skipTypeField?: boolean;
71
+ /**
72
+ * Output sourcemaps.
73
+ */
74
+ sourceMap?: boolean;
75
+ /**
76
+ * The path to tsconfig file.
77
+ */
78
+ tsConfig: string;
79
+ }
80
+ export interface AssetGlobPattern {
81
+ glob: string;
82
+ ignore?: string[];
83
+ input: string;
84
+ output: string;
85
+ }
86
+ export interface NormalizedRollupWithNxPluginOptions extends RollupWithNxPluginOptions {
87
+ assets: AssetGlobPattern[];
88
+ compiler: "babel" | "tsc" | "swc";
89
+ format: ("cjs" | "esm")[];
90
+ }
91
+ export declare function normalizeOptions(projectRoot: string, sourceRoot: string, options: RollupWithNxPluginOptions): NormalizedRollupWithNxPluginOptions;
@@ -69795,6 +69795,7 @@ ${Object.keys(options).map(
69795
69795
  ${formatLogMessage2(result)}`,
69796
69796
  config
69797
69797
  );
69798
+ console.error(result);
69798
69799
  throw new Error(`The ${name} executor failed to run`, {
69799
69800
  cause: result?.error
69800
69801
  });
@@ -68424,6 +68424,7 @@ ${Object.keys(options).map(
68424
68424
  ${formatLogMessage2(result)}`,
68425
68425
  config
68426
68426
  );
68427
+ console.error(result);
68427
68428
  throw new Error(`The ${name} executor failed to run`, {
68428
68429
  cause: result?.error
68429
68430
  });
@@ -68424,6 +68424,7 @@ ${Object.keys(options).map(
68424
68424
  ${formatLogMessage2(result)}`,
68425
68425
  config
68426
68426
  );
68427
+ console.error(result);
68427
68428
  throw new Error(`The ${name} executor failed to run`, {
68428
68429
  cause: result?.error
68429
68430
  });
@@ -68424,6 +68424,7 @@ ${Object.keys(options).map(
68424
68424
  ${formatLogMessage2(result)}`,
68425
68425
  config
68426
68426
  );
68427
+ console.error(result);
68427
68428
  throw new Error(`The ${name} executor failed to run`, {
68428
68429
  cause: result?.error
68429
68430
  });
@@ -68424,6 +68424,7 @@ ${Object.keys(options).map(
68424
68424
  ${formatLogMessage2(result)}`,
68425
68425
  config
68426
68426
  );
68427
+ console.error(result);
68427
68428
  throw new Error(`The ${name} executor failed to run`, {
68428
68429
  cause: result?.error
68429
68430
  });
@@ -301689,6 +301689,7 @@ ${Object.keys(options).map(
301689
301689
  ${formatLogMessage2(result)}`,
301690
301690
  config
301691
301691
  );
301692
+ console.error(result);
301692
301693
  throw new Error(`The ${name} executor failed to run`, {
301693
301694
  cause: result?.error
301694
301695
  });
@@ -68423,6 +68423,7 @@ ${Object.keys(options).map(
68423
68423
  ${formatLogMessage2(result)}`,
68424
68424
  config
68425
68425
  );
68426
+ console.error(result);
68426
68427
  throw new Error(`The ${name} executor failed to run`, {
68427
68428
  cause: result?.error
68428
68429
  });