@sparkelf/dsh-plus 0.2.2-alpha.2.2 → 0.2.2-alpha.2.3
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/lib/bin.js +2 -1
- package/lib/types/standalone-profile.js +12 -3
- package/package.json +10 -10
package/lib/bin.js
CHANGED
|
@@ -1009,6 +1009,7 @@ function installProfilePackages(paths, consumerDirectory) {
|
|
|
1009
1009
|
function installWithRegistryFallback(paths) {
|
|
1010
1010
|
const registries = registryOrder();
|
|
1011
1011
|
for (const [index, registry] of registries.entries()) {
|
|
1012
|
+
if (index > 0) rmSync(join(paths.profileDirectory, "pnpm-lock.yaml"), { force: true });
|
|
1012
1013
|
const result = spawnSync("pnpm", [
|
|
1013
1014
|
"install",
|
|
1014
1015
|
"--no-frozen-lockfile",
|
|
@@ -1077,7 +1078,7 @@ const MAINLAND_REGISTRY = "https://registry.npmmirror.com";
|
|
|
1077
1078
|
*/
|
|
1078
1079
|
function registryOrder() {
|
|
1079
1080
|
const configured = process.env.DSH_PLUS_INSTALL_REGISTRY;
|
|
1080
|
-
if (configured !== void 0 && configured !== "") return [configured, MAINLAND_REGISTRY];
|
|
1081
|
+
if (configured !== void 0 && configured !== "") return [configured, configured === MAINLAND_REGISTRY ? OFFICIAL_REGISTRY : MAINLAND_REGISTRY];
|
|
1081
1082
|
const locale = [
|
|
1082
1083
|
process.env.LANG,
|
|
1083
1084
|
process.env.LC_ALL,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* bundle's own list.
|
|
10
10
|
*/
|
|
11
11
|
import { spawnSync } from 'node:child_process';
|
|
12
|
-
import { existsSync, mkdirSync, readdirSync, readFileSync, renameSync, symlinkSync, writeFileSync } from 'node:fs';
|
|
12
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, symlinkSync, writeFileSync } from 'node:fs';
|
|
13
13
|
import { createRequire } from 'node:module';
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
15
15
|
import { homedir } from 'node:os';
|
|
@@ -276,6 +276,11 @@ export function installProfilePackages(paths, consumerDirectory) {
|
|
|
276
276
|
function installWithRegistryFallback(paths) {
|
|
277
277
|
const registries = registryOrder();
|
|
278
278
|
for (const [index, registry] of registries.entries()) {
|
|
279
|
+
// A lockfile written against the previous registry keeps its resolved URLs, so the
|
|
280
|
+
// second attempt would fetch from the registry that just failed. Drop it and resolve
|
|
281
|
+
// against the registry being tried.
|
|
282
|
+
if (index > 0)
|
|
283
|
+
rmSync(join(paths.profileDirectory, 'pnpm-lock.yaml'), { force: true });
|
|
279
284
|
const result = spawnSync('pnpm', ['install', '--no-frozen-lockfile', '--registry', registry], {
|
|
280
285
|
cwd: paths.profileDirectory,
|
|
281
286
|
stdio: 'inherit',
|
|
@@ -345,8 +350,12 @@ const MAINLAND_REGISTRY = 'https://registry.npmmirror.com';
|
|
|
345
350
|
*/
|
|
346
351
|
export function registryOrder() {
|
|
347
352
|
const configured = process.env.DSH_PLUS_INSTALL_REGISTRY;
|
|
348
|
-
if (configured !== undefined && configured !== '')
|
|
349
|
-
|
|
353
|
+
if (configured !== undefined && configured !== '') {
|
|
354
|
+
// The fallback must be the other registry, not the configured one again: an override
|
|
355
|
+
// set to the mirror used to fall back to the same mirror and fail twice.
|
|
356
|
+
const fallback = configured === MAINLAND_REGISTRY ? OFFICIAL_REGISTRY : MAINLAND_REGISTRY;
|
|
357
|
+
return [configured, fallback];
|
|
358
|
+
}
|
|
350
359
|
// Intl reports the system locale on every platform. The POSIX variables are empty on
|
|
351
360
|
// Windows, so reading them alone classified every Windows console as non-mainland and
|
|
352
361
|
// reached the origin first — measured in a consumer's log, which showed npmjs failing
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-plus",
|
|
3
3
|
"description": "DeepSeek Harness Plus official-base Web distribution profile and ranged compatibility patchset",
|
|
4
|
-
"version": "0.2.2-alpha.2.
|
|
4
|
+
"version": "0.2.2-alpha.2.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -556,12 +556,12 @@
|
|
|
556
556
|
"@sparkelf/dsh-mineru",
|
|
557
557
|
"@sparkelf/dsh-officecli",
|
|
558
558
|
"dshmarket",
|
|
559
|
-
"dsh-better-sidebar",
|
|
559
|
+
"@sparkelf/dsh-better-sidebar",
|
|
560
560
|
"@sparkelf/dsh-office-viewer-fonts",
|
|
561
561
|
"dsh-video-preview",
|
|
562
562
|
"@sparkelf/dsh-genui",
|
|
563
563
|
"@sparkelf/dsh-plugin-supervisor",
|
|
564
|
-
"dsh-sql-workbench",
|
|
564
|
+
"@sparkelf/dsh-sql-workbench",
|
|
565
565
|
"@sparkelf/dsh-ssh-manager",
|
|
566
566
|
"@sparkelf/dsh-api-client",
|
|
567
567
|
"dsh-right-bg-anim",
|
|
@@ -573,18 +573,18 @@
|
|
|
573
573
|
"@sparkelf/dsh-mineru": "0.1.4",
|
|
574
574
|
"@sparkelf/dsh-officecli": "0.1.4",
|
|
575
575
|
"@sparkelf/dsh-plugin-supervisor": "0.1.9",
|
|
576
|
-
"dsh-sql-workbench": "0.5.3",
|
|
577
576
|
"@sparkelf/dsh-workbench-vault": "0.1.2",
|
|
578
|
-
"@sparkelf/dsh-ssh-manager": "0.7.
|
|
577
|
+
"@sparkelf/dsh-ssh-manager": "0.7.5",
|
|
579
578
|
"@sparkelf/dsh-api-client": "0.5.3",
|
|
580
|
-
"dsh-
|
|
581
|
-
"@sparkelf/dsh-office-viewer-fonts": "0.1.5",
|
|
579
|
+
"@sparkelf/dsh-office-viewer-fonts": "0.1.6",
|
|
582
580
|
"dsh-video-preview": "0.1.4",
|
|
583
581
|
"dsh-right-bg-anim": "1.1.0",
|
|
584
582
|
"@sparkelf/dsh-mobile-bridge": "0.2.18",
|
|
585
583
|
"@sparkelf/dsh-quant": "0.91.0-sparkelf.13",
|
|
586
|
-
"@sparkelf/dsh-genui": "0.
|
|
587
|
-
"@sparkelf/dsh-client-ui-diagram-viewer": "0.2.1-alpha.28"
|
|
584
|
+
"@sparkelf/dsh-genui": "0.15.0-sparkelf.1",
|
|
585
|
+
"@sparkelf/dsh-client-ui-diagram-viewer": "0.2.1-alpha.28",
|
|
586
|
+
"@sparkelf/dsh-sql-workbench": "0.5.4-sparkelf.1",
|
|
587
|
+
"@sparkelf/dsh-better-sidebar": "0.29.0-sparkelf.2"
|
|
588
588
|
}
|
|
589
589
|
},
|
|
590
590
|
"team": {
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
"@sparkelf/dsh-kb-citation": "0.1.3",
|
|
633
633
|
"@sparkelf/dsh-ocr": "0.1.0",
|
|
634
634
|
"@sparkelf/dsh-query-result-analysis": "0.1.4",
|
|
635
|
-
"@sparkelf/dsh-better-sidebar": "0.
|
|
635
|
+
"@sparkelf/dsh-better-sidebar": "0.29.0-sparkelf.2",
|
|
636
636
|
"dsh-video-preview": "0.1.4",
|
|
637
637
|
"@sparkelf/dsh-sql-workbench": "0.5.4-sparkelf.1"
|
|
638
638
|
}
|