@storm-software/k8s-tools 0.0.1 → 0.1.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 +6 -0
- package/package.json +6 -6
- package/{packages/k8s-tools/src → src}/types.d.ts +1 -1
- package/packages/build-tools/src/build/index.d.ts +0 -3
- package/packages/build-tools/src/build/rolldown.d.ts +0 -20
- package/packages/build-tools/src/build/ts-build.d.ts +0 -20
- package/packages/build-tools/src/build/unbuild.d.ts +0 -20
- package/packages/build-tools/src/cli/index.d.ts +0 -2
- package/packages/build-tools/src/config/browser-config.d.ts +0 -2
- package/packages/build-tools/src/config/default-config.d.ts +0 -2
- package/packages/build-tools/src/config/get-config.d.ts +0 -2
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +0 -6
- package/packages/build-tools/src/config/get-unbuild-config.d.ts +0 -6
- package/packages/build-tools/src/config/index.d.ts +0 -7
- package/packages/build-tools/src/config/neutral-config.d.ts +0 -2
- package/packages/build-tools/src/config/node-config.d.ts +0 -3
- package/packages/build-tools/src/index.d.ts +0 -6
- package/packages/build-tools/src/plugins/analyze-plugin.d.ts +0 -4
- package/packages/build-tools/src/plugins/index.d.ts +0 -4
- package/packages/build-tools/src/plugins/swc-plugin.d.ts +0 -2
- package/packages/build-tools/src/plugins/ts-resolve.d.ts +0 -6
- package/packages/build-tools/src/plugins/type-definitions.d.ts +0 -7
- package/packages/build-tools/src/types.d.ts +0 -213
- package/packages/build-tools/src/utils/apply-default-options.d.ts +0 -6
- package/packages/build-tools/src/utils/generate-package-json.d.ts +0 -7
- package/packages/build-tools/src/utils/get-entry-points.d.ts +0 -3
- package/packages/build-tools/src/utils/get-file-banner.d.ts +0 -8
- package/packages/build-tools/src/utils/get-project-deps.d.ts +0 -5
- package/packages/build-tools/src/utils/index.d.ts +0 -7
- package/packages/build-tools/src/utils/out-extension.d.ts +0 -8
- package/packages/build-tools/src/utils/run-tsup-build.d.ts +0 -3
- package/packages/build-tools/src/utils/task-graph.d.ts +0 -6
- package/packages/config/src/constants.d.ts +0 -3
- package/packages/config/src/define-config.d.ts +0 -174
- package/packages/config/src/index.d.ts +0 -12
- package/packages/config/src/schema.d.ts +0 -1915
- package/packages/config/src/types.d.ts +0 -23
- package/packages/config-tools/src/config-file/get-config-file.d.ts +0 -16
- package/packages/config-tools/src/config-file/index.d.ts +0 -1
- package/packages/config-tools/src/create-storm-config.d.ts +0 -26
- package/packages/config-tools/src/env/get-env.d.ts +0 -15
- package/packages/config-tools/src/env/index.d.ts +0 -2
- package/packages/config-tools/src/env/set-env.d.ts +0 -14
- package/packages/config-tools/src/index.d.ts +0 -13
- package/packages/config-tools/src/types.d.ts +0 -33
- package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +0 -4
- package/packages/config-tools/src/utilities/chalk.d.ts +0 -23
- package/packages/config-tools/src/utilities/correct-paths.d.ts +0 -1
- package/packages/config-tools/src/utilities/file-path-utils.d.ts +0 -2
- package/packages/config-tools/src/utilities/find-up.d.ts +0 -4
- package/packages/config-tools/src/utilities/find-workspace-root.d.ts +0 -14
- package/packages/config-tools/src/utilities/get-default-config.d.ts +0 -15
- package/packages/config-tools/src/utilities/get-log-level.d.ts +0 -15
- package/packages/config-tools/src/utilities/index.d.ts +0 -10
- package/packages/config-tools/src/utilities/logger.d.ts +0 -74
- package/packages/config-tools/src/utilities/process-handler.d.ts +0 -4
- package/packages/config-tools/src/utilities/run.d.ts +0 -18
- package/packages/workspace-tools/index.d.ts +0 -32
- package/packages/workspace-tools/src/base/base-executor.d.ts +0 -7
- package/packages/workspace-tools/src/base/base-generator.d.ts +0 -4
- package/packages/workspace-tools/src/base/index.d.ts +0 -3
- package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +0 -8
- package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +0 -6
- package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +0 -4
- package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/clean-package/types.d.ts +0 -8
- package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +0 -4
- package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +0 -6
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +0 -9
- package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/tsup/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/typia/executor.d.ts +0 -8
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +0 -9
- package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +0 -13
- package/packages/workspace-tools/src/generators/init/init.d.ts +0 -4
- package/packages/workspace-tools/src/generators/node-library/generator.d.ts +0 -5
- package/packages/workspace-tools/src/generators/preset/generator.d.ts +0 -5
- package/packages/workspace-tools/src/generators/release-version/generator.d.ts +0 -13
- package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +0 -8
- package/packages/workspace-tools/src/utils/cargo.d.ts +0 -26
- package/packages/workspace-tools/src/utils/create-cli-options.d.ts +0 -1
- package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +0 -13
- package/packages/workspace-tools/src/utils/index.d.ts +0 -9
- package/packages/workspace-tools/src/utils/lock-file.d.ts +0 -23
- package/packages/workspace-tools/src/utils/project-tags.d.ts +0 -30
- package/packages/workspace-tools/src/utils/toml.d.ts +0 -167
- package/packages/workspace-tools/src/utils/typia-transform.d.ts +0 -2
- package/packages/workspace-tools/src/utils/versions.d.ts +0 -18
- /package/{packages/k8s-tools/index.d.ts → index.d.ts} +0 -0
- /package/{packages/k8s-tools/src → src}/executors/helm-package/executor.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/executors/index.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/generators/helm-chart/generator.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/generators/helm-dependency/generator.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/generators/index.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/index.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/utils/client.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/utils/ensure-init.d.ts +0 -0
- /package/{packages/k8s-tools/src → src}/utils/prettier.d.ts +0 -0
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/k8s-tools",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡ A Nx plugin package that contains various executors, generators, and utilities that assist in managing k8s IoC.",
|
|
6
6
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"monorepo"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@nx/devkit": "^19.
|
|
45
|
-
"nx": "^19.
|
|
44
|
+
"@nx/devkit": "^19.6.2",
|
|
45
|
+
"nx": "^19.6.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@nx/devkit": {
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@actions/exec": "^1.1.1",
|
|
57
|
-
"@nx/devkit": "^19.
|
|
58
|
-
"@nx/workspace": "^19.
|
|
57
|
+
"@nx/devkit": "^19.6.2",
|
|
58
|
+
"@nx/workspace": "^19.6.2",
|
|
59
59
|
"js-yaml": "^4.1.0",
|
|
60
60
|
"tslib": "^2.6.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/js-yaml": "4.0.9",
|
|
64
|
-
"nx": "^19.
|
|
64
|
+
"nx": "^19.6.2"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
import type { RolldownOptions } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
|
|
8
|
-
*
|
|
9
|
-
* @param config - The storm configuration.
|
|
10
|
-
* @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function rolldown(config: StormConfig, options?: Partial<RolldownOptions>): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
15
|
-
*
|
|
16
|
-
* @param config - The storm configuration.
|
|
17
|
-
* @param options - The build options.
|
|
18
|
-
*/
|
|
19
|
-
export declare function rolldownWithOptions(config: StormConfig, options: RolldownOptions): Promise<void>;
|
|
20
|
-
export default rolldown;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
3
|
-
/**
|
|
4
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
|
|
8
|
-
*
|
|
9
|
-
* @param config - The storm configuration.
|
|
10
|
-
* @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function build(config: StormConfig, options?: Partial<TypeScriptBuildOptions>): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
15
|
-
*
|
|
16
|
-
* @param config - The storm configuration.
|
|
17
|
-
* @param options - The build options.
|
|
18
|
-
*/
|
|
19
|
-
export declare function buildWithOptions(config: StormConfig, options: TypeScriptBuildOptions): Promise<void>;
|
|
20
|
-
export default build;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
import type { UnbuildBuildOptions } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
|
|
8
|
-
*
|
|
9
|
-
* @param config - The storm configuration.
|
|
10
|
-
* @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function unbuild(config: StormConfig, options?: Partial<UnbuildBuildOptions>): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Build and bundle a TypeScript project using the tsup build tools.
|
|
15
|
-
*
|
|
16
|
-
* @param config - The storm configuration.
|
|
17
|
-
* @param options - The build options.
|
|
18
|
-
*/
|
|
19
|
-
export declare function unbuildWithOptions(config: StormConfig, options: UnbuildBuildOptions): Promise<void>;
|
|
20
|
-
export default unbuild;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions, GetConfigParams } from "../../declarations";
|
|
2
|
-
export declare const browserConfig: ({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams) => BuildOptions;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions, GetConfigParams } from "../../declarations";
|
|
2
|
-
export declare function defaultConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, format, debug, shims, external, banner, platform, verbose, apiReport, docModel, tsdocMetadata, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams): BuildOptions;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions, GetConfigParams, TsupGetConfigOptions } from "../types";
|
|
2
|
-
export declare const getConfig: (workspaceRoot: string, projectRoot: string, getConfigFn: (options: GetConfigParams) => BuildOptions, { outputPath, tsConfig, platform, ...rest }: TsupGetConfigOptions) => import("tsup").Options;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
|
|
2
|
-
import type { StormConfig } from "@storm-software/config";
|
|
3
|
-
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
4
|
-
import type { RolldownBuildOptions, RolldownOptions } from "../types";
|
|
5
|
-
export declare const DEFAULT_CONFIG: RolldownBuildOptions;
|
|
6
|
-
export declare function getRolldownBuildOptions(config: StormConfig, options: RolldownOptions, dependencies: DependentBuildableProjectNode[], packageJson: PackageJson, npmDeps: string[]): Promise<RolldownBuildOptions[]>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ProjectGraph } from "@nx/devkit";
|
|
2
|
-
import type { StormConfig } from "@storm-software/config";
|
|
3
|
-
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
4
|
-
import { type BuildConfig } from "unbuild";
|
|
5
|
-
import type { UnbuildBuildOptions } from "../types";
|
|
6
|
-
export declare function getUnbuildBuildOptions(config: StormConfig, options: UnbuildBuildOptions, packageJson: PackageJson, projectGraph: ProjectGraph): Promise<BuildConfig[]>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions, GetConfigParams } from "../../declarations";
|
|
2
|
-
export declare const neutralConfig: ({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, metafile, skipNativeModulesPlugin, define, env, apiReport, docModel, tsdocMetadata, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams) => BuildOptions;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions, GetConfigParams } from "../../declarations";
|
|
2
|
-
export declare function nodeConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, apiReport, docModel, tsdocMetadata, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams): BuildOptions;
|
|
3
|
-
export declare function workerConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, external, banner, verbose, apiReport, docModel, tsdocMetadata, shims, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, getTransform }: GetConfigParams): BuildOptions;
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import type Rolldown from "rolldown";
|
|
2
|
-
import type { Plugin } from "rolldown";
|
|
3
|
-
import type { Options } from "tsup";
|
|
4
|
-
import type { Diagnostic, ParsedCommandLine, Program, SourceFile, TransformerFactory } from "typescript";
|
|
5
|
-
import type { BuildOptions as UnbuildOptions, RollupBuildOptions as UnbuildRollupBuildOptions } from "unbuild";
|
|
6
|
-
export interface TsupContext {
|
|
7
|
-
projectRoot: string;
|
|
8
|
-
sourceRoot: string;
|
|
9
|
-
projectName: string;
|
|
10
|
-
main: string;
|
|
11
|
-
}
|
|
12
|
-
export type BuildOptions = Options;
|
|
13
|
-
export type Entry = string | string[] | Record<string, string>;
|
|
14
|
-
export type GetConfigParams = Omit<TsupGetConfigOptions, "entry" | "assets" | "clean" | "outputPath" | "tsConfig" | "main"> & {
|
|
15
|
-
entry: Entry;
|
|
16
|
-
outDir: string;
|
|
17
|
-
projectRoot: string;
|
|
18
|
-
workspaceRoot: string;
|
|
19
|
-
tsconfig: string;
|
|
20
|
-
shims?: boolean;
|
|
21
|
-
apiReport?: boolean;
|
|
22
|
-
docModel?: boolean;
|
|
23
|
-
tsdocMetadata?: boolean;
|
|
24
|
-
dtsTsConfig: ParsedCommandLine;
|
|
25
|
-
getTransform?: (program: Program, diagnostics: Diagnostic[]) => TransformerFactory<SourceFile>;
|
|
26
|
-
};
|
|
27
|
-
export type TsupGetConfigOptions = Omit<TypeScriptBuildOptions, "banner" | "entry"> & {
|
|
28
|
-
banner?: {
|
|
29
|
-
js?: string;
|
|
30
|
-
css?: string;
|
|
31
|
-
};
|
|
32
|
-
dtsTsConfig: ParsedCommandLine;
|
|
33
|
-
entry: Entry;
|
|
34
|
-
};
|
|
35
|
-
export type Platform = "browser" | "node" | "neutral";
|
|
36
|
-
export type FileInputOutput = {
|
|
37
|
-
input: string;
|
|
38
|
-
output: string;
|
|
39
|
-
};
|
|
40
|
-
export type AssetGlob = FileInputOutput & {
|
|
41
|
-
glob: string;
|
|
42
|
-
ignore?: string[];
|
|
43
|
-
dot?: boolean;
|
|
44
|
-
};
|
|
45
|
-
export interface AdditionalCLIOptions {
|
|
46
|
-
projectRoot: string;
|
|
47
|
-
sourceRoot: string;
|
|
48
|
-
projectName: string;
|
|
49
|
-
}
|
|
50
|
-
export interface TypeScriptBuildOptions extends AdditionalCLIOptions {
|
|
51
|
-
additionalEntryPoints?: string[];
|
|
52
|
-
assets: (AssetGlob | string)[];
|
|
53
|
-
bundle?: boolean;
|
|
54
|
-
deleteOutputPath?: boolean;
|
|
55
|
-
esbuildOptions?: Record<string, any>;
|
|
56
|
-
esbuildConfig?: string;
|
|
57
|
-
external?: string[];
|
|
58
|
-
outputFileName?: string;
|
|
59
|
-
outputHashing?: "none" | "all";
|
|
60
|
-
outputPath: string;
|
|
61
|
-
platform?: "node" | "browser" | "neutral" | "worker";
|
|
62
|
-
sourcemap?: boolean | "linked" | "inline" | "external" | "both";
|
|
63
|
-
target?: string;
|
|
64
|
-
tsConfig: string;
|
|
65
|
-
watch?: boolean;
|
|
66
|
-
entry: string;
|
|
67
|
-
options?: Options;
|
|
68
|
-
clean?: boolean;
|
|
69
|
-
debug?: boolean;
|
|
70
|
-
banner?: string;
|
|
71
|
-
verbose?: boolean;
|
|
72
|
-
define?: Record<string, string | undefined | null>;
|
|
73
|
-
env?: Record<string, string | undefined | null>;
|
|
74
|
-
apiReport?: boolean;
|
|
75
|
-
docModel?: boolean;
|
|
76
|
-
tsdocMetadata?: boolean;
|
|
77
|
-
includeSrc?: boolean;
|
|
78
|
-
plugins?: any[];
|
|
79
|
-
shims?: boolean;
|
|
80
|
-
splitting?: boolean;
|
|
81
|
-
treeshake?: boolean;
|
|
82
|
-
generatePackageJson?: boolean;
|
|
83
|
-
emitOnAll?: boolean;
|
|
84
|
-
getConfig: (params: GetConfigParams) => Options;
|
|
85
|
-
format?: string[];
|
|
86
|
-
metafile?: boolean;
|
|
87
|
-
minify?: boolean;
|
|
88
|
-
skipNativeModulesPlugin?: boolean;
|
|
89
|
-
useJsxModule?: boolean;
|
|
90
|
-
}
|
|
91
|
-
export type RolldownFormat = "cjs" | "es";
|
|
92
|
-
export declare const RolldownFormat: {
|
|
93
|
-
COMMONJS: RolldownFormat;
|
|
94
|
-
ES_MODULE: RolldownFormat;
|
|
95
|
-
};
|
|
96
|
-
export type IsExternal = (source: string, importer: string | undefined, isResolved: boolean) => boolean;
|
|
97
|
-
export type RolldownResolveOptions = Omit<BindingResolveOptions, "alias"> & {
|
|
98
|
-
alias?: Record<string, string>;
|
|
99
|
-
};
|
|
100
|
-
export interface BindingResolveOptions {
|
|
101
|
-
alias?: Record<string, string[]>;
|
|
102
|
-
aliasFields?: string[][];
|
|
103
|
-
conditionNames?: string[];
|
|
104
|
-
exportsFields?: string[][];
|
|
105
|
-
extensions?: string[];
|
|
106
|
-
mainFields?: string[];
|
|
107
|
-
mainFiles?: string[];
|
|
108
|
-
modules?: string[];
|
|
109
|
-
symlinks?: boolean;
|
|
110
|
-
tsconfigFilename?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface RenderedModule {
|
|
113
|
-
readonly code: string | null;
|
|
114
|
-
originalLength: number;
|
|
115
|
-
removedExports: string[];
|
|
116
|
-
renderedExports: string[];
|
|
117
|
-
renderedLength: number;
|
|
118
|
-
}
|
|
119
|
-
export interface PreRenderedChunk {
|
|
120
|
-
exports: string[];
|
|
121
|
-
facadeModuleId: string | null;
|
|
122
|
-
isDynamicEntry: boolean;
|
|
123
|
-
isEntry: boolean;
|
|
124
|
-
isImplicitEntry: boolean;
|
|
125
|
-
moduleIds: string[];
|
|
126
|
-
name: string;
|
|
127
|
-
type: "chunk";
|
|
128
|
-
}
|
|
129
|
-
export interface RenderedChunk extends PreRenderedChunk {
|
|
130
|
-
dynamicImports: string[];
|
|
131
|
-
fileName: string;
|
|
132
|
-
implicitlyLoadedBefore: string[];
|
|
133
|
-
importedBindings: {
|
|
134
|
-
[imported: string]: string[];
|
|
135
|
-
};
|
|
136
|
-
imports: string[];
|
|
137
|
-
modules: {
|
|
138
|
-
[id: string]: RenderedModule;
|
|
139
|
-
};
|
|
140
|
-
referencedFiles: string[];
|
|
141
|
-
}
|
|
142
|
-
type InputOption = string | string[] | {
|
|
143
|
-
[entryAlias: string]: string;
|
|
144
|
-
};
|
|
145
|
-
export interface InputOptions {
|
|
146
|
-
input?: InputOption;
|
|
147
|
-
plugins?: Plugin[];
|
|
148
|
-
external?: IsExternal;
|
|
149
|
-
resolve?: RolldownResolveOptions;
|
|
150
|
-
cwd: string;
|
|
151
|
-
platform: Platform;
|
|
152
|
-
treeshake: boolean;
|
|
153
|
-
}
|
|
154
|
-
export interface OutputOptions extends Rolldown.OutputOptions {
|
|
155
|
-
dir?: string;
|
|
156
|
-
format?: "es";
|
|
157
|
-
exports?: "default" | "named" | "none" | "auto";
|
|
158
|
-
sourcemap?: boolean | "inline" | "hidden";
|
|
159
|
-
banner?: string | ((chunk: RenderedChunk) => string | Promise<string>);
|
|
160
|
-
footer?: string | ((chunk: RenderedChunk) => string | Promise<string>);
|
|
161
|
-
}
|
|
162
|
-
export interface RolldownBuildOptions extends InputOptions {
|
|
163
|
-
output?: OutputOptions;
|
|
164
|
-
}
|
|
165
|
-
export type RolldownUserDefinedConfig = string | RolldownBuildOptions | ((config: RolldownBuildOptions) => RolldownBuildOptions | Promise<RolldownBuildOptions>);
|
|
166
|
-
export type RolldownOptions = AdditionalCLIOptions & {
|
|
167
|
-
clean: boolean;
|
|
168
|
-
watch: boolean;
|
|
169
|
-
entry: string;
|
|
170
|
-
additionalEntryPoints?: string[];
|
|
171
|
-
assets: (AssetGlob | string)[];
|
|
172
|
-
generatePackageJson: boolean;
|
|
173
|
-
includeSrc: boolean;
|
|
174
|
-
banner?: OutputOptions["banner"];
|
|
175
|
-
footer?: OutputOptions["footer"];
|
|
176
|
-
outputPath: string;
|
|
177
|
-
skipTypeCheck: boolean;
|
|
178
|
-
verbose: boolean;
|
|
179
|
-
tsConfig: string;
|
|
180
|
-
minify: boolean;
|
|
181
|
-
treeshake: boolean;
|
|
182
|
-
extractCss: boolean;
|
|
183
|
-
sourcemap?: OutputOptions["sourcemap"];
|
|
184
|
-
exports?: OutputOptions["exports"];
|
|
185
|
-
platform: InputOptions["platform"];
|
|
186
|
-
resolve: InputOptions["resolve"];
|
|
187
|
-
external: InputOptions["external"];
|
|
188
|
-
plugins: Plugin[];
|
|
189
|
-
rolldownConfig?: RolldownUserDefinedConfig | RolldownUserDefinedConfig[];
|
|
190
|
-
};
|
|
191
|
-
export type DeepPartial<T> = T extends object ? {
|
|
192
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
193
|
-
} : T;
|
|
194
|
-
export type UnbuildBuildOptions = AdditionalCLIOptions & Omit<UnbuildOptions, "name" | "rootDir" | "entries" | "externals" | "outDir"> & {
|
|
195
|
-
clean: boolean;
|
|
196
|
-
watch: boolean;
|
|
197
|
-
verbose: boolean;
|
|
198
|
-
minify: boolean;
|
|
199
|
-
tsLibs: string[];
|
|
200
|
-
includeSrc: boolean;
|
|
201
|
-
generatePackageJson: boolean;
|
|
202
|
-
tsConfig: string;
|
|
203
|
-
outputPath: string;
|
|
204
|
-
entry?: string;
|
|
205
|
-
additionalEntryPoints?: string[];
|
|
206
|
-
external?: (string | RegExp)[];
|
|
207
|
-
assets: (AssetGlob | string)[];
|
|
208
|
-
banner?: OutputOptions["banner"];
|
|
209
|
-
footer?: OutputOptions["footer"];
|
|
210
|
-
rollupConfig?: DeepPartial<UnbuildRollupBuildOptions> | string;
|
|
211
|
-
configPath?: string;
|
|
212
|
-
};
|
|
213
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
3
|
-
import type { RolldownOptions, UnbuildBuildOptions } from "../types";
|
|
4
|
-
export declare const applyDefaultOptions: (options: Partial<any>, config?: StormConfig) => TypeScriptBuildOptions;
|
|
5
|
-
export declare const applyDefaultRolldownOptions: (options: Partial<RolldownOptions>, config?: StormConfig) => RolldownOptions;
|
|
6
|
-
export declare const applyDefaultUnbuildOptions: (options: Partial<UnbuildBuildOptions>, config?: StormConfig) => UnbuildBuildOptions;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ProjectConfiguration, ProjectGraph } from "@nx/devkit";
|
|
2
|
-
import type { StormConfig } from "@storm-software/config";
|
|
3
|
-
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
4
|
-
export declare const generatePackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: TypeScriptBuildOptions) => Promise<Record<string, any>>;
|
|
5
|
-
export declare const formatPackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: Pick<TypeScriptBuildOptions, "tsConfig" | "external" | "generatePackageJson" | "bundle" | "includeSrc">, packageJson: Record<string, any>, projectGraph: ProjectGraph, projectsConfigurations: Record<string, ProjectConfiguration>) => Promise<Record<string, any>>;
|
|
6
|
-
export declare const addWorkspacePackageJsonFields: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, includeSrc: boolean | undefined, packageJson: Record<string, any>) => Record<string, any>;
|
|
7
|
-
export declare const addPackageJsonExports: (sourceRoot: string, packageJson: Record<string, any>) => Promise<Record<string, any>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get a banner header to display at the top of a file
|
|
3
|
-
*
|
|
4
|
-
* @param name - The name to use in the display
|
|
5
|
-
* @param commentStart - The comment starting token
|
|
6
|
-
* @returns The banner header
|
|
7
|
-
*/
|
|
8
|
-
export declare const getFileBanner: (name: string, commentStart?: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ProjectGraph, ProjectGraphExternalNode, ProjectGraphProjectNode } from "@nx/devkit";
|
|
2
|
-
import type { DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
|
|
3
|
-
export declare function getExtraDependencies(projectName: string, graph: ProjectGraph): DependentBuildableProjectNode[];
|
|
4
|
-
export declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
5
|
-
export declare function getExternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphExternalNode[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { NxJsonConfiguration, TaskGraph, ProjectGraph } from "@nx/devkit";
|
|
2
|
-
export declare function getAllWorkspaceTaskGraphs(nxJson: NxJsonConfiguration, projectGraph: ProjectGraph): {
|
|
3
|
-
taskGraphs: Record<string, TaskGraph>;
|
|
4
|
-
errors: Record<string, string>;
|
|
5
|
-
};
|
|
6
|
-
export declare function createTaskId(projectId: string, targetId: string, configurationId?: string): string;
|