@ucdjs/release-scripts 0.1.0-beta.49 → 0.1.0-beta.50

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/index.d.mts CHANGED
@@ -30,7 +30,6 @@ interface ReleaseScriptsOptionsInput {
30
30
  otp?: string;
31
31
  provenance?: boolean;
32
32
  access?: "public" | "restricted";
33
- runBuild?: boolean;
34
33
  };
35
34
  prompts?: {
36
35
  versions?: boolean;
package/dist/index.mjs CHANGED
@@ -480,8 +480,7 @@ function normalizeReleaseScriptsOptions(options) {
480
480
  npm: {
481
481
  otp: npm.otp,
482
482
  provenance: npm.provenance ?? true,
483
- access: npm.access ?? "public",
484
- runBuild: npm.runBuild ?? true
483
+ access: npm.access ?? "public"
485
484
  },
486
485
  prompts: {
487
486
  versions: prompts.versions ?? !isCI,
@@ -2165,29 +2164,6 @@ async function checkVersionExists(packageName, version) {
2165
2164
  return ok(version in metadataResult.value.versions);
2166
2165
  }
2167
2166
  /**
2168
- * Build a package before publishing
2169
- * @param packageName - The package name to build
2170
- * @param workspaceRoot - Path to the workspace root
2171
- * @param options - Normalized release scripts options
2172
- * @returns Result indicating success or failure
2173
- */
2174
- async function buildPackage(packageName, workspaceRoot, options) {
2175
- if (!options.npm.runBuild) return ok(void 0);
2176
- try {
2177
- await runIfNotDry("pnpm", [
2178
- "--filter",
2179
- packageName,
2180
- "build"
2181
- ], { nodeOptions: {
2182
- cwd: workspaceRoot,
2183
- stdio: "inherit"
2184
- } });
2185
- return ok(void 0);
2186
- } catch (error) {
2187
- return err(toNPMError("buildPackage", error));
2188
- }
2189
- }
2190
- /**
2191
2167
  * Publish a package to NPM
2192
2168
  * Uses pnpm to handle workspace protocol and catalog: resolution automatically
2193
2169
  * @param packageName - The package name to publish
@@ -2269,15 +2245,6 @@ async function publishWorkflow(options) {
2269
2245
  status.skipped.push(packageName);
2270
2246
  continue;
2271
2247
  }
2272
- if (options.npm.runBuild) {
2273
- logger.step(`Building ${farver.cyan(packageName)}...`);
2274
- const buildResult = await buildPackage(packageName, options.workspaceRoot, options);
2275
- if (!buildResult.ok) {
2276
- logger.error(`Failed to build package: ${buildResult.error.message}`);
2277
- status.failed.push(packageName);
2278
- exitWithError(`Publishing failed for ${packageName}: build failed`, "Check your build scripts and dependencies", buildResult.error);
2279
- }
2280
- }
2281
2248
  logger.step(`Publishing ${farver.cyan(`${packageName}@${version}`)} to NPM...`);
2282
2249
  const publishResult = await publishPackage(packageName, version, options.workspaceRoot, options);
2283
2250
  if (!publishResult.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdjs/release-scripts",
3
- "version": "0.1.0-beta.49",
3
+ "version": "0.1.0-beta.50",
4
4
  "description": "@ucdjs release scripts",
5
5
  "type": "module",
6
6
  "license": "MIT",