@chrisluyi/daas-cli 1.6.0 → 1.6.1
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.js +30 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2445,7 +2445,7 @@ function stripScope(name) {
|
|
|
2445
2445
|
return name.replace(/^@[^/]+\//, "").replace(/-/g, "_");
|
|
2446
2446
|
}
|
|
2447
2447
|
// package.json
|
|
2448
|
-
var version = "1.6.
|
|
2448
|
+
var version = "1.6.1";
|
|
2449
2449
|
|
|
2450
2450
|
// src/version.ts
|
|
2451
2451
|
function getCliVersion() {
|
|
@@ -3696,7 +3696,35 @@ function renderRegionTsconfig(cwd, cfg, selectorArg) {
|
|
|
3696
3696
|
}));
|
|
3697
3697
|
const tsconfigDir = resolve9(cwd, cfg.tsconfig, "..");
|
|
3698
3698
|
const toRel = (p) => relative2(tsconfigDir, resolve9(cwd, p));
|
|
3699
|
-
const
|
|
3699
|
+
const nonSelected = regions.filter((r4) => r4 !== sel.region);
|
|
3700
|
+
const exclude = nonSelected.map((r4) => toRel(`${cfg.regionsDir}/${r4}`));
|
|
3701
|
+
const regionsDirAbs = resolve9(cwd, cfg.regionsDir);
|
|
3702
|
+
const aliasTreeRoots = new Set;
|
|
3703
|
+
for (const value of Object.values(aliases)) {
|
|
3704
|
+
if (!value.includes("{region}"))
|
|
3705
|
+
continue;
|
|
3706
|
+
let prefix = value.slice(0, value.indexOf("{region}"));
|
|
3707
|
+
let resolvable = true;
|
|
3708
|
+
for (const [ph, v3] of Object.entries(substitutions)) {
|
|
3709
|
+
if (ph === "{region}" || !prefix.includes(ph))
|
|
3710
|
+
continue;
|
|
3711
|
+
if (v3 === undefined) {
|
|
3712
|
+
resolvable = false;
|
|
3713
|
+
break;
|
|
3714
|
+
}
|
|
3715
|
+
prefix = prefix.replaceAll(ph, v3);
|
|
3716
|
+
}
|
|
3717
|
+
if (!resolvable)
|
|
3718
|
+
continue;
|
|
3719
|
+
const rootAbs = resolve9(tsconfigDir, prefix);
|
|
3720
|
+
if (rootAbs !== regionsDirAbs)
|
|
3721
|
+
aliasTreeRoots.add(rootAbs);
|
|
3722
|
+
}
|
|
3723
|
+
for (const rootAbs of aliasTreeRoots) {
|
|
3724
|
+
for (const r4 of nonSelected) {
|
|
3725
|
+
exclude.push(relative2(tsconfigDir, resolve9(rootAbs, r4)));
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3700
3728
|
const resolveDimDir = (template) => {
|
|
3701
3729
|
let out = template;
|
|
3702
3730
|
for (const [ph, value] of Object.entries(substitutions)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisluyi/daas-cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"daas": "./dist/index.js"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@clack/prompts": "^0.7.0",
|
|
24
24
|
"@chrisluyi/daas-logger": "1.1.1",
|
|
25
|
-
"@chrisluyi/daas-rsbuild-config": "1.6.
|
|
26
|
-
"@chrisluyi/daas-template": "1.6.
|
|
25
|
+
"@chrisluyi/daas-rsbuild-config": "1.6.1",
|
|
26
|
+
"@chrisluyi/daas-template": "1.6.1",
|
|
27
27
|
"@rsbuild/core": "*",
|
|
28
28
|
"citty": "^0.1.6",
|
|
29
29
|
"consola": "^3.2.3",
|