@storm-software/workspace-tools 1.177.1 → 1.178.0
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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/index.js +134806 -38733
- package/meta.json +1 -1
- package/package.json +7 -1
- package/src/executors/rollup/executor.js +311362 -3185
- package/src/executors/rollup/utils/get-options.d.ts +4 -0
- package/src/executors/rollup/utils/normalize-options.d.ts +91 -0
|
@@ -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;
|