@sfmc-bds/cli 0.2.0-beta.10 → 0.2.0-beta.12
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/LICENSE +663 -0
- package/dist/command-surface.test.js +92 -0
- package/dist/command-surface.test.js.map +7 -0
- package/dist/commands.d.ts +57 -4
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js.map +2 -2
- package/dist/debug-command.test.js +76 -0
- package/dist/debug-command.test.js.map +7 -0
- package/dist/directory-picker.d.ts +27 -0
- package/dist/directory-picker.d.ts.map +1 -0
- package/dist/directory-picker.js +112 -0
- package/dist/directory-picker.js.map +7 -0
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/en.js.map +2 -2
- package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN.js +1 -0
- package/dist/i18n/locales/zh-CN.js.map +2 -2
- package/dist/interactive-prompts.d.ts +1 -2
- package/dist/interactive-prompts.d.ts.map +1 -1
- package/dist/interactive-prompts.js +12 -23
- package/dist/interactive-prompts.js.map +3 -3
- package/dist/log-filter.test.js +119 -0
- package/dist/log-filter.test.js.map +7 -0
- package/dist/module-commands.d.ts.map +1 -1
- package/dist/module-commands.js +6 -3
- package/dist/module-commands.js.map +2 -2
- package/dist/module-pack-build.js.map +1 -1
- package/dist/module-toggle.d.ts +1 -1
- package/dist/module-toggle.d.ts.map +1 -1
- package/dist/module-toggle.js.map +1 -1
- package/dist/module-toggle.test.js +37 -0
- package/dist/module-toggle.test.js.map +7 -0
- package/dist/pack-lifecycle.js +1 -1
- package/dist/pack-lifecycle.js.map +2 -2
- package/dist/services.d.ts +14 -0
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js.map +2 -2
- package/dist/wizard.d.ts.map +1 -1
- package/dist/wizard.js +20 -22
- package/dist/wizard.js.map +2 -2
- package/dist/world-packs-uninstall.test.js +54 -0
- package/dist/world-packs-uninstall.test.js.map +7 -0
- package/package.json +14 -12
- package/scripts/module-install/check-modules.mjs +10 -76
- package/scripts/module-install/lib/catalog.mjs +1 -1
- package/scripts/module-install/lib/lock.mjs +2 -2
- package/scripts/module-install/lib/packages.mjs +16 -22
- package/scripts/module-install/{install-resolver.test.mjs → test/install-resolver.test.ts} +4 -5
- package/scripts/module-install/{link-local.test.mjs → test/link-local.test.ts} +4 -5
- package/scripts/module-install/{local-resolver.test.mjs → test/local-resolver.test.ts} +5 -12
- package/scripts/module-install/{registry-index.test.mjs → test/registry-index.test.ts} +5 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
// @ts-check
|
|
2
1
|
import assert from "node:assert/strict";
|
|
3
2
|
import test from "node:test";
|
|
4
|
-
import { parseRegistryIndex } from "
|
|
3
|
+
import { parseRegistryIndex } from "../lib/registry-index.mjs";
|
|
5
4
|
|
|
6
5
|
test("接受 npm 条目", () => {
|
|
7
6
|
const idx = parseRegistryIndex({
|
|
@@ -10,16 +9,16 @@ test("接受 npm 条目", () => {
|
|
|
10
9
|
land: { npm: "@sfmc-bds/module-land", version: "1.0.0", sdk: ">=0.2.0" },
|
|
11
10
|
},
|
|
12
11
|
});
|
|
13
|
-
assert.equal(idx.land
|
|
14
|
-
assert.equal(idx.land
|
|
12
|
+
assert.equal(idx.land?.npm, "@sfmc-bds/module-land");
|
|
13
|
+
assert.equal(idx.land?.version, "1.0.0");
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
test("仍接受 repo+tag", () => {
|
|
18
17
|
const idx = parseRegistryIndex({
|
|
19
18
|
modules: { afk: { repo: "Tanya7z/sfmc-modules", tag: "modules-v0.4.0" } },
|
|
20
19
|
});
|
|
21
|
-
assert.equal(idx.afk
|
|
22
|
-
assert.equal(idx.afk
|
|
20
|
+
assert.equal(idx.afk?.repo, "Tanya7z/sfmc-modules");
|
|
21
|
+
assert.equal(idx.afk?.tag, "modules-v0.4.0");
|
|
23
22
|
});
|
|
24
23
|
|
|
25
24
|
test("既无 npm 也无 repo 则跳过", () => {
|