@stencil/cli 5.0.0-alpha.19 → 5.0.0-alpha.20
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 +15 -7
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -882,14 +882,15 @@ const KNOWN_INTEGRATIONS = [
|
|
|
882
882
|
{
|
|
883
883
|
package: "@stencil/eslint-plugin",
|
|
884
884
|
displayName: "ESLint Plugin",
|
|
885
|
-
description: "Stencil-aware lint rules (ESLint
|
|
886
|
-
group: "
|
|
885
|
+
description: "Stencil-aware lint rules (ESLint or oxlint)",
|
|
886
|
+
group: "Tooling"
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
package: "@stencil/storybook-plugin",
|
|
890
890
|
displayName: "Storybook",
|
|
891
891
|
description: "Component development & documentation",
|
|
892
|
-
group: "Tooling"
|
|
892
|
+
group: "Tooling",
|
|
893
|
+
versionRange: ">=1.0.0-0"
|
|
893
894
|
},
|
|
894
895
|
{
|
|
895
896
|
package: "@stencil/types-output-target",
|
|
@@ -923,6 +924,13 @@ const KNOWN_INTEGRATIONS = [
|
|
|
923
924
|
needsWorkspace: true
|
|
924
925
|
}
|
|
925
926
|
];
|
|
927
|
+
const versionRangeByPackage = new Map(KNOWN_INTEGRATIONS.filter((i) => i.versionRange).map((i) => [i.package, i.versionRange]));
|
|
928
|
+
function withVersionRanges(packages) {
|
|
929
|
+
return packages.map((pkg) => {
|
|
930
|
+
const range = versionRangeByPackage.get(pkg);
|
|
931
|
+
return range ? `${pkg}@${range}` : pkg;
|
|
932
|
+
});
|
|
933
|
+
}
|
|
926
934
|
async function promptOutputs() {
|
|
927
935
|
const picks = await p.multiselect({
|
|
928
936
|
message: "Outputs:",
|
|
@@ -1185,7 +1193,7 @@ async function isExistingStencilProject(dir) {
|
|
|
1185
1193
|
}
|
|
1186
1194
|
//#endregion
|
|
1187
1195
|
//#region src/wizard/splash.ts
|
|
1188
|
-
const CLI_VERSION = "5.0.0-alpha.
|
|
1196
|
+
const CLI_VERSION = "5.0.0-alpha.20";
|
|
1189
1197
|
const isTTY = process.stdout.isTTY;
|
|
1190
1198
|
const noColor = !isTTY || "NO_COLOR" in process.env;
|
|
1191
1199
|
const RESET = noColor ? "" : "\x1B[0m";
|
|
@@ -1285,7 +1293,7 @@ async function taskAdd(packages, strictConfig) {
|
|
|
1285
1293
|
else {
|
|
1286
1294
|
const s = p.spinner();
|
|
1287
1295
|
s.start(`Installing ${packagesToInstall.join(", ")}`);
|
|
1288
|
-
await addDevDependency(packagesToInstall, {
|
|
1296
|
+
await addDevDependency(withVersionRanges(packagesToInstall), {
|
|
1289
1297
|
cwd,
|
|
1290
1298
|
silent: true
|
|
1291
1299
|
});
|
|
@@ -4004,7 +4012,7 @@ async function taskInit(coreCompiler, strictConfig, loadProjectConfig) {
|
|
|
4004
4012
|
const s3 = p.spinner();
|
|
4005
4013
|
const pkgs = selectedIntegrations.map((i) => i.package);
|
|
4006
4014
|
s3.start(`Installing ${pkgs.join(", ")}`);
|
|
4007
|
-
await addDevDependency(pkgs, {
|
|
4015
|
+
await addDevDependency(withVersionRanges(pkgs), {
|
|
4008
4016
|
cwd: coreDir,
|
|
4009
4017
|
silent: true
|
|
4010
4018
|
});
|
|
@@ -4068,7 +4076,7 @@ async function addCapabilities(cwd, strictConfig) {
|
|
|
4068
4076
|
const s = p.spinner();
|
|
4069
4077
|
const pkgs = toInstall.map((i) => i.package);
|
|
4070
4078
|
s.start(`Installing ${pkgs.join(", ")}`);
|
|
4071
|
-
await addDevDependency(pkgs, {
|
|
4079
|
+
await addDevDependency(withVersionRanges(pkgs), {
|
|
4072
4080
|
cwd,
|
|
4073
4081
|
silent: true
|
|
4074
4082
|
});
|
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.20",
|
|
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/
|
|
45
|
-
"@stencil/
|
|
44
|
+
"@stencil/dev-server": "5.0.0-alpha.20",
|
|
45
|
+
"@stencil/templates": "5.0.0-alpha.20"
|
|
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.
|
|
50
|
+
"@stencil/core": "5.0.0-alpha.20"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@stencil/core": "^5.0.0-0"
|