auklet 0.0.28 → 0.0.29

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/cli/main.js CHANGED
@@ -90,6 +90,7 @@ export async function runAukletCli(argv = process.argv) {
90
90
  catch (error) {
91
91
  const logger = createAukletLogger({ scope: 'cli' });
92
92
  logger.error(error);
93
+ logger.newline();
93
94
  process.exit(1);
94
95
  }
95
96
  }
@@ -62,11 +62,13 @@ export async function runPnpmBuild(packageRoot) {
62
62
  }
63
63
  }
64
64
  export async function runPnpmPublish(packageRoot, args) {
65
+ const isDryRun = args.includes('--dry-run');
65
66
  const result = await runPnpm(['publish', ...args], {
66
67
  cwd: packageRoot,
67
- stdio: 'pipe',
68
+ stdio: isDryRun ? 'pipe' : 'inherit',
68
69
  });
69
- writeProcessOutput(result);
70
+ if (isDryRun)
71
+ writeProcessOutput(result);
70
72
  if (result.exitCode) {
71
73
  if (hasNpmAuthChallenge(result)) {
72
74
  throw new NpmPublishAuthenticationError(packageRoot);
@@ -60,7 +60,6 @@ export class PublishRunner {
60
60
  await this.preflight.run(plan);
61
61
  return;
62
62
  }
63
- await this.preflight.run(plan);
64
63
  await this.git.commitAndTag(plan);
65
64
  await this.publisher.run(plan);
66
65
  }
@@ -1,5 +1,7 @@
1
1
  import { createAukletLogger } from '#auklet/logger';
2
2
  export function reportPublishFailure(error, version) {
3
+ if (!error.publishedTargets.length)
4
+ return;
3
5
  const logger = createAukletLogger();
4
6
  const noteBody = logger.colors.rgb(184, 140, 40);
5
7
  const body = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auklet",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "author": "chentao.arthur",
6
6
  "description": "Build utilities for TypeScript packages and module CSS output.",