@storm-software/workspace-tools 1.269.0 → 1.270.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 +52 -0
- package/README.md +2 -1
- package/dist/chunk-A7JGVU4P.js +468 -0
- package/dist/chunk-SRN4D7WO.mjs +468 -0
- package/dist/executors.js +2 -2
- package/dist/executors.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/docs/executors/rollup.md +88 -0
- package/executors.ts +23 -0
- package/generators.ts +14 -0
- package/index.ts +5 -0
- package/package.json +4 -4
- package/project.json +58 -0
- package/src/base/base-executor.ts +200 -0
- package/src/base/base-executor.untyped.ts +18 -0
- package/src/base/base-generator.ts +130 -0
- package/src/base/base-generator.untyped.ts +16 -0
- package/src/base/cargo-base-executor.untyped.ts +73 -0
- package/src/base/index.ts +8 -0
- package/src/base/typescript-build-executor.untyped.ts +153 -0
- package/src/base/typescript-library-generator.ts +415 -0
- package/src/base/typescript-library-generator.untyped.ts +106 -0
- package/src/executors/cargo-build/executor.spec.ts +18 -0
- package/src/executors/cargo-build/executor.ts +28 -0
- package/src/executors/cargo-build/untyped.ts +18 -0
- package/src/executors/cargo-check/executor.spec.ts +18 -0
- package/src/executors/cargo-check/executor.ts +27 -0
- package/src/executors/cargo-check/untyped.ts +11 -0
- package/src/executors/cargo-clippy/executor.spec.ts +18 -0
- package/src/executors/cargo-clippy/executor.ts +28 -0
- package/src/executors/cargo-clippy/untyped.ts +18 -0
- package/src/executors/cargo-doc/executor.spec.ts +18 -0
- package/src/executors/cargo-doc/executor.ts +39 -0
- package/src/executors/cargo-doc/untyped.ts +44 -0
- package/src/executors/cargo-format/executor.spec.ts +18 -0
- package/src/executors/cargo-format/executor.ts +28 -0
- package/src/executors/cargo-format/untyped.ts +11 -0
- package/src/executors/cargo-publish/executor.spec.ts +11 -0
- package/src/executors/cargo-publish/executor.ts +139 -0
- package/src/executors/cargo-publish/untyped.ts +33 -0
- package/src/executors/clean-package/constants.ts +99 -0
- package/src/executors/clean-package/executor.spec.ts +18 -0
- package/src/executors/clean-package/executor.ts +214 -0
- package/src/executors/clean-package/types.ts +6 -0
- package/src/executors/clean-package/untyped.ts +60 -0
- package/src/executors/clean-package/utils.ts +85 -0
- package/src/executors/esbuild/executor.spec.ts +11 -0
- package/src/executors/esbuild/executor.ts +67 -0
- package/src/executors/esbuild/untyped.ts +20 -0
- package/src/executors/npm-publish/executor.spec.ts +11 -0
- package/src/executors/npm-publish/executor.ts +681 -0
- package/src/executors/npm-publish/untyped.ts +56 -0
- package/src/executors/size-limit/executor.spec.ts +18 -0
- package/src/executors/size-limit/executor.ts +88 -0
- package/src/executors/size-limit/untyped.ts +22 -0
- package/src/executors/typia/executor.ts +54 -0
- package/src/executors/typia/untyped.ts +48 -0
- package/src/executors/unbuild/executor.spec.ts +11 -0
- package/src/executors/unbuild/executor.ts +136 -0
- package/src/executors/unbuild/untyped.ts +152 -0
- package/src/generators/browser-library/generator.spec.ts +20 -0
- package/src/generators/browser-library/generator.ts +109 -0
- package/src/generators/browser-library/untyped.ts +29 -0
- package/src/generators/config-schema/generator.spec.ts +20 -0
- package/src/generators/config-schema/generator.ts +90 -0
- package/src/generators/config-schema/untyped.ts +19 -0
- package/src/generators/init/init.ts +32 -0
- package/src/generators/init/untyped.ts +16 -0
- package/src/generators/neutral-library/generator.spec.ts +20 -0
- package/src/generators/neutral-library/generator.ts +81 -0
- package/src/generators/neutral-library/untyped.ts +29 -0
- package/src/generators/node-library/generator.spec.ts +20 -0
- package/src/generators/node-library/generator.ts +84 -0
- package/src/generators/node-library/untyped.ts +29 -0
- package/src/generators/preset/files/.all-contributorsrc.template +48 -0
- package/src/generators/preset/files/.editorconfig +454 -0
- package/src/generators/preset/files/.env.template +38 -0
- package/src/generators/preset/files/.gitattributes +52 -0
- package/src/generators/preset/files/.github/.nvmrc +1 -0
- package/src/generators/preset/files/.github/CODEOWNERS +3 -0
- package/src/generators/preset/files/.github/CODE_OF_CONDUCT.md +125 -0
- package/src/generators/preset/files/.github/CONTRIBUTING.md.template +15 -0
- package/src/generators/preset/files/.github/FUNDING.yml +3 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +102 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +56 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +60 -0
- package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +39 -0
- package/src/generators/preset/files/.github/SECURITY.md +9 -0
- package/src/generators/preset/files/.github/codecov.yml +29 -0
- package/src/generators/preset/files/.github/dependabot.yml +64 -0
- package/src/generators/preset/files/.github/labels.yml +84 -0
- package/src/generators/preset/files/.github/renovate.json +4 -0
- package/src/generators/preset/files/.github/renovate.json.template +63 -0
- package/src/generators/preset/files/.github/stale.yml +55 -0
- package/src/generators/preset/files/.github/workflows/build-release.yml.template +25 -0
- package/src/generators/preset/files/.github/workflows/code-review.yml +18 -0
- package/src/generators/preset/files/.github/workflows/codeql.yml +84 -0
- package/src/generators/preset/files/.github/workflows/dependabot-update.yml +32 -0
- package/src/generators/preset/files/.github/workflows/git-guardian.yml +23 -0
- package/src/generators/preset/files/.github/workflows/greetings.yml +31 -0
- package/src/generators/preset/files/.github/workflows/labels.yml +31 -0
- package/src/generators/preset/files/.github/workflows/lock.yml +26 -0
- package/src/generators/preset/files/.log4brains.yml.template +5 -0
- package/src/generators/preset/files/.markdownlint.json +155 -0
- package/src/generators/preset/files/.verdaccio/config.yml.template +40 -0
- package/src/generators/preset/files/.vscode/README.md +32 -0
- package/src/generators/preset/files/.vscode/cspell.json +3 -0
- package/src/generators/preset/files/.vscode/extensions.json +14 -0
- package/src/generators/preset/files/.vscode/launch.json +37 -0
- package/src/generators/preset/files/.vscode/settings.json +401 -0
- package/src/generators/preset/files/.vscode/tasks.json +4 -0
- package/src/generators/preset/files/.whitesource +14 -0
- package/src/generators/preset/files/assets/diagrams/.gitkeep +0 -0
- package/src/generators/preset/files/assets/icons/dark/.gitkeep +0 -0
- package/src/generators/preset/files/assets/icons/light/.gitkeep +0 -0
- package/src/generators/preset/files/assets/logos/.gitkeep +0 -0
- package/src/generators/preset/files/docs/api-reference/.gitkeep +0 -0
- package/src/generators/preset/generator.spec.ts +20 -0
- package/src/generators/preset/generator.ts +315 -0
- package/src/generators/preset/untyped.ts +88 -0
- package/src/generators/release-version/generator.spec.ts +20 -0
- package/src/generators/release-version/generator.ts +920 -0
- package/src/generators/release-version/untyped.ts +156 -0
- package/src/plugins/rust/cargo-toml.ts +434 -0
- package/src/plugins/rust/index.ts +1 -0
- package/src/plugins/typescript/index.ts +1 -0
- package/src/plugins/typescript/project-config.ts +564 -0
- package/src/plugins/typescript/tsup.ts +198 -0
- package/src/types.ts +130 -0
- package/src/utils/apply-workspace-tokens.ts +73 -0
- package/src/utils/cargo.ts +219 -0
- package/src/utils/create-cli-options.ts +23 -0
- package/src/utils/get-project-configurations.ts +27 -0
- package/src/utils/index.ts +12 -0
- package/src/utils/lock-file.ts +159 -0
- package/src/utils/package-helpers.ts +54 -0
- package/src/utils/plugin-helpers.ts +112 -0
- package/src/utils/pnpm-deps-update.ts +111 -0
- package/src/utils/project-tags.ts +162 -0
- package/src/utils/toml.ts +204 -0
- package/src/utils/typia-transform.ts +8 -0
- package/src/utils/versions.ts +19 -0
- package/tsconfig.json +30 -0
- package/tsup.config.ts +36 -0
- package/dist/chunk-62LQXZNY.js +0 -282
- package/dist/chunk-F3VG4R53.mjs +0 -282
- package/dist/src/generators/preset/files/LICENSE +0 -201
- package/docs/api/base/base-executor.schema.md +0 -16
- package/docs/api/base/base-generator.schema.md +0 -15
- package/docs/api/base/cargo-base-executor.schema.md +0 -90
- package/docs/api/base/typescript-build-executor.schema.md +0 -126
- package/docs/api/base/typescript-library-generator.schema.md +0 -129
- package/docs/api/executors/cargo-build/schema.md +0 -89
- package/docs/api/executors/cargo-check/schema.md +0 -90
- package/docs/api/executors/cargo-clippy/schema.md +0 -99
- package/docs/api/executors/cargo-doc/schema.md +0 -130
- package/docs/api/executors/cargo-format/schema.md +0 -90
- package/docs/api/executors/cargo-publish/schema.md +0 -117
- package/docs/api/executors/clean-package/schema.md +0 -65
- package/docs/api/executors/esbuild/schema.md +0 -126
- package/docs/api/executors/npm-publish/schema.md +0 -64
- package/docs/api/executors/size-limit/schema.md +0 -25
- package/docs/api/executors/typia/schema.md +0 -46
- package/docs/api/executors/unbuild/schema.md +0 -222
- package/docs/api/generators/browser-library/files/README.md +0 -58
- package/docs/api/generators/browser-library/schema.md +0 -129
- package/docs/api/generators/config-schema/schema.md +0 -25
- package/docs/api/generators/init/schema.md +0 -15
- package/docs/api/generators/neutral-library/files/README.md +0 -58
- package/docs/api/generators/neutral-library/schema.md +0 -129
- package/docs/api/generators/node-library/files/README.md +0 -63
- package/docs/api/generators/node-library/schema.md +0 -129
- package/docs/api/generators/preset/schema.md +0 -110
- package/docs/api/generators/release-version/schema.md +0 -160
- /package/{dist/src → src}/base/base-executor.schema.d.ts +0 -0
- /package/{dist/src → src}/base/base-executor.schema.json +0 -0
- /package/{dist/src → src}/base/base-executor.schema.md +0 -0
- /package/{dist/src → src}/base/base-generator.schema.d.ts +0 -0
- /package/{dist/src → src}/base/base-generator.schema.json +0 -0
- /package/{dist/src → src}/base/base-generator.schema.md +0 -0
- /package/{dist/src → src}/base/cargo-base-executor.schema.d.ts +0 -0
- /package/{dist/src → src}/base/cargo-base-executor.schema.json +0 -0
- /package/{dist/src → src}/base/cargo-base-executor.schema.md +0 -0
- /package/{dist/src → src}/base/typescript-build-executor.schema.d.ts +0 -0
- /package/{dist/src → src}/base/typescript-build-executor.schema.json +0 -0
- /package/{dist/src → src}/base/typescript-build-executor.schema.md +0 -0
- /package/{dist/src → src}/base/typescript-library-generator.schema.d.ts +0 -0
- /package/{dist/src → src}/base/typescript-library-generator.schema.json +0 -0
- /package/{dist/src → src}/base/typescript-library-generator.schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-build/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-build/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-build/schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-check/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-check/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-check/schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-clippy/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-clippy/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-clippy/schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-doc/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-doc/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-doc/schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-format/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-format/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-format/schema.md +0 -0
- /package/{dist/src → src}/executors/cargo-publish/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/cargo-publish/schema.json +0 -0
- /package/{dist/src → src}/executors/cargo-publish/schema.md +0 -0
- /package/{dist/src → src}/executors/clean-package/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/clean-package/schema.json +0 -0
- /package/{dist/src → src}/executors/clean-package/schema.md +0 -0
- /package/{dist/src → src}/executors/esbuild/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/esbuild/schema.json +0 -0
- /package/{dist/src → src}/executors/esbuild/schema.md +0 -0
- /package/{dist/src → src}/executors/npm-publish/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/npm-publish/schema.json +0 -0
- /package/{dist/src → src}/executors/npm-publish/schema.md +0 -0
- /package/{dist/src → src}/executors/size-limit/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/size-limit/schema.json +0 -0
- /package/{dist/src → src}/executors/size-limit/schema.md +0 -0
- /package/{dist/src → src}/executors/typia/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/typia/schema.json +0 -0
- /package/{dist/src → src}/executors/typia/schema.md +0 -0
- /package/{dist/src → src}/executors/unbuild/schema.d.ts +0 -0
- /package/{dist/src → src}/executors/unbuild/schema.json +0 -0
- /package/{dist/src → src}/executors/unbuild/schema.md +0 -0
- /package/{dist/src → src}/generators/browser-library/files/README.md +0 -0
- /package/{dist/src → src}/generators/browser-library/files/jest.config.ts +0 -0
- /package/{dist/src → src}/generators/browser-library/files/src/index.ts.template +0 -0
- /package/{dist/src → src}/generators/browser-library/files/tsconfig.spec.json +0 -0
- /package/{dist/src → src}/generators/browser-library/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/browser-library/schema.json +0 -0
- /package/{dist/src → src}/generators/browser-library/schema.md +0 -0
- /package/{dist/src → src}/generators/config-schema/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/config-schema/schema.json +0 -0
- /package/{dist/src → src}/generators/config-schema/schema.md +0 -0
- /package/{dist/src → src}/generators/init/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/init/schema.json +0 -0
- /package/{dist/src → src}/generators/init/schema.md +0 -0
- /package/{dist/src → src}/generators/neutral-library/files/README.md +0 -0
- /package/{dist/src → src}/generators/neutral-library/files/jest.config.ts +0 -0
- /package/{dist/src → src}/generators/neutral-library/files/src/index.ts.template +0 -0
- /package/{dist/src → src}/generators/neutral-library/files/tsconfig.spec.json +0 -0
- /package/{dist/src → src}/generators/neutral-library/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/neutral-library/schema.json +0 -0
- /package/{dist/src → src}/generators/neutral-library/schema.md +0 -0
- /package/{dist/src → src}/generators/node-library/files/README.md +0 -0
- /package/{dist/src → src}/generators/node-library/files/jest.config.ts +0 -0
- /package/{dist/src → src}/generators/node-library/files/src/index.ts.template +0 -0
- /package/{dist/src → src}/generators/node-library/files/tsconfig.spec.json +0 -0
- /package/{dist/src → src}/generators/node-library/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/node-library/schema.json +0 -0
- /package/{dist/src → src}/generators/node-library/schema.md +0 -0
- /package/{LICENSE → src/generators/preset/files/LICENSE} +0 -0
- /package/{dist/src → src}/generators/preset/files/README.md.template +0 -0
- /package/{dist/src → src}/generators/preset/files/docs/readme-templates/README.footer.md.template +0 -0
- /package/{dist/src → src}/generators/preset/files/docs/readme-templates/README.header.md.template +0 -0
- /package/{dist/src → src}/generators/preset/files/eslint.config.js.template +0 -0
- /package/{dist/src → src}/generators/preset/files/knip.json +0 -0
- /package/{dist/src → src}/generators/preset/files/lefthook.json +0 -0
- /package/{dist/src → src}/generators/preset/files/nx.json +0 -0
- /package/{dist/src → src}/generators/preset/files/pnpm-workspace.yaml +0 -0
- /package/{dist/src → src}/generators/preset/files/socket.yaml +0 -0
- /package/{dist/src → src}/generators/preset/files/storm.json.template +0 -0
- /package/{dist/src → src}/generators/preset/files/tsconfig.base.json.template +0 -0
- /package/{dist/src → src}/generators/preset/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/preset/schema.json +0 -0
- /package/{dist/src → src}/generators/preset/schema.md +0 -0
- /package/{dist/src → src}/generators/release-version/schema.d.ts +0 -0
- /package/{dist/src → src}/generators/release-version/schema.json +0 -0
- /package/{dist/src → src}/generators/release-version/schema.md +0 -0
- /package/{dist/src → src}/plugins/typescript/untyped-schema.ts +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import TOML from "@ltd/j-toml";
|
|
2
|
+
import { type Tree, logger } from "@nx/devkit";
|
|
3
|
+
|
|
4
|
+
export interface CargoToml {
|
|
5
|
+
// Workspace is only applicable to the root Cargo.toml
|
|
6
|
+
workspace?: { members: string[] };
|
|
7
|
+
package: any;
|
|
8
|
+
dependencies?: Record<
|
|
9
|
+
string,
|
|
10
|
+
string | { version: string; features?: string[]; optional?: boolean }
|
|
11
|
+
>;
|
|
12
|
+
"dev-dependencies"?: Record<
|
|
13
|
+
string,
|
|
14
|
+
string | { version: string; features: string[] }
|
|
15
|
+
>;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface CargoMetadata {
|
|
20
|
+
packages: Package[];
|
|
21
|
+
workspace_members: string[];
|
|
22
|
+
resolve: Resolve;
|
|
23
|
+
target_directory: string;
|
|
24
|
+
version: number;
|
|
25
|
+
workspace_root: string;
|
|
26
|
+
metadata: Metadata2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Package {
|
|
30
|
+
name: string;
|
|
31
|
+
version: string;
|
|
32
|
+
id: string;
|
|
33
|
+
license: string;
|
|
34
|
+
license_file: string;
|
|
35
|
+
description: string;
|
|
36
|
+
source: any;
|
|
37
|
+
dependencies: Dependency[];
|
|
38
|
+
targets: Target[];
|
|
39
|
+
features: Features;
|
|
40
|
+
manifest_path: string;
|
|
41
|
+
metadata: Metadata;
|
|
42
|
+
/**
|
|
43
|
+
* From the docs:
|
|
44
|
+
* "List of registries to which this package may be published.
|
|
45
|
+
* Publishing is unrestricted if null, and forbidden if an empty array."
|
|
46
|
+
*
|
|
47
|
+
* Additional observation:
|
|
48
|
+
* false can be used by the end user but it will be converted to an empty
|
|
49
|
+
* array in the cargo metadata output.
|
|
50
|
+
*/
|
|
51
|
+
publish?: string[] | boolean | null;
|
|
52
|
+
authors: string[];
|
|
53
|
+
categories: string[];
|
|
54
|
+
default_run: any;
|
|
55
|
+
rust_version: string;
|
|
56
|
+
keywords: string[];
|
|
57
|
+
readme: string;
|
|
58
|
+
repository: string;
|
|
59
|
+
homepage: string;
|
|
60
|
+
documentation: string;
|
|
61
|
+
edition: string;
|
|
62
|
+
links: any;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface Dependency {
|
|
66
|
+
name: string;
|
|
67
|
+
source: string;
|
|
68
|
+
req: string;
|
|
69
|
+
kind: any;
|
|
70
|
+
rename: any;
|
|
71
|
+
optional: boolean;
|
|
72
|
+
uses_default_features: boolean;
|
|
73
|
+
features: any[];
|
|
74
|
+
target: string;
|
|
75
|
+
path: string;
|
|
76
|
+
registry: any;
|
|
77
|
+
workspace: boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface Target {
|
|
81
|
+
kind: string[];
|
|
82
|
+
crate_types: string[];
|
|
83
|
+
name: string;
|
|
84
|
+
src_path: string;
|
|
85
|
+
edition: string;
|
|
86
|
+
"required-features": string[];
|
|
87
|
+
doc: boolean;
|
|
88
|
+
doctest: boolean;
|
|
89
|
+
test: boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface Features {
|
|
93
|
+
default: string[];
|
|
94
|
+
feat1: any[];
|
|
95
|
+
feat2: any[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface Metadata {
|
|
99
|
+
docs: Docs;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Docs {
|
|
103
|
+
rs: Rs;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface Rs {
|
|
107
|
+
"all-features": boolean;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface Resolve {
|
|
111
|
+
nodes: Node[];
|
|
112
|
+
root: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface Node {
|
|
116
|
+
id: string;
|
|
117
|
+
dependencies: string[];
|
|
118
|
+
deps: Dep[];
|
|
119
|
+
features: string[];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface Dep {
|
|
123
|
+
name: string;
|
|
124
|
+
pkg: string;
|
|
125
|
+
dep_kinds: DepKind[];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface DepKind {
|
|
129
|
+
kind: any;
|
|
130
|
+
target: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface Metadata2 {
|
|
134
|
+
docs: Docs2;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface Docs2 {
|
|
138
|
+
rs: Rs2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface Rs2 {
|
|
142
|
+
"all-features": boolean;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function parseCargoTomlWithTree(
|
|
146
|
+
tree: Tree,
|
|
147
|
+
projectRoot: string,
|
|
148
|
+
projectName: string,
|
|
149
|
+
) {
|
|
150
|
+
const cargoTomlString = tree.read(`${projectRoot}/Cargo.toml`)?.toString();
|
|
151
|
+
if (!cargoTomlString) {
|
|
152
|
+
logger.error(`Cannot find a Cargo.toml file in the ${projectName}`);
|
|
153
|
+
throw new Error();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return parseCargoToml(cargoTomlString);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function parseCargoToml(cargoString?: string) {
|
|
160
|
+
if (!cargoString) {
|
|
161
|
+
throw new Error("Cargo.toml is empty");
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return TOML.parse(cargoString, {
|
|
165
|
+
x: { comment: true },
|
|
166
|
+
}) as unknown as CargoToml;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function stringifyCargoToml(cargoToml: CargoToml) {
|
|
170
|
+
const tomlString = TOML.stringify(cargoToml, {
|
|
171
|
+
newlineAround: "section",
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
if (Array.isArray(tomlString)) {
|
|
175
|
+
return tomlString.join("\n");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return tomlString;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function modifyCargoTable(
|
|
182
|
+
toml: CargoToml,
|
|
183
|
+
section: string,
|
|
184
|
+
key: string,
|
|
185
|
+
value: string | object | any[] | (() => any),
|
|
186
|
+
) {
|
|
187
|
+
toml[section] ??= TOML.Section({});
|
|
188
|
+
toml[section][key] =
|
|
189
|
+
typeof value === "object" && !Array.isArray(value)
|
|
190
|
+
? TOML.inline(value as any)
|
|
191
|
+
: typeof value === "function"
|
|
192
|
+
? value()
|
|
193
|
+
: value;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function modifyCargoNestedTable(
|
|
197
|
+
toml: CargoToml,
|
|
198
|
+
section: string,
|
|
199
|
+
key: string,
|
|
200
|
+
value: object,
|
|
201
|
+
) {
|
|
202
|
+
toml[section] ??= {};
|
|
203
|
+
toml[section][key] = TOML.Section(value as any);
|
|
204
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const tsupVersion = "^7.2.0";
|
|
2
|
+
export const prettierPackageJsonVersion = "2.4.6";
|
|
3
|
+
export const prettierPrismaVersion = "5.0.0";
|
|
4
|
+
export const prettierVersion = "^3.0.3";
|
|
5
|
+
export const swcCliVersion = "~0.1.62";
|
|
6
|
+
export const swcCoreVersion = "~1.3.95";
|
|
7
|
+
export const swcHelpersVersion = "~0.5.3";
|
|
8
|
+
export const swcNodeVersion = "1.6.8";
|
|
9
|
+
export const tsLibVersion = "2.6.2";
|
|
10
|
+
export const typesNodeVersion = "20.9.0";
|
|
11
|
+
export const verdaccioVersion = "5.27.0";
|
|
12
|
+
export const typescriptVersion = "~5.2.2";
|
|
13
|
+
export const eslintVersion = "~8.53.0";
|
|
14
|
+
export const lintStagedVersion = "15.0.2";
|
|
15
|
+
export const semanticReleaseVersion = "22.0.7";
|
|
16
|
+
|
|
17
|
+
export const nxVersion = "^18.0.4";
|
|
18
|
+
export const nodeVersion = "20.11.0";
|
|
19
|
+
export const pnpmVersion = "8.10.2";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../dist/out-tsc",
|
|
5
|
+
"rootDir": "../..",
|
|
6
|
+
"target": "ESNext",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"lib": ["ESNext"],
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"skipDefaultLibCheck": true,
|
|
11
|
+
"moduleResolution": "Bundler",
|
|
12
|
+
"moduleDetection": "force",
|
|
13
|
+
"types": ["node"]
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"executors.ts",
|
|
17
|
+
"generators.ts",
|
|
18
|
+
"index.ts",
|
|
19
|
+
"src/**/*.ts",
|
|
20
|
+
"src/**/*.d.ts",
|
|
21
|
+
"src/**/*.json",
|
|
22
|
+
"tsup.config.ts"
|
|
23
|
+
],
|
|
24
|
+
"exclude": [
|
|
25
|
+
"jest.config.ts",
|
|
26
|
+
"src/generators/**/files/**/*",
|
|
27
|
+
"src/**/*.spec.ts",
|
|
28
|
+
"src/**/*.test.ts"
|
|
29
|
+
]
|
|
30
|
+
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineConfig } from "tsup";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
name: "workspace-tools",
|
|
6
|
+
target: "node22",
|
|
7
|
+
entryPoints: [
|
|
8
|
+
"./index.ts",
|
|
9
|
+
"./executors.ts",
|
|
10
|
+
"./generators.ts",
|
|
11
|
+
"./src/types.ts",
|
|
12
|
+
"./src/base/index.ts",
|
|
13
|
+
"./src/base/base-executor.ts",
|
|
14
|
+
"./src/base/base-generator.ts",
|
|
15
|
+
"./src/base/*.untyped.ts",
|
|
16
|
+
"./src/utils/*.ts",
|
|
17
|
+
"./src/executors/*/executor.ts",
|
|
18
|
+
"./src/executors/*/untyped.ts",
|
|
19
|
+
"./src/generators/*/generator.ts",
|
|
20
|
+
"./src/generators/*/untyped.ts",
|
|
21
|
+
"./src/generators/init/init.ts",
|
|
22
|
+
"./src/plugins/rust/*.ts",
|
|
23
|
+
"./src/plugins/typescript/*.ts"
|
|
24
|
+
],
|
|
25
|
+
outDir: "dist",
|
|
26
|
+
format: ["cjs", "esm"],
|
|
27
|
+
bundle: true,
|
|
28
|
+
platform: "node",
|
|
29
|
+
splitting: true,
|
|
30
|
+
clean: true,
|
|
31
|
+
dts: true,
|
|
32
|
+
sourcemap: false,
|
|
33
|
+
shims: true,
|
|
34
|
+
tsconfig: "./tsconfig.json"
|
|
35
|
+
}
|
|
36
|
+
]);
|
package/dist/chunk-62LQXZNY.js
DELETED
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkZP76EMBEjs = require('./chunk-ZP76EMBE.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
7
|
-
|
|
8
|
-
// src/executors/npm-publish/executor.ts
|
|
9
|
-
var _child_process = require('child_process');
|
|
10
|
-
var _promises = require('fs/promises');
|
|
11
|
-
var LARGE_BUFFER = 1024 * 1e6;
|
|
12
|
-
async function npmPublishExecutorFn(options, context) {
|
|
13
|
-
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
14
|
-
if (!context.projectName) {
|
|
15
|
-
throw new Error("The `npm-publish` executor requires a `projectName`.");
|
|
16
|
-
}
|
|
17
|
-
const projectConfig = _optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects, 'optionalAccess', _3 => _3[context.projectName]]);
|
|
18
|
-
if (!projectConfig) {
|
|
19
|
-
throw new Error(
|
|
20
|
-
`Could not find project configuration for \`${context.projectName}\``
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
const packageRoot = _chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
24
|
-
context.root,
|
|
25
|
-
options.packageRoot || _chunk53DNHF7Bjs.joinPaths.call(void 0, "dist", projectConfig.root)
|
|
26
|
-
);
|
|
27
|
-
const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
28
|
-
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
29
|
-
if (!packageJsonFile) {
|
|
30
|
-
throw new Error(`Could not find \`package.json\` at ${packageJsonPath}`);
|
|
31
|
-
}
|
|
32
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
33
|
-
const packageName = packageJson.name;
|
|
34
|
-
console.info(
|
|
35
|
-
`\u{1F680} Running Storm NPM Publish executor on the ${packageName} package`
|
|
36
|
-
);
|
|
37
|
-
const packageTxt = packageName === context.projectName ? `package "${packageName}"` : `package "${packageName}" from project "${context.projectName}"`;
|
|
38
|
-
if (packageJson.private === true) {
|
|
39
|
-
console.warn(
|
|
40
|
-
`Skipped ${packageTxt}, because it has \`"private": true\` in ${packageJsonPath}`
|
|
41
|
-
);
|
|
42
|
-
return { success: true };
|
|
43
|
-
}
|
|
44
|
-
await _chunkZP76EMBEjs.pnpmCatalogUpdate.call(void 0, packageRoot, context.root);
|
|
45
|
-
const npmPublishCommandSegments = [`pnpm publish --json`];
|
|
46
|
-
const npmViewCommandSegments = [
|
|
47
|
-
`npm view ${packageName} versions dist-tags --json`
|
|
48
|
-
];
|
|
49
|
-
const registry = options.registry ? options.registry : _child_process.execSync.call(void 0, "npm config get registry", {
|
|
50
|
-
cwd: packageRoot,
|
|
51
|
-
env: {
|
|
52
|
-
...process.env,
|
|
53
|
-
FORCE_COLOR: "true"
|
|
54
|
-
},
|
|
55
|
-
maxBuffer: LARGE_BUFFER,
|
|
56
|
-
killSignal: "SIGTERM"
|
|
57
|
-
}).toString().trim();
|
|
58
|
-
if (registry) {
|
|
59
|
-
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
60
|
-
npmViewCommandSegments.push(`--registry="${registry}" `);
|
|
61
|
-
}
|
|
62
|
-
if (options.otp) {
|
|
63
|
-
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
64
|
-
}
|
|
65
|
-
if (isDryRun) {
|
|
66
|
-
npmPublishCommandSegments.push("--dry-run");
|
|
67
|
-
}
|
|
68
|
-
npmPublishCommandSegments.push("--provenance --access=public ");
|
|
69
|
-
const tag = options.tag || _child_process.execSync.call(void 0, "npm config get tag", {
|
|
70
|
-
cwd: packageRoot,
|
|
71
|
-
env: {
|
|
72
|
-
...process.env,
|
|
73
|
-
FORCE_COLOR: "true"
|
|
74
|
-
},
|
|
75
|
-
maxBuffer: LARGE_BUFFER,
|
|
76
|
-
killSignal: "SIGTERM"
|
|
77
|
-
}).toString().trim();
|
|
78
|
-
if (tag) {
|
|
79
|
-
npmPublishCommandSegments.push(`--tag="${tag}" `);
|
|
80
|
-
}
|
|
81
|
-
if (!isDryRun) {
|
|
82
|
-
const currentVersion = packageJson.version;
|
|
83
|
-
try {
|
|
84
|
-
try {
|
|
85
|
-
const result = _child_process.execSync.call(void 0, npmViewCommandSegments.join(" "), {
|
|
86
|
-
cwd: packageRoot,
|
|
87
|
-
env: {
|
|
88
|
-
...process.env,
|
|
89
|
-
FORCE_COLOR: "true"
|
|
90
|
-
},
|
|
91
|
-
maxBuffer: LARGE_BUFFER,
|
|
92
|
-
killSignal: "SIGTERM"
|
|
93
|
-
});
|
|
94
|
-
const resultJson = JSON.parse(result.toString());
|
|
95
|
-
const distTags = resultJson["dist-tags"] || {};
|
|
96
|
-
if (distTags[tag] === currentVersion) {
|
|
97
|
-
console.warn(
|
|
98
|
-
`Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
|
|
99
|
-
);
|
|
100
|
-
return { success: true };
|
|
101
|
-
}
|
|
102
|
-
} catch (err) {
|
|
103
|
-
console.warn("\n ********************** \n");
|
|
104
|
-
console.warn(
|
|
105
|
-
`An error occurred while checking for existing dist-tags
|
|
106
|
-
${JSON.stringify(err)}
|
|
107
|
-
|
|
108
|
-
Note: If this is the first time this package has been published to NPM, this can be ignored.
|
|
109
|
-
|
|
110
|
-
`
|
|
111
|
-
);
|
|
112
|
-
console.info("");
|
|
113
|
-
}
|
|
114
|
-
try {
|
|
115
|
-
if (!isDryRun) {
|
|
116
|
-
const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
|
|
117
|
-
console.info(
|
|
118
|
-
`Adding the dist-tag ${tag} - preparing to run the following:
|
|
119
|
-
${command}
|
|
120
|
-
`
|
|
121
|
-
);
|
|
122
|
-
const result = _child_process.execSync.call(void 0, command, {
|
|
123
|
-
cwd: packageRoot,
|
|
124
|
-
env: {
|
|
125
|
-
...process.env,
|
|
126
|
-
FORCE_COLOR: "true"
|
|
127
|
-
},
|
|
128
|
-
maxBuffer: LARGE_BUFFER,
|
|
129
|
-
killSignal: "SIGTERM"
|
|
130
|
-
});
|
|
131
|
-
console.info(
|
|
132
|
-
`Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}"
|
|
133
|
-
|
|
134
|
-
Execution response: ${result.toString()}
|
|
135
|
-
`
|
|
136
|
-
);
|
|
137
|
-
} else {
|
|
138
|
-
console.info(
|
|
139
|
-
`Would add the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
|
|
140
|
-
`
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
return { success: true };
|
|
144
|
-
} catch (err) {
|
|
145
|
-
try {
|
|
146
|
-
console.warn("\n ********************** \n");
|
|
147
|
-
let error = err;
|
|
148
|
-
if (Buffer.isBuffer(error)) {
|
|
149
|
-
error = error.toString();
|
|
150
|
-
}
|
|
151
|
-
console.warn(
|
|
152
|
-
`An error occurred while adding dist-tags:
|
|
153
|
-
${error}
|
|
154
|
-
|
|
155
|
-
Note: If this is the first time this package has been published to NPM, this can be ignored.
|
|
156
|
-
|
|
157
|
-
`
|
|
158
|
-
);
|
|
159
|
-
console.info("");
|
|
160
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access', _4 => _4.stdout, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()]) || "{}");
|
|
161
|
-
if (_optionalChain([stdoutData, 'optionalAccess', _7 => _7.error]) && !(_optionalChain([stdoutData, 'access', _8 => _8.error, 'optionalAccess', _9 => _9.code, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11("E404")]) && _optionalChain([stdoutData, 'access', _12 => _12.error, 'optionalAccess', _13 => _13.summary, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15("no such package available")])) && !(_optionalChain([err, 'access', _16 => _16.stderr, 'optionalAccess', _17 => _17.toString, 'call', _18 => _18(), 'access', _19 => _19.includes, 'call', _20 => _20("E404")]) && _optionalChain([err, 'access', _21 => _21.stderr, 'optionalAccess', _22 => _22.toString, 'call', _23 => _23(), 'access', _24 => _24.includes, 'call', _25 => _25("no such package available")]))) {
|
|
162
|
-
console.error(
|
|
163
|
-
"npm dist-tag add error please see below for more information:"
|
|
164
|
-
);
|
|
165
|
-
if (stdoutData.error.summary) {
|
|
166
|
-
console.error(_optionalChain([stdoutData, 'access', _26 => _26.error, 'optionalAccess', _27 => _27.summary]));
|
|
167
|
-
}
|
|
168
|
-
if (stdoutData.error.detail) {
|
|
169
|
-
console.error(_optionalChain([stdoutData, 'access', _28 => _28.error, 'optionalAccess', _29 => _29.detail]));
|
|
170
|
-
}
|
|
171
|
-
if (context.isVerbose) {
|
|
172
|
-
console.error(
|
|
173
|
-
`npm dist-tag add stdout: ${JSON.stringify(stdoutData, null, 2)}`
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
return { success: false };
|
|
177
|
-
}
|
|
178
|
-
} catch (err2) {
|
|
179
|
-
console.error(
|
|
180
|
-
`Something unexpected went wrong when processing the npm dist-tag add output
|
|
181
|
-
${JSON.stringify(err2)}`
|
|
182
|
-
);
|
|
183
|
-
return { success: false };
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
} catch (err) {
|
|
187
|
-
let error = err;
|
|
188
|
-
if (Buffer.isBuffer(error)) {
|
|
189
|
-
error = error.toString();
|
|
190
|
-
}
|
|
191
|
-
console.error("\n ********************** \n");
|
|
192
|
-
console.info("");
|
|
193
|
-
console.error(
|
|
194
|
-
"An error occured trying to run the npm dist-tag add command."
|
|
195
|
-
);
|
|
196
|
-
console.error(error);
|
|
197
|
-
console.info("");
|
|
198
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access', _30 => _30.stdout, 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()]) || "{}");
|
|
199
|
-
if (!(_optionalChain([stdoutData, 'access', _33 => _33.error, 'optionalAccess', _34 => _34.code, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36("E404")]) && _optionalChain([stdoutData, 'access', _37 => _37.error, 'optionalAccess', _38 => _38.summary, 'optionalAccess', _39 => _39.toLowerCase, 'call', _40 => _40(), 'access', _41 => _41.includes, 'call', _42 => _42("not found")])) && !(_optionalChain([err, 'access', _43 => _43.stderr, 'optionalAccess', _44 => _44.toString, 'call', _45 => _45(), 'access', _46 => _46.includes, 'call', _47 => _47("E404")]) && _optionalChain([err, 'access', _48 => _48.stderr, 'optionalAccess', _49 => _49.toString, 'call', _50 => _50(), 'access', _51 => _51.toLowerCase, 'call', _52 => _52(), 'access', _53 => _53.includes, 'call', _54 => _54("not found")]))) {
|
|
200
|
-
console.error(
|
|
201
|
-
`Something unexpected went wrong when checking for existing dist-tags.
|
|
202
|
-
|
|
203
|
-
Error: ${JSON.stringify(err)}
|
|
204
|
-
`
|
|
205
|
-
);
|
|
206
|
-
return { success: false };
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
try {
|
|
211
|
-
const cwd = packageRoot;
|
|
212
|
-
const command = npmPublishCommandSegments.join(" ");
|
|
213
|
-
console.info(
|
|
214
|
-
`Running publish command "${command}" in current working directory: "${cwd}" `
|
|
215
|
-
);
|
|
216
|
-
const result = _child_process.execSync.call(void 0, command, {
|
|
217
|
-
cwd,
|
|
218
|
-
env: {
|
|
219
|
-
...process.env,
|
|
220
|
-
FORCE_COLOR: "true"
|
|
221
|
-
},
|
|
222
|
-
maxBuffer: LARGE_BUFFER,
|
|
223
|
-
killSignal: "SIGTERM"
|
|
224
|
-
});
|
|
225
|
-
if (isDryRun) {
|
|
226
|
-
console.info(
|
|
227
|
-
`Would publish to ${registry} with tag "${tag}", but [dry-run] was set ${result ? `
|
|
228
|
-
|
|
229
|
-
Execution response: ${result.toString()}` : ""}
|
|
230
|
-
`
|
|
231
|
-
);
|
|
232
|
-
} else {
|
|
233
|
-
console.info(`Published to ${registry} with tag "${tag}" ${result ? `
|
|
234
|
-
|
|
235
|
-
Execution response: ${result.toString()}` : ""}
|
|
236
|
-
`);
|
|
237
|
-
}
|
|
238
|
-
return { success: true };
|
|
239
|
-
} catch (err) {
|
|
240
|
-
try {
|
|
241
|
-
console.error("\n ********************** \n");
|
|
242
|
-
console.info("");
|
|
243
|
-
console.error("An error occured running npm publish.");
|
|
244
|
-
console.error("Please see below for more information:");
|
|
245
|
-
console.info("");
|
|
246
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access', _55 => _55.stdout, 'optionalAccess', _56 => _56.toString, 'call', _57 => _57()]) || "{}");
|
|
247
|
-
if (stdoutData.error.summary) {
|
|
248
|
-
console.error(stdoutData.error.summary);
|
|
249
|
-
console.error(stdoutData.error.summary);
|
|
250
|
-
}
|
|
251
|
-
if (stdoutData.error.detail) {
|
|
252
|
-
console.error(stdoutData.error.detail);
|
|
253
|
-
}
|
|
254
|
-
if (context.isVerbose) {
|
|
255
|
-
console.error(
|
|
256
|
-
`pnpm publish stdout:
|
|
257
|
-
${JSON.stringify(stdoutData, null, 2)}`
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
console.error("\n ********************** \n");
|
|
261
|
-
return { success: false };
|
|
262
|
-
} catch (err2) {
|
|
263
|
-
let error = err2;
|
|
264
|
-
if (Buffer.isBuffer(error)) {
|
|
265
|
-
error = error.toString();
|
|
266
|
-
}
|
|
267
|
-
console.error(
|
|
268
|
-
`Something unexpected went wrong when processing the npm publish output
|
|
269
|
-
|
|
270
|
-
Error: ${JSON.stringify(error)}
|
|
271
|
-
`
|
|
272
|
-
);
|
|
273
|
-
console.error("\n ********************** \n");
|
|
274
|
-
return { success: false };
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
exports.LARGE_BUFFER = LARGE_BUFFER; exports.npmPublishExecutorFn = npmPublishExecutorFn;
|