@storm-software/workspace-tools 1.297.14 → 1.297.16
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/dist/{chunk-JS3FXUF6.mjs → chunk-24ZSBW55.mjs} +1 -1
- package/dist/chunk-25CVAKT7.js +328 -0
- package/dist/{chunk-VRMHNBR7.mjs → chunk-B5AN2AWV.mjs} +1 -1
- package/dist/{chunk-3GSSMVNM.mjs → chunk-NIMFK635.mjs} +1 -1
- package/dist/{chunk-T5BI4GUA.mjs → chunk-OO55MK26.mjs} +1 -1
- package/dist/chunk-RO5UTVHO.mjs +328 -0
- package/dist/{chunk-ROLKS2VN.mjs → chunk-WRGPNWX5.mjs} +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.mjs +5 -5
- package/dist/index.mjs +5 -5
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +1 -1
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +1 -1
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +1 -1
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +1 -1
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +1 -1
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/command-publish/executor.mjs +1 -1
- package/dist/src/executors/command-publish/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.mjs +1 -1
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.mjs +1 -1
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.mjs +1 -1
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.mjs +1 -1
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +1 -1
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.mjs +1 -1
- package/dist/src/release/js-version-actions.mjs +1 -1
- package/dist/src/release/rust-version-actions.mjs +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/github.mjs +1 -1
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/package-manager.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +15 -15
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getGitHubTools
|
|
3
|
+
} from "./chunk-HDT5JTE3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
addPackageJsonGitHead,
|
|
6
|
+
stripPrivateWorkspaceDeps
|
|
7
|
+
} from "./chunk-G4DPDEL3.mjs";
|
|
8
|
+
import {
|
|
9
|
+
getWorkspacePackageManager
|
|
10
|
+
} from "./chunk-EXRSULNO.mjs";
|
|
11
|
+
import {
|
|
12
|
+
getConfig
|
|
13
|
+
} from "./chunk-I4KVL3GR.mjs";
|
|
14
|
+
import {
|
|
15
|
+
joinPaths
|
|
16
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
17
|
+
|
|
18
|
+
// src/executors/npm-publish/executor.ts
|
|
19
|
+
import { createJiti } from "jiti";
|
|
20
|
+
import { execSync } from "node:child_process";
|
|
21
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
22
|
+
import { format } from "prettier";
|
|
23
|
+
import prettierPlugin from "prettier-plugin-packagejson";
|
|
24
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
25
|
+
async function replaceDepsAliases(jiti, packageRoot, workspaceRoot, packageManager) {
|
|
26
|
+
if (packageManager === "bun") {
|
|
27
|
+
const { replaceDepsAliases: replaceBunDepsAliases } = await jiti.import(jiti.esmResolve("@storm-software/bun-tools"));
|
|
28
|
+
return replaceBunDepsAliases(packageRoot, workspaceRoot);
|
|
29
|
+
}
|
|
30
|
+
if (packageManager === "pnpm") {
|
|
31
|
+
const { replaceDepsAliases: replacePnpmDepsAliases } = await jiti.import(jiti.esmResolve("@storm-software/pnpm-tools"));
|
|
32
|
+
return replacePnpmDepsAliases(packageRoot, workspaceRoot);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async function npmPublishExecutorFn(options, context) {
|
|
36
|
+
const workspaceConfig = await getConfig(context.root);
|
|
37
|
+
const packageManager = await getWorkspacePackageManager(
|
|
38
|
+
context.root,
|
|
39
|
+
workspaceConfig
|
|
40
|
+
);
|
|
41
|
+
const github = await getGitHubTools(workspaceConfig);
|
|
42
|
+
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
43
|
+
if (!context.projectName) {
|
|
44
|
+
github.error("The `npm-publish` executor requires a `projectName`.");
|
|
45
|
+
return { success: false };
|
|
46
|
+
}
|
|
47
|
+
const projectConfig = context.projectsConfigurations?.projects?.[context.projectName];
|
|
48
|
+
if (!projectConfig) {
|
|
49
|
+
github.error(
|
|
50
|
+
`Could not find project configuration for \`${context.projectName}\``
|
|
51
|
+
);
|
|
52
|
+
return { success: false };
|
|
53
|
+
}
|
|
54
|
+
const packageRoot = joinPaths(
|
|
55
|
+
context.root,
|
|
56
|
+
options.packageRoot || joinPaths("dist", projectConfig.root)
|
|
57
|
+
);
|
|
58
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ? joinPaths(
|
|
59
|
+
context.root,
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
61
|
+
context.projectsConfigurations.projects[context.projectName].root
|
|
62
|
+
) : packageRoot;
|
|
63
|
+
const jiti = createJiti(context.root, {
|
|
64
|
+
fsCache: joinPaths(context.root, "node_modules/.cache/storm", "jiti"),
|
|
65
|
+
interopDefault: true
|
|
66
|
+
});
|
|
67
|
+
const { getNpmRegistry, getRegistry } = await jiti.import(jiti.esmResolve("@storm-software/npm-tools/helpers"));
|
|
68
|
+
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
69
|
+
const packageJsonFile = await readFile(packageJsonPath, "utf8");
|
|
70
|
+
if (!packageJsonFile) {
|
|
71
|
+
github.error(`Could not find \`package.json\` at ${packageJsonPath}`);
|
|
72
|
+
return { success: false };
|
|
73
|
+
}
|
|
74
|
+
const packageJson = JSON.parse(packageJsonFile);
|
|
75
|
+
const projectPackageJsonPath = joinPaths(projectRoot, "package.json");
|
|
76
|
+
const projectPackageJsonFile = await readFile(projectPackageJsonPath, "utf8");
|
|
77
|
+
if (!projectPackageJsonFile) {
|
|
78
|
+
github.error(
|
|
79
|
+
`Could not find \`package.json\` at ${projectPackageJsonPath}`
|
|
80
|
+
);
|
|
81
|
+
return { success: false };
|
|
82
|
+
}
|
|
83
|
+
const projectPackageJson = JSON.parse(projectPackageJsonFile);
|
|
84
|
+
if (packageJson.version !== projectPackageJson.version) {
|
|
85
|
+
console.warn(
|
|
86
|
+
`The version in the package.json file at ${packageJsonPath} (current: ${packageJson.version}) does not match the version in the package.json file at ${projectPackageJsonPath} (current: ${projectPackageJson.version}). This file will be updated to match the version in the project package.json file.`
|
|
87
|
+
);
|
|
88
|
+
if (projectPackageJson.version) {
|
|
89
|
+
packageJson.version = projectPackageJson.version;
|
|
90
|
+
await writeFile(
|
|
91
|
+
packageJsonPath,
|
|
92
|
+
await format(JSON.stringify(packageJson), {
|
|
93
|
+
parser: "json",
|
|
94
|
+
proseWrap: "preserve",
|
|
95
|
+
trailingComma: "none",
|
|
96
|
+
tabWidth: 2,
|
|
97
|
+
semi: true,
|
|
98
|
+
singleQuote: false,
|
|
99
|
+
quoteProps: "as-needed",
|
|
100
|
+
insertPragma: false,
|
|
101
|
+
bracketSameLine: true,
|
|
102
|
+
printWidth: 80,
|
|
103
|
+
bracketSpacing: true,
|
|
104
|
+
arrowParens: "avoid",
|
|
105
|
+
endOfLine: "lf",
|
|
106
|
+
plugins: [prettierPlugin]
|
|
107
|
+
})
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const packageName = packageJson.name;
|
|
112
|
+
console.info(
|
|
113
|
+
`\u{1F680} Running Storm NPM Publish executor on the ${packageName} package`
|
|
114
|
+
);
|
|
115
|
+
const packageTxt = packageName === context.projectName ? `package "${packageName}"` : `package "${packageName}" from project "${context.projectName}"`;
|
|
116
|
+
if (packageJson.private === true) {
|
|
117
|
+
console.warn(
|
|
118
|
+
`Skipped ${packageTxt}, because it has \`"private": true\` in ${packageJsonPath}`
|
|
119
|
+
);
|
|
120
|
+
return { success: true };
|
|
121
|
+
}
|
|
122
|
+
const removedPrivateWorkspaceDeps = await stripPrivateWorkspaceDeps(
|
|
123
|
+
packageRoot,
|
|
124
|
+
context.root
|
|
125
|
+
);
|
|
126
|
+
if (removedPrivateWorkspaceDeps.length > 0) {
|
|
127
|
+
console.info(
|
|
128
|
+
`Removed private workspace dependencies from ${packageJsonPath}: ${removedPrivateWorkspaceDeps.join(", ")}`
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
await replaceDepsAliases(jiti, packageRoot, context.root, packageManager);
|
|
132
|
+
await addPackageJsonGitHead(packageRoot);
|
|
133
|
+
const npmPublishCommandSegments = [`npm publish --json`];
|
|
134
|
+
const npmViewCommandSegments = [
|
|
135
|
+
`npm view ${packageName} versions dist-tags --json`
|
|
136
|
+
];
|
|
137
|
+
const registry = await Promise.resolve(
|
|
138
|
+
options.registry ?? (await getRegistry() || getNpmRegistry())
|
|
139
|
+
);
|
|
140
|
+
if (registry) {
|
|
141
|
+
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
142
|
+
npmViewCommandSegments.push(`--registry="${registry}" `);
|
|
143
|
+
}
|
|
144
|
+
if (options.otp) {
|
|
145
|
+
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
146
|
+
}
|
|
147
|
+
let token;
|
|
148
|
+
if (!options.otp && registry) {
|
|
149
|
+
token = await github.getIDToken(
|
|
150
|
+
`npm:${registry.replace(/^https?:\/\//, "")}`
|
|
151
|
+
);
|
|
152
|
+
if (!token) {
|
|
153
|
+
github.warning(
|
|
154
|
+
`Either a One time password (OTP) or an OpenID Connect (OIDC) token is generally required to publish ${packageTxt} to NPM. Usually the OIDC token should be provided automatically via GitHub Actions (see: https://github.com/actions/toolkit/tree/main/packages/core#oidc-token); however, the release process was unable to retrieve it. Please provide a \`otp\` executor option, or investigate why the OIDC token could not be retrieved.`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
npmPublishCommandSegments.push("--provenance --access=public ");
|
|
159
|
+
if (isDryRun) {
|
|
160
|
+
npmPublishCommandSegments.push("--dry-run");
|
|
161
|
+
}
|
|
162
|
+
const tag = options.tag || execSync("npm config get tag", {
|
|
163
|
+
cwd: packageRoot,
|
|
164
|
+
env: {
|
|
165
|
+
NPM_ID_TOKEN: token ? token : void 0,
|
|
166
|
+
...process.env,
|
|
167
|
+
FORCE_COLOR: "true"
|
|
168
|
+
},
|
|
169
|
+
maxBuffer: LARGE_BUFFER,
|
|
170
|
+
killSignal: "SIGTERM"
|
|
171
|
+
}).toString().trim();
|
|
172
|
+
if (tag) {
|
|
173
|
+
npmPublishCommandSegments.push(`--tag="${tag}" `);
|
|
174
|
+
}
|
|
175
|
+
if (!isDryRun) {
|
|
176
|
+
const currentVersion = options.version || packageJson.version;
|
|
177
|
+
try {
|
|
178
|
+
try {
|
|
179
|
+
const result = execSync(npmViewCommandSegments.join(" "), {
|
|
180
|
+
cwd: packageRoot,
|
|
181
|
+
env: {
|
|
182
|
+
NPM_ID_TOKEN: token,
|
|
183
|
+
...process.env,
|
|
184
|
+
FORCE_COLOR: "true"
|
|
185
|
+
},
|
|
186
|
+
maxBuffer: LARGE_BUFFER,
|
|
187
|
+
killSignal: "SIGTERM"
|
|
188
|
+
});
|
|
189
|
+
const resultJson = JSON.parse(result.toString());
|
|
190
|
+
const distTags = resultJson["dist-tags"] || {};
|
|
191
|
+
if (distTags[tag] === currentVersion) {
|
|
192
|
+
console.warn(
|
|
193
|
+
`Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
|
|
194
|
+
);
|
|
195
|
+
return { success: true };
|
|
196
|
+
}
|
|
197
|
+
} catch (err) {
|
|
198
|
+
console.debug(
|
|
199
|
+
`An error occurred while checking for existing dist-tags. Please note: if this is the first time this package has been published to npm, this can be ignored.
|
|
200
|
+
|
|
201
|
+
Error: ${JSON.stringify(
|
|
202
|
+
err,
|
|
203
|
+
null,
|
|
204
|
+
2
|
|
205
|
+
)}`
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
try {
|
|
209
|
+
if (!isDryRun) {
|
|
210
|
+
const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
|
|
211
|
+
console.debug(
|
|
212
|
+
`Adding the dist-tag ${tag} - preparing to run the following: ${command}`
|
|
213
|
+
);
|
|
214
|
+
const result = execSync(command, {
|
|
215
|
+
cwd: packageRoot,
|
|
216
|
+
env: {
|
|
217
|
+
NPM_ID_TOKEN: token,
|
|
218
|
+
...process.env,
|
|
219
|
+
FORCE_COLOR: "true"
|
|
220
|
+
},
|
|
221
|
+
maxBuffer: LARGE_BUFFER,
|
|
222
|
+
killSignal: "SIGTERM"
|
|
223
|
+
});
|
|
224
|
+
console.info(
|
|
225
|
+
`Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}".
|
|
226
|
+
|
|
227
|
+
Execution response: ${result.toString()}`
|
|
228
|
+
);
|
|
229
|
+
} else {
|
|
230
|
+
console.info(
|
|
231
|
+
`Would have added the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
|
|
232
|
+
`
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
return { success: true };
|
|
236
|
+
} catch (err) {
|
|
237
|
+
try {
|
|
238
|
+
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
239
|
+
if (stdoutData?.error && !(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.includes("no such package available")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().includes("no such package available"))) {
|
|
240
|
+
const errorMessage = `An unexpected error occured while running the npm dist-tag add command:
|
|
241
|
+
|
|
242
|
+
${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
|
|
243
|
+
` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
|
|
244
|
+
` : ""}`;
|
|
245
|
+
github.error(errorMessage);
|
|
246
|
+
return { success: false };
|
|
247
|
+
}
|
|
248
|
+
} catch (err2) {
|
|
249
|
+
const stdoutData = JSON.parse(err2.stdout?.toString() || "{}");
|
|
250
|
+
const errorMessage = `An unexpected error occured while processing the npm dist-tag add output:
|
|
251
|
+
|
|
252
|
+
${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
|
|
253
|
+
` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
|
|
254
|
+
` : ""}`;
|
|
255
|
+
github.error(errorMessage);
|
|
256
|
+
return { success: false };
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
} catch (err) {
|
|
260
|
+
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
261
|
+
if (!(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.toLowerCase().includes("not found")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().toLowerCase().includes("not found"))) {
|
|
262
|
+
const errorMessage = `An unexpected error occured while checking for existing dist-tags:
|
|
263
|
+
|
|
264
|
+
${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
|
|
265
|
+
` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
|
|
266
|
+
` : ""}`;
|
|
267
|
+
github.error(errorMessage);
|
|
268
|
+
return { success: false };
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
try {
|
|
273
|
+
const cwd = packageRoot;
|
|
274
|
+
const command = npmPublishCommandSegments.join(" ");
|
|
275
|
+
console.info(
|
|
276
|
+
`Running publish command "${command}" in current working directory: "${cwd}" `
|
|
277
|
+
);
|
|
278
|
+
const result = execSync(command, {
|
|
279
|
+
cwd,
|
|
280
|
+
env: {
|
|
281
|
+
NPM_ID_TOKEN: token,
|
|
282
|
+
...process.env,
|
|
283
|
+
FORCE_COLOR: "true"
|
|
284
|
+
},
|
|
285
|
+
maxBuffer: LARGE_BUFFER,
|
|
286
|
+
killSignal: "SIGTERM"
|
|
287
|
+
});
|
|
288
|
+
if (isDryRun) {
|
|
289
|
+
console.info(
|
|
290
|
+
`Would publish tag "${tag}" to ${registry}, but [dry-run] was set. ${result ? `
|
|
291
|
+
|
|
292
|
+
Execution response: ${result.toString()}` : ""}`
|
|
293
|
+
);
|
|
294
|
+
} else {
|
|
295
|
+
console.info(
|
|
296
|
+
`Published tag "${tag}" to ${registry}. ${result ? `
|
|
297
|
+
|
|
298
|
+
Execution response: ${result.toString()}` : ""}`
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
return { success: true };
|
|
302
|
+
} catch (err) {
|
|
303
|
+
try {
|
|
304
|
+
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
305
|
+
const errorMessage = `An error occurred while publishing the npm package:
|
|
306
|
+
|
|
307
|
+
${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
|
|
308
|
+
` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
|
|
309
|
+
` : ""}`;
|
|
310
|
+
github.error(errorMessage);
|
|
311
|
+
return { success: false };
|
|
312
|
+
} catch (err2) {
|
|
313
|
+
const errorMessage = `Something unexpected went wrong when processing the npm publish output.
|
|
314
|
+
|
|
315
|
+
Error: ${JSON.stringify(
|
|
316
|
+
Buffer.isBuffer(err2) ? err2.toString() : err2,
|
|
317
|
+
null,
|
|
318
|
+
2
|
|
319
|
+
)}`;
|
|
320
|
+
github.error(errorMessage);
|
|
321
|
+
return { success: false };
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export {
|
|
327
|
+
npmPublishExecutorFn
|
|
328
|
+
};
|
package/dist/executors.mjs
CHANGED
package/dist/generators.mjs
CHANGED
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-437WGH2M.mjs";
|
|
5
5
|
import {
|
|
6
6
|
neutralLibraryGeneratorFn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B5AN2AWV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
nodeLibraryGeneratorFn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OO55MK26.mjs";
|
|
11
11
|
import {
|
|
12
12
|
presetGeneratorFn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WRGPNWX5.mjs";
|
|
14
14
|
import {
|
|
15
15
|
browserLibraryGeneratorFn
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NIMFK635.mjs";
|
|
17
17
|
import {
|
|
18
18
|
configSchemaGeneratorFn
|
|
19
19
|
} from "./chunk-EYIUJSGD.mjs";
|
|
@@ -27,7 +27,7 @@ import "./chunk-I4KVL3GR.mjs";
|
|
|
27
27
|
import "./chunk-45CW7OJB.mjs";
|
|
28
28
|
import "./chunk-JUJWJXED.mjs";
|
|
29
29
|
import "./chunk-TBW5MCN6.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-24ZSBW55.mjs";
|
|
31
31
|
export {
|
|
32
32
|
browserLibraryGeneratorFn,
|
|
33
33
|
configSchemaGeneratorFn,
|
package/dist/index.mjs
CHANGED
|
@@ -113,16 +113,16 @@ import {
|
|
|
113
113
|
} from "./chunk-437WGH2M.mjs";
|
|
114
114
|
import {
|
|
115
115
|
neutralLibraryGeneratorFn
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-B5AN2AWV.mjs";
|
|
117
117
|
import {
|
|
118
118
|
nodeLibraryGeneratorFn
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-OO55MK26.mjs";
|
|
120
120
|
import {
|
|
121
121
|
presetGeneratorFn
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-WRGPNWX5.mjs";
|
|
123
123
|
import {
|
|
124
124
|
browserLibraryGeneratorFn
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-NIMFK635.mjs";
|
|
126
126
|
import {
|
|
127
127
|
configSchemaGeneratorFn
|
|
128
128
|
} from "./chunk-EYIUJSGD.mjs";
|
|
@@ -210,7 +210,7 @@ import "./chunk-TBW5MCN6.mjs";
|
|
|
210
210
|
import {
|
|
211
211
|
base_generator_untyped_default
|
|
212
212
|
} from "./chunk-34LSWMWV.mjs";
|
|
213
|
-
import "./chunk-
|
|
213
|
+
import "./chunk-24ZSBW55.mjs";
|
|
214
214
|
export {
|
|
215
215
|
BUN_LOCK_FILE,
|
|
216
216
|
BUN_LOCK_PATH,
|
package/dist/src/base/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import "../../chunk-TBW5MCN6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
base_generator_untyped_default
|
|
35
35
|
} from "../../chunk-34LSWMWV.mjs";
|
|
36
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-24ZSBW55.mjs";
|
|
37
37
|
export {
|
|
38
38
|
base_executor_untyped_default as baseExecutorSchema,
|
|
39
39
|
base_generator_untyped_default as baseGeneratorSchema,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
typescript_build_executor_untyped_default
|
|
3
3
|
} from "../../chunk-LZ3H2OH5.mjs";
|
|
4
4
|
import "../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-24ZSBW55.mjs";
|
|
6
6
|
export {
|
|
7
7
|
typescript_build_executor_untyped_default as default
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
typescript_library_generator_untyped_default
|
|
3
3
|
} from "../../chunk-SW2E5MQJ.mjs";
|
|
4
4
|
import "../../chunk-34LSWMWV.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-24ZSBW55.mjs";
|
|
6
6
|
export {
|
|
7
7
|
typescript_library_generator_untyped_default as default
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
10
10
|
import "../../../chunk-45CW7OJB.mjs";
|
|
11
11
|
import "../../../chunk-JUJWJXED.mjs";
|
|
12
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
export {
|
|
15
15
|
cargoBuildExecutor,
|
|
16
16
|
executor_default as default
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-build/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
10
10
|
import "../../../chunk-45CW7OJB.mjs";
|
|
11
11
|
import "../../../chunk-JUJWJXED.mjs";
|
|
12
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
export {
|
|
15
15
|
cargoCheckExecutor,
|
|
16
16
|
executor_default as default
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-check/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
10
10
|
import "../../../chunk-45CW7OJB.mjs";
|
|
11
11
|
import "../../../chunk-JUJWJXED.mjs";
|
|
12
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
export {
|
|
15
15
|
cargoClippyExecutor,
|
|
16
16
|
executor_default as default
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-clippy/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
10
10
|
import "../../../chunk-45CW7OJB.mjs";
|
|
11
11
|
import "../../../chunk-JUJWJXED.mjs";
|
|
12
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
export {
|
|
15
15
|
cargoDocExecutor,
|
|
16
16
|
executor_default as default
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-doc/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
10
10
|
import "../../../chunk-45CW7OJB.mjs";
|
|
11
11
|
import "../../../chunk-JUJWJXED.mjs";
|
|
12
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
export {
|
|
15
15
|
cargoFormatExecutor,
|
|
16
16
|
executor_default as default
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-format/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../../../chunk-QQ64FCAP.mjs";
|
|
5
5
|
import "../../../chunk-UA33NH5O.mjs";
|
|
6
6
|
import "../../../chunk-45CW7OJB.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
8
8
|
export {
|
|
9
9
|
runExecutor as default,
|
|
10
10
|
getRegistryVersion
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cargo_base_executor_untyped_default
|
|
3
3
|
} from "../../../chunk-QQB6GFYM.mjs";
|
|
4
4
|
import "../../../chunk-ZCTECGQS.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
6
6
|
|
|
7
7
|
// src/executors/cargo-publish/untyped.ts
|
|
8
8
|
import { defineUntypedSchema } from "untyped";
|
|
@@ -10,7 +10,7 @@ import "../../../chunk-JUJWJXED.mjs";
|
|
|
10
10
|
import {
|
|
11
11
|
joinPaths
|
|
12
12
|
} from "../../../chunk-TBW5MCN6.mjs";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
14
14
|
|
|
15
15
|
// src/executors/clean-package/executor.ts
|
|
16
16
|
import { joinPathFragments } from "@nx/devkit";
|
|
@@ -8,7 +8,7 @@ import "../../../chunk-I4KVL3GR.mjs";
|
|
|
8
8
|
import "../../../chunk-45CW7OJB.mjs";
|
|
9
9
|
import "../../../chunk-JUJWJXED.mjs";
|
|
10
10
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-24ZSBW55.mjs";
|
|
12
12
|
export {
|
|
13
13
|
executor_default as default,
|
|
14
14
|
esbuildExecutorFn
|