@sparkelf/dsh-plus 0.2.9-alpha.96 → 0.2.9-alpha.98
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 +4 -2
- package/lib/types/profile.js +9 -2
- package/package.json +2 -2
package/lib/bin.js
CHANGED
|
@@ -1004,8 +1004,10 @@ function alignOfficialVersions(profileDirectory, runtimeVersion, registry) {
|
|
|
1004
1004
|
const document = parseDocument(readFileSync(workspacePath, "utf8"));
|
|
1005
1005
|
let changed = 0;
|
|
1006
1006
|
for (const name of served) {
|
|
1007
|
-
|
|
1008
|
-
|
|
1007
|
+
const current = document.getIn(["overrides", name]);
|
|
1008
|
+
const replacement = typeof current === "string" && current.startsWith("npm:@sparkelf/") ? "npm:@sparkelf/" + name.slice(13) + "@" + runtimeVersion : runtimeVersion;
|
|
1009
|
+
if (current === replacement) continue;
|
|
1010
|
+
document.setIn(["overrides", name], replacement);
|
|
1009
1011
|
changed += 1;
|
|
1010
1012
|
}
|
|
1011
1013
|
if (changed === 0) return 0;
|
package/lib/types/profile.js
CHANGED
|
@@ -258,9 +258,16 @@ export function alignOfficialVersions(profileDirectory, runtimeVersion, registry
|
|
|
258
258
|
const document = parseDocument(readFileSync(workspacePath, 'utf8'));
|
|
259
259
|
let changed = 0;
|
|
260
260
|
for (const name of served) {
|
|
261
|
-
|
|
261
|
+
// A patched package must keep its @sparkelf replacement. Writing the plain official
|
|
262
|
+
// version here discards the redirect and installs the unpatched build, which then
|
|
263
|
+
// misses the exports the patch added.
|
|
264
|
+
const current = document.getIn(['overrides', name]);
|
|
265
|
+
const replacement = typeof current === 'string' && current.startsWith('npm:@sparkelf/')
|
|
266
|
+
? 'npm:@sparkelf/' + name.slice('@deepseek-ai/'.length) + '@' + runtimeVersion
|
|
267
|
+
: runtimeVersion;
|
|
268
|
+
if (current === replacement)
|
|
262
269
|
continue;
|
|
263
|
-
document.setIn(['overrides', name],
|
|
270
|
+
document.setIn(['overrides', name], replacement);
|
|
264
271
|
changed += 1;
|
|
265
272
|
}
|
|
266
273
|
if (changed === 0)
|
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.9-alpha.
|
|
4
|
+
"version": "0.2.9-alpha.98",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
],
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@sparkelf/dsh-mineru": "0.1.4",
|
|
83
|
-
"@sparkelf/dsh-officecli": "0.2.
|
|
83
|
+
"@sparkelf/dsh-officecli": "0.2.2",
|
|
84
84
|
"@sparkelf/dsh-plugin-supervisor": "0.1.10",
|
|
85
85
|
"dsh-sql-workbench": "npm:@sparkelf/dsh-sql-workbench@0.5.4-sparkelf.1",
|
|
86
86
|
"@sparkelf/dsh-workbench-vault": "0.1.2",
|