@stencil/cli 5.0.0-alpha.11 → 5.0.0-alpha.12

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 +5 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1029,7 +1029,7 @@ async function isExistingStencilProject(dir) {
1029
1029
  }
1030
1030
  //#endregion
1031
1031
  //#region src/wizard/splash.ts
1032
- const CLI_VERSION = "5.0.0-alpha.11";
1032
+ const CLI_VERSION = "5.0.0-alpha.12";
1033
1033
  const isTTY = process.stdout.isTTY;
1034
1034
  const noColor = !isTTY || "NO_COLOR" in process.env;
1035
1035
  const RESET = noColor ? "" : "\x1B[0m";
@@ -3985,13 +3985,15 @@ const run = async (init) => {
3985
3985
  if (task === "add") await taskAdd(flags.unknownArgs, strictConfig);
3986
3986
  else {
3987
3987
  const loadProjectConfig = async (configPath) => {
3988
+ const derivedRootDir = configPath ? dirname(configPath) : rootDir;
3988
3989
  const loaded = await coreCompiler.loadConfig({
3989
- config: { rootDir: configPath ? dirname(configPath) : rootDir },
3990
+ config: { rootDir: derivedRootDir },
3990
3991
  configPath,
3991
3992
  logger,
3992
3993
  sys
3993
3994
  });
3994
- return coreCompiler.validateConfig(loaded.config, {}).config;
3995
+ if (loaded.diagnostics.length > 0) logger.printDiagnostics(loaded.diagnostics);
3996
+ return coreCompiler.validateConfig(loaded.config ?? { rootDir: derivedRootDir }, {}).config;
3995
3997
  };
3996
3998
  await taskInit(coreCompiler, strictConfig, loadProjectConfig);
3997
3999
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/cli",
3
- "version": "5.0.0-alpha.11",
3
+ "version": "5.0.0-alpha.12",
4
4
  "description": "CLI for Stencil - Web component compiler",
5
5
  "keywords": [
6
6
  "components",
@@ -41,13 +41,13 @@
41
41
  "nypm": "^0.3.12",
42
42
  "std-env": "^3.8.0",
43
43
  "typescript": ">4.0.0 <7.0.0",
44
- "@stencil/dev-server": "5.0.0-alpha.11",
45
- "@stencil/templates": "5.0.0-alpha.11"
44
+ "@stencil/dev-server": "5.0.0-alpha.12",
45
+ "@stencil/templates": "5.0.0-alpha.12"
46
46
  },
47
47
  "devDependencies": {
48
48
  "tsdown": ">=0.21.0 <1.0.0",
49
49
  "vitest": "^4.1.7",
50
- "@stencil/core": "5.0.0-alpha.11"
50
+ "@stencil/core": "5.0.0-alpha.12"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@stencil/core": "^5.0.0-0"