@storm-software/k8s-tools 0.0.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/LICENSE +201 -0
- package/README.md +7 -0
- package/executors.json +9 -0
- package/generators.json +14 -0
- package/index.js +4109 -0
- package/meta.json +1 -0
- package/package.json +71 -0
- package/packages/build-tools/src/build/index.d.ts +3 -0
- package/packages/build-tools/src/build/rolldown.d.ts +20 -0
- package/packages/build-tools/src/build/ts-build.d.ts +20 -0
- package/packages/build-tools/src/build/unbuild.d.ts +20 -0
- package/packages/build-tools/src/cli/index.d.ts +2 -0
- package/packages/build-tools/src/config/browser-config.d.ts +2 -0
- package/packages/build-tools/src/config/default-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +6 -0
- package/packages/build-tools/src/config/get-unbuild-config.d.ts +6 -0
- package/packages/build-tools/src/config/index.d.ts +7 -0
- package/packages/build-tools/src/config/neutral-config.d.ts +2 -0
- package/packages/build-tools/src/config/node-config.d.ts +3 -0
- package/packages/build-tools/src/index.d.ts +6 -0
- package/packages/build-tools/src/plugins/analyze-plugin.d.ts +4 -0
- package/packages/build-tools/src/plugins/index.d.ts +4 -0
- package/packages/build-tools/src/plugins/swc-plugin.d.ts +2 -0
- package/packages/build-tools/src/plugins/ts-resolve.d.ts +6 -0
- package/packages/build-tools/src/plugins/type-definitions.d.ts +7 -0
- package/packages/build-tools/src/types.d.ts +213 -0
- package/packages/build-tools/src/utils/apply-default-options.d.ts +6 -0
- package/packages/build-tools/src/utils/generate-package-json.d.ts +7 -0
- package/packages/build-tools/src/utils/get-entry-points.d.ts +3 -0
- package/packages/build-tools/src/utils/get-file-banner.d.ts +8 -0
- package/packages/build-tools/src/utils/get-project-deps.d.ts +5 -0
- package/packages/build-tools/src/utils/index.d.ts +7 -0
- package/packages/build-tools/src/utils/out-extension.d.ts +8 -0
- package/packages/build-tools/src/utils/run-tsup-build.d.ts +3 -0
- package/packages/build-tools/src/utils/task-graph.d.ts +6 -0
- package/packages/config/src/constants.d.ts +3 -0
- package/packages/config/src/define-config.d.ts +174 -0
- package/packages/config/src/index.d.ts +12 -0
- package/packages/config/src/schema.d.ts +1915 -0
- package/packages/config/src/types.d.ts +23 -0
- package/packages/config-tools/src/config-file/get-config-file.d.ts +16 -0
- package/packages/config-tools/src/config-file/index.d.ts +1 -0
- package/packages/config-tools/src/create-storm-config.d.ts +26 -0
- package/packages/config-tools/src/env/get-env.d.ts +15 -0
- package/packages/config-tools/src/env/index.d.ts +2 -0
- package/packages/config-tools/src/env/set-env.d.ts +14 -0
- package/packages/config-tools/src/index.d.ts +13 -0
- package/packages/config-tools/src/types.d.ts +33 -0
- package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +4 -0
- package/packages/config-tools/src/utilities/chalk.d.ts +23 -0
- package/packages/config-tools/src/utilities/correct-paths.d.ts +1 -0
- package/packages/config-tools/src/utilities/file-path-utils.d.ts +2 -0
- package/packages/config-tools/src/utilities/find-up.d.ts +4 -0
- package/packages/config-tools/src/utilities/find-workspace-root.d.ts +14 -0
- package/packages/config-tools/src/utilities/get-default-config.d.ts +15 -0
- package/packages/config-tools/src/utilities/get-log-level.d.ts +15 -0
- package/packages/config-tools/src/utilities/index.d.ts +10 -0
- package/packages/config-tools/src/utilities/logger.d.ts +74 -0
- package/packages/config-tools/src/utilities/process-handler.d.ts +4 -0
- package/packages/config-tools/src/utilities/run.d.ts +18 -0
- package/packages/k8s-tools/index.d.ts +1 -0
- package/packages/k8s-tools/src/executors/helm-package/executor.d.ts +8 -0
- package/packages/k8s-tools/src/executors/index.d.ts +1 -0
- package/packages/k8s-tools/src/generators/helm-chart/generator.d.ts +5 -0
- package/packages/k8s-tools/src/generators/helm-dependency/generator.d.ts +5 -0
- package/packages/k8s-tools/src/generators/index.d.ts +2 -0
- package/packages/k8s-tools/src/index.d.ts +2 -0
- package/packages/k8s-tools/src/types.d.ts +28 -0
- package/packages/k8s-tools/src/utils/client.d.ts +26 -0
- package/packages/k8s-tools/src/utils/ensure-init.d.ts +9 -0
- package/packages/k8s-tools/src/utils/prettier.d.ts +9 -0
- package/packages/workspace-tools/index.d.ts +32 -0
- package/packages/workspace-tools/src/base/base-executor.d.ts +7 -0
- package/packages/workspace-tools/src/base/base-generator.d.ts +4 -0
- package/packages/workspace-tools/src/base/index.d.ts +3 -0
- package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +8 -0
- package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +4 -0
- package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/types.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +4 -0
- package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +9 -0
- package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/typia/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +9 -0
- package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +13 -0
- package/packages/workspace-tools/src/generators/init/init.d.ts +4 -0
- package/packages/workspace-tools/src/generators/node-library/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/preset/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/release-version/generator.d.ts +13 -0
- package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +8 -0
- package/packages/workspace-tools/src/utils/cargo.d.ts +26 -0
- package/packages/workspace-tools/src/utils/create-cli-options.d.ts +1 -0
- package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +13 -0
- package/packages/workspace-tools/src/utils/index.d.ts +9 -0
- package/packages/workspace-tools/src/utils/lock-file.d.ts +23 -0
- package/packages/workspace-tools/src/utils/project-tags.d.ts +30 -0
- package/packages/workspace-tools/src/utils/toml.d.ts +167 -0
- package/packages/workspace-tools/src/utils/typia-transform.d.ts +2 -0
- package/packages/workspace-tools/src/utils/versions.d.ts +18 -0
- package/src/executors/helm-package/executor.js +1244 -0
- package/src/executors/helm-package/schema.d.ts +29 -0
- package/src/executors/helm-package/schema.json +112 -0
- package/src/generators/helm-chart/files/chart/.helmignore +23 -0
- package/src/generators/helm-chart/files/chart/Chart.yaml.template +6 -0
- package/src/generators/helm-chart/files/chart/templates/NOTES.txt +22 -0
- package/src/generators/helm-chart/files/chart/templates/_helpers.yaml +62 -0
- package/src/generators/helm-chart/files/chart/templates/deployment.yaml +68 -0
- package/src/generators/helm-chart/files/chart/templates/hpa.yaml +32 -0
- package/src/generators/helm-chart/files/chart/templates/ingress.yaml +61 -0
- package/src/generators/helm-chart/files/chart/templates/service.yaml +13 -0
- package/src/generators/helm-chart/files/chart/templates/serviceaccount.yaml +13 -0
- package/src/generators/helm-chart/files/chart/templates/test/test-connection.yaml +15 -0
- package/src/generators/helm-chart/files/chart/values.yaml +111 -0
- package/src/generators/helm-chart/generator.js +131 -0
- package/src/generators/helm-chart/schema.d.ts +11 -0
- package/src/generators/helm-chart/schema.json +48 -0
- package/src/generators/helm-dependency/generator.js +2805 -0
- package/src/generators/helm-dependency/schema.d.ts +15 -0
- package/src/generators/helm-dependency/schema.json +71 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TsupBrowserExecutorSchema } from "./schema.d";
|
|
4
|
+
export declare const tsupBrowserBuildExecutorFn: (options: TsupBrowserExecutorSchema, context: ExecutorContext, config: StormConfig) => Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<TsupBrowserExecutorSchema>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TsupNeutralExecutorSchema } from "./schema";
|
|
4
|
+
export declare const tsupNeutralBuildExecutorFn: (options: TsupNeutralExecutorSchema, context: ExecutorContext, config: StormConfig) => Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<TsupNeutralExecutorSchema>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TsupNodeExecutorSchema } from "./schema";
|
|
4
|
+
export declare const tsupNodeBuildExecutorFn: (options: TsupNodeExecutorSchema, context: ExecutorContext, config: StormConfig) => Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<TsupNodeExecutorSchema>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TypiaExecutorSchema } from "./schema";
|
|
4
|
+
export declare function typiaExecutorFn(options: TypiaExecutorSchema, _: ExecutorContext, config: StormConfig): Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<TypiaExecutorSchema>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import type { UnbuildBuildOptions } from "@storm-software/build-tools";
|
|
3
|
+
import type { StormConfig } from "@storm-software/config";
|
|
4
|
+
import type { UnbuildExecutorSchema } from "./schema.d";
|
|
5
|
+
export declare function unbuildExecutorFn(options: UnbuildExecutorSchema, context: ExecutorContext, config: StormConfig): Promise<{
|
|
6
|
+
success: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<UnbuildBuildOptions>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import { type StormConfig } from "@storm-software/config";
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
import type { ConfigSchemaGeneratorSchema } from "./schema";
|
|
5
|
+
export type ModuleSchema = {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: z.ZodObject<any>;
|
|
8
|
+
};
|
|
9
|
+
export declare function configSchemaGeneratorFn(tree: Tree, options: ConfigSchemaGeneratorSchema, config?: StormConfig): Promise<{
|
|
10
|
+
success: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
declare const _default: (tree: Tree, _options: ConfigSchemaGeneratorSchema) => Promise<import("@nx/devkit").GeneratorCallback | import("../../../declarations").BaseGeneratorResult>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import type { NodeLibraryGeneratorSchema } from "./schema";
|
|
3
|
+
export declare function nodeLibraryGeneratorFn(tree: Tree, schema: NodeLibraryGeneratorSchema): Promise<null>;
|
|
4
|
+
declare const _default: (tree: Tree, _options: NodeLibraryGeneratorSchema) => Promise<import("@nx/devkit").GeneratorCallback | import("../../../declarations.d").BaseGeneratorResult>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Tree } from "@nx/devkit";
|
|
2
|
+
import type { PresetGeneratorSchema } from "./schema";
|
|
3
|
+
export declare function presetGeneratorFn(tree: Tree, options: PresetGeneratorSchema): Promise<null>;
|
|
4
|
+
declare const _default: (tree: Tree, _options: PresetGeneratorSchema) => Promise<import("@nx/devkit").GeneratorCallback | import("../../../declarations").BaseGeneratorResult>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NxReleaseConfig } from "nx/src/command-line/release/config/config";
|
|
2
|
+
import { type VersionData } from "nx/src/command-line/release/version";
|
|
3
|
+
import { type Tree } from "@nx/devkit";
|
|
4
|
+
import type { StormConfig } from "@storm-software/config";
|
|
5
|
+
import type { ReleaseVersionGeneratorSchema } from "./schema";
|
|
6
|
+
export declare function releaseVersionGeneratorFn(tree: Tree, options: ReleaseVersionGeneratorSchema, config?: StormConfig): Promise<{
|
|
7
|
+
data: VersionData;
|
|
8
|
+
callback: (tree: any, opts: any) => Promise<string[]>;
|
|
9
|
+
success: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
declare const _default: (tree: Tree, _options: ReleaseVersionGeneratorSchema) => Promise<import("@nx/devkit").GeneratorCallback | import("../../../declarations").BaseGeneratorResult>;
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const DEFAULT_CONVENTIONAL_COMMITS_CONFIG: NxReleaseConfig["conventionalCommits"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProjectConfiguration } from "@nx/devkit";
|
|
2
|
+
import type { BaseTokenizerOptions } from "@storm-software/config-tools";
|
|
3
|
+
export type ExecutorTokenizerOptions = BaseTokenizerOptions & ProjectConfiguration & {
|
|
4
|
+
projectName: string;
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
sourceRoot: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const applyWorkspaceExecutorTokens: (option: string, tokenizerOptions: ExecutorTokenizerOptions) => Promise<string>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ChildProcess, type StdioOptions } from "node:child_process";
|
|
2
|
+
import type { CargoMetadata, Dependency, Package } from "./toml";
|
|
3
|
+
interface CargoRun {
|
|
4
|
+
success: boolean;
|
|
5
|
+
output: string;
|
|
6
|
+
}
|
|
7
|
+
interface RunCargoOptions {
|
|
8
|
+
stdio: StdioOptions;
|
|
9
|
+
env: NodeJS.ProcessEnv | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare let childProcess: ChildProcess | null;
|
|
12
|
+
export declare function cargoCommand(...args: string[]): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function cargoRunCommand(...args: string[]): Promise<{
|
|
16
|
+
success: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function cargoCommandSync(args?: string, options?: Partial<RunCargoOptions>): CargoRun;
|
|
19
|
+
export declare function cargoMetadata(): CargoMetadata | null;
|
|
20
|
+
export declare function isExternal(packageOrDep: Package | Dependency, workspaceRoot: string): any;
|
|
21
|
+
export declare function runProcess(processCmd: string, ...args: string[]): {
|
|
22
|
+
success: boolean;
|
|
23
|
+
} | PromiseLike<{
|
|
24
|
+
success: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createCliOptions<T extends Record<string, string | number | boolean | string[]>>(obj: T): string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProjectConfiguration } from "@nx/devkit";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the project configurations from the workspace.
|
|
4
|
+
*
|
|
5
|
+
* @returns The project configurations.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getProjectConfigurations: <TConfig extends ProjectConfiguration = ProjectConfiguration>() => Promise<Record<string, TConfig>>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the project configurations from the workspace.
|
|
10
|
+
*
|
|
11
|
+
* @returns The project configurations.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getProjectConfiguration: <TConfig extends ProjectConfiguration = ProjectConfiguration>(projectName: string) => TConfig | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./apply-workspace-tokens";
|
|
2
|
+
export * from "./get-project-configurations";
|
|
3
|
+
export * from "./typia-transform";
|
|
4
|
+
export * from "./versions";
|
|
5
|
+
export * from "./toml";
|
|
6
|
+
export * from "./cargo";
|
|
7
|
+
export * from "./lock-file";
|
|
8
|
+
export * from "./create-cli-options";
|
|
9
|
+
export * from "./project-tags";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type RawProjectGraphDependency, type CreateDependenciesContext, type CreateNodesContext, type PackageManager, type ProjectGraphExternalNode } from "nx/src/devkit-exports";
|
|
2
|
+
export declare const YARN_LOCK_FILE = "yarn.lock";
|
|
3
|
+
export declare const NPM_LOCK_FILE = "package-lock.json";
|
|
4
|
+
export declare const PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
5
|
+
export declare const LOCK_FILES: string[];
|
|
6
|
+
export declare const YARN_LOCK_PATH: string;
|
|
7
|
+
export declare const NPM_LOCK_PATH: string;
|
|
8
|
+
export declare const PNPM_LOCK_PATH: string;
|
|
9
|
+
/**
|
|
10
|
+
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
11
|
+
*/
|
|
12
|
+
export declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context: CreateNodesContext): Record<string, ProjectGraphExternalNode>;
|
|
13
|
+
/**
|
|
14
|
+
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
|
15
|
+
*/
|
|
16
|
+
export declare function getLockFileDependencies(packageManager: PackageManager, contents: string, lockFileHash: string, context: CreateDependenciesContext): RawProjectGraphDependency[];
|
|
17
|
+
export declare function lockFileExists(packageManager: PackageManager): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Returns lock file name based on the detected package manager in the root
|
|
20
|
+
* @param packageManager
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare function getLockFileName(packageManager: PackageManager): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ProjectConfiguration } from "@nx/devkit";
|
|
2
|
+
import { ProjectTagDistStyleValue, ProjectTagLanguageValue, ProjectTagTypeValue, ProjectTagVariant } from "../../declarations.d";
|
|
3
|
+
export declare const ProjectTagConstants: {
|
|
4
|
+
readonly Language: {
|
|
5
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
6
|
+
readonly TYPESCRIPT: ProjectTagLanguageValue;
|
|
7
|
+
readonly RUST: ProjectTagLanguageValue;
|
|
8
|
+
};
|
|
9
|
+
readonly ProjectType: {
|
|
10
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
11
|
+
readonly LIBRARY: ProjectTagTypeValue;
|
|
12
|
+
readonly APPLICATION: ProjectTagTypeValue;
|
|
13
|
+
};
|
|
14
|
+
readonly DistStyle: {
|
|
15
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
16
|
+
readonly NORMAL: ProjectTagDistStyleValue;
|
|
17
|
+
readonly CLEAN: ProjectTagDistStyleValue;
|
|
18
|
+
};
|
|
19
|
+
readonly Provider: {
|
|
20
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const formatProjectTag: (variant: ProjectTagVariant, value: string) => string;
|
|
24
|
+
export declare const hasProjectTag: (project: ProjectConfiguration, variant: ProjectTagVariant) => boolean;
|
|
25
|
+
export declare const getProjectTag: (project: ProjectConfiguration, variant: ProjectTagVariant) => string | undefined;
|
|
26
|
+
export declare const isEqualProjectTag: (project: ProjectConfiguration, variant: ProjectTagVariant, value: string) => boolean;
|
|
27
|
+
export declare const addProjectTag: (project: ProjectConfiguration, variant: ProjectTagVariant, value: string, options?: {
|
|
28
|
+
overwrite?: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
export declare const setDefaultProjectTags: (project: ProjectConfiguration) => void;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { type Tree } from "@nx/devkit";
|
|
2
|
+
export interface CargoToml {
|
|
3
|
+
workspace?: {
|
|
4
|
+
members: string[];
|
|
5
|
+
};
|
|
6
|
+
package: any;
|
|
7
|
+
dependencies?: Record<string, string | {
|
|
8
|
+
version: string;
|
|
9
|
+
features?: string[];
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
"dev-dependencies"?: Record<string, string | {
|
|
13
|
+
version: string;
|
|
14
|
+
features: string[];
|
|
15
|
+
}>;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
export interface CargoMetadata {
|
|
19
|
+
packages: Package[];
|
|
20
|
+
workspace_members: string[];
|
|
21
|
+
resolve: Resolve;
|
|
22
|
+
target_directory: string;
|
|
23
|
+
version: number;
|
|
24
|
+
workspace_root: string;
|
|
25
|
+
metadata: Metadata2;
|
|
26
|
+
}
|
|
27
|
+
export interface Package {
|
|
28
|
+
name: string;
|
|
29
|
+
version: string;
|
|
30
|
+
id: string;
|
|
31
|
+
license: string;
|
|
32
|
+
license_file: string;
|
|
33
|
+
description: string;
|
|
34
|
+
source: any;
|
|
35
|
+
dependencies: Dependency[];
|
|
36
|
+
targets: Target[];
|
|
37
|
+
features: Features;
|
|
38
|
+
manifest_path: string;
|
|
39
|
+
metadata: Metadata;
|
|
40
|
+
/**
|
|
41
|
+
* From the docs:
|
|
42
|
+
* "List of registries to which this package may be published.
|
|
43
|
+
* Publishing is unrestricted if null, and forbidden if an empty array."
|
|
44
|
+
*
|
|
45
|
+
* Additional observation:
|
|
46
|
+
* false can be used by the end user but it will be converted to an empty
|
|
47
|
+
* array in the cargo metadata output.
|
|
48
|
+
*/
|
|
49
|
+
publish: string[] | null;
|
|
50
|
+
authors: string[];
|
|
51
|
+
categories: string[];
|
|
52
|
+
default_run: any;
|
|
53
|
+
rust_version: string;
|
|
54
|
+
keywords: string[];
|
|
55
|
+
readme: string;
|
|
56
|
+
repository: string;
|
|
57
|
+
homepage: string;
|
|
58
|
+
documentation: string;
|
|
59
|
+
edition: string;
|
|
60
|
+
links: any;
|
|
61
|
+
}
|
|
62
|
+
export interface Dependency {
|
|
63
|
+
name: string;
|
|
64
|
+
source: string;
|
|
65
|
+
req: string;
|
|
66
|
+
kind: any;
|
|
67
|
+
rename: any;
|
|
68
|
+
optional: boolean;
|
|
69
|
+
uses_default_features: boolean;
|
|
70
|
+
features: any[];
|
|
71
|
+
target: string;
|
|
72
|
+
path: string;
|
|
73
|
+
registry: any;
|
|
74
|
+
}
|
|
75
|
+
export interface Target {
|
|
76
|
+
kind: string[];
|
|
77
|
+
crate_types: string[];
|
|
78
|
+
name: string;
|
|
79
|
+
src_path: string;
|
|
80
|
+
edition: string;
|
|
81
|
+
"required-features": string[];
|
|
82
|
+
doc: boolean;
|
|
83
|
+
doctest: boolean;
|
|
84
|
+
test: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface Features {
|
|
87
|
+
default: string[];
|
|
88
|
+
feat1: any[];
|
|
89
|
+
feat2: any[];
|
|
90
|
+
}
|
|
91
|
+
export interface Metadata {
|
|
92
|
+
docs: Docs;
|
|
93
|
+
}
|
|
94
|
+
export interface Docs {
|
|
95
|
+
rs: Rs;
|
|
96
|
+
}
|
|
97
|
+
export interface Rs {
|
|
98
|
+
"all-features": boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface Resolve {
|
|
101
|
+
nodes: Node[];
|
|
102
|
+
root: string;
|
|
103
|
+
}
|
|
104
|
+
export interface Node {
|
|
105
|
+
id: string;
|
|
106
|
+
dependencies: string[];
|
|
107
|
+
deps: Dep[];
|
|
108
|
+
features: string[];
|
|
109
|
+
}
|
|
110
|
+
export interface Dep {
|
|
111
|
+
name: string;
|
|
112
|
+
pkg: string;
|
|
113
|
+
dep_kinds: DepKind[];
|
|
114
|
+
}
|
|
115
|
+
export interface DepKind {
|
|
116
|
+
kind: any;
|
|
117
|
+
target: string;
|
|
118
|
+
}
|
|
119
|
+
export interface Metadata2 {
|
|
120
|
+
docs: Docs2;
|
|
121
|
+
}
|
|
122
|
+
export interface Docs2 {
|
|
123
|
+
rs: Rs2;
|
|
124
|
+
}
|
|
125
|
+
export interface Rs2 {
|
|
126
|
+
"all-features": boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface Package {
|
|
129
|
+
name: string;
|
|
130
|
+
version: string;
|
|
131
|
+
id: string;
|
|
132
|
+
license: string;
|
|
133
|
+
license_file: string;
|
|
134
|
+
description: string;
|
|
135
|
+
source: any;
|
|
136
|
+
dependencies: Dependency[];
|
|
137
|
+
targets: Target[];
|
|
138
|
+
features: Features;
|
|
139
|
+
manifest_path: string;
|
|
140
|
+
metadata: Metadata;
|
|
141
|
+
/**
|
|
142
|
+
* From the docs:
|
|
143
|
+
* "List of registries to which this package may be published.
|
|
144
|
+
* Publishing is unrestricted if null, and forbidden if an empty array."
|
|
145
|
+
*
|
|
146
|
+
* Additional observation:
|
|
147
|
+
* false can be used by the end user but it will be converted to an empty
|
|
148
|
+
* array in the cargo metadata output.
|
|
149
|
+
*/
|
|
150
|
+
publish: string[] | null;
|
|
151
|
+
authors: string[];
|
|
152
|
+
categories: string[];
|
|
153
|
+
default_run: any;
|
|
154
|
+
rust_version: string;
|
|
155
|
+
keywords: string[];
|
|
156
|
+
readme: string;
|
|
157
|
+
repository: string;
|
|
158
|
+
homepage: string;
|
|
159
|
+
documentation: string;
|
|
160
|
+
edition: string;
|
|
161
|
+
links: any;
|
|
162
|
+
}
|
|
163
|
+
export declare function parseCargoTomlWithTree(tree: Tree, projectRoot: string, projectName: string): CargoToml;
|
|
164
|
+
export declare function parseCargoToml(cargoString?: string): CargoToml;
|
|
165
|
+
export declare function stringifyCargoToml(cargoToml: CargoToml): string;
|
|
166
|
+
export declare function modifyCargoTable(toml: CargoToml, section: string, key: string, value: string | object | any[] | (() => any)): void;
|
|
167
|
+
export declare function modifyCargoNestedTable(toml: CargoToml, section: string, key: string, value: object): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const tsupVersion = "^7.2.0";
|
|
2
|
+
export declare const prettierPackageJsonVersion = "2.4.6";
|
|
3
|
+
export declare const prettierPrismaVersion = "5.0.0";
|
|
4
|
+
export declare const prettierVersion = "^3.0.3";
|
|
5
|
+
export declare const swcCliVersion = "~0.1.62";
|
|
6
|
+
export declare const swcCoreVersion = "~1.3.95";
|
|
7
|
+
export declare const swcHelpersVersion = "~0.5.3";
|
|
8
|
+
export declare const swcNodeVersion = "1.6.8";
|
|
9
|
+
export declare const tsLibVersion = "2.6.2";
|
|
10
|
+
export declare const typesNodeVersion = "20.9.0";
|
|
11
|
+
export declare const verdaccioVersion = "5.27.0";
|
|
12
|
+
export declare const typescriptVersion = "~5.2.2";
|
|
13
|
+
export declare const eslintVersion = "~8.53.0";
|
|
14
|
+
export declare const lintStagedVersion = "15.0.2";
|
|
15
|
+
export declare const semanticReleaseVersion = "22.0.7";
|
|
16
|
+
export declare const nxVersion = "^18.0.4";
|
|
17
|
+
export declare const nodeVersion = "20.11.0";
|
|
18
|
+
export declare const pnpmVersion = "8.10.2";
|