@stencil/cli 5.0.0-alpha.3 → 5.0.0-alpha.4
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.mjs +2 -2
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -824,6 +824,7 @@ const formAssociatedRule = {
|
|
|
824
824
|
/**
|
|
825
825
|
* Build a map of local import names to their original names from @stencil/core.
|
|
826
826
|
* Handles aliased imports like `import { Component as Cmp } from '@stencil/core'`.
|
|
827
|
+
* Also handles multiple imports from @stencil/core (e.g., separate type and value imports).
|
|
827
828
|
*
|
|
828
829
|
* @param sourceFile The TypeScript source file to analyze
|
|
829
830
|
* @returns Map where keys are local names and values are original imported names
|
|
@@ -837,7 +838,6 @@ const getStencilCoreImportMap = (sourceFile) => {
|
|
|
837
838
|
const originalName = element.propertyName?.text ?? element.name.text;
|
|
838
839
|
importMap.set(localName, originalName);
|
|
839
840
|
}
|
|
840
|
-
break;
|
|
841
841
|
}
|
|
842
842
|
return importMap;
|
|
843
843
|
};
|
|
@@ -1652,7 +1652,7 @@ async function promptForMigrationOnBuildError(config, migrationResult) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
logger.info("");
|
|
1654
1654
|
logger.info("These migrations may help resolve the build errors above.");
|
|
1655
|
-
const
|
|
1655
|
+
const prompt = (await import("prompts")).default;
|
|
1656
1656
|
const response = await prompt({
|
|
1657
1657
|
name: "action",
|
|
1658
1658
|
type: "select",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/cli",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.4",
|
|
4
4
|
"description": "CLI for Stencil - Web component compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -38,13 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"prompts": "^2.4.2",
|
|
41
|
-
"@stencil/dev-server": "5.0.0-alpha.
|
|
41
|
+
"@stencil/dev-server": "5.0.0-alpha.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@types/prompts": "^2.4.9",
|
|
44
45
|
"tsdown": "^0.21.6",
|
|
45
46
|
"typescript": "~6.0.2",
|
|
46
47
|
"vitest": "^4.1.1",
|
|
47
|
-
"@stencil/core": "5.0.0-alpha.
|
|
48
|
+
"@stencil/core": "5.0.0-alpha.4"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"@stencil/core": "^5.0.0-0"
|