@stencil/cli 5.0.0-beta.33 → 5.0.0-beta.35

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -1
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1263,7 +1263,7 @@ function clearInheritedProductionEnv() {
1263
1263
  }
1264
1264
  //#endregion
1265
1265
  //#region src/wizard/splash.ts
1266
- const CLI_VERSION = "5.0.0-beta.33";
1266
+ const CLI_VERSION = "5.0.0-beta.35";
1267
1267
  const isTTY = process.stdout.isTTY;
1268
1268
  const noColor = !isTTY || "NO_COLOR" in process.env;
1269
1269
  const RESET = noColor ? "" : "\x1B[0m";
@@ -3345,6 +3345,10 @@ const taskBuild = async (coreCompiler, config, flags) => {
3345
3345
  /**
3346
3346
  * Prompt the user about available migrations.
3347
3347
  * Shows what migrations are available and lets them choose to run them.
3348
+ *
3349
+ * Without someone to answer (in CI, or when stdin isn't a terminal) it doesn't prompt: it says
3350
+ * how to apply the migrations and returns `'exit'`, so the build fails instead of waiting
3351
+ * forever on a prompt, or ending with exit code 0 when stdin closes.
3348
3352
  * @param config the Stencil config
3349
3353
  * @param migrationResult the result of migration detection with available migrations
3350
3354
  * @param context whether this is a pre-build check or post-error check
@@ -3363,6 +3367,10 @@ async function promptForMigration(config, migrationResult, context) {
3363
3367
  logger.info("");
3364
3368
  if (context === "pre-build") logger.info("Your config contains deprecated options that must be migrated before building.");
3365
3369
  else logger.info("These migrations may help resolve the build errors above.");
3370
+ if (isCI || !process.stdin.isTTY) {
3371
+ logger.info(`Run ${logger.cyan("stencil migrate")} to apply them (or ${logger.cyan("stencil migrate --dry-run")} to preview the changes), then build again.`);
3372
+ return "exit";
3373
+ }
3366
3374
  const action = await select({
3367
3375
  message: "What would you like to do?",
3368
3376
  options: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/cli",
3
- "version": "5.0.0-beta.33",
3
+ "version": "5.0.0-beta.35",
4
4
  "description": "CLI for Stencil - Web component compiler",
5
5
  "keywords": [
6
6
  "components",
@@ -42,16 +42,16 @@
42
42
  "nypm": "^0.3.12",
43
43
  "std-env": "^3.10.0",
44
44
  "typescript": ">5.0.0 <7.0.0",
45
- "@stencil/templates": "5.0.0-beta.33",
46
- "@stencil/dev-server": "5.0.0-beta.33"
45
+ "@stencil/dev-server": "5.0.0-beta.35",
46
+ "@stencil/templates": "5.0.0-beta.35"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsdown": "^0.22.14",
50
50
  "vitest": "^4.1.10",
51
- "@stencil/core": "5.0.0-beta.33"
51
+ "@stencil/core": "5.0.0-beta.35"
52
52
  },
53
53
  "peerDependencies": {
54
- "@stencil/core": "^5.0.0 || 5.0.0-beta.33"
54
+ "@stencil/core": "^5.0.0 || 5.0.0-beta.35"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=22.0.0"