@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.
Files changed (53) hide show
  1. package/LICENSE +663 -0
  2. package/dist/command-surface.test.js +92 -0
  3. package/dist/command-surface.test.js.map +7 -0
  4. package/dist/commands.d.ts +57 -4
  5. package/dist/commands.d.ts.map +1 -1
  6. package/dist/commands.js.map +2 -2
  7. package/dist/debug-command.test.js +76 -0
  8. package/dist/debug-command.test.js.map +7 -0
  9. package/dist/directory-picker.d.ts +27 -0
  10. package/dist/directory-picker.d.ts.map +1 -0
  11. package/dist/directory-picker.js +112 -0
  12. package/dist/directory-picker.js.map +7 -0
  13. package/dist/i18n/locales/en.d.ts +1 -0
  14. package/dist/i18n/locales/en.d.ts.map +1 -1
  15. package/dist/i18n/locales/en.js +1 -0
  16. package/dist/i18n/locales/en.js.map +2 -2
  17. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  18. package/dist/i18n/locales/zh-CN.js +1 -0
  19. package/dist/i18n/locales/zh-CN.js.map +2 -2
  20. package/dist/interactive-prompts.d.ts +1 -2
  21. package/dist/interactive-prompts.d.ts.map +1 -1
  22. package/dist/interactive-prompts.js +12 -23
  23. package/dist/interactive-prompts.js.map +3 -3
  24. package/dist/log-filter.test.js +119 -0
  25. package/dist/log-filter.test.js.map +7 -0
  26. package/dist/module-commands.d.ts.map +1 -1
  27. package/dist/module-commands.js +6 -3
  28. package/dist/module-commands.js.map +2 -2
  29. package/dist/module-pack-build.js.map +1 -1
  30. package/dist/module-toggle.d.ts +1 -1
  31. package/dist/module-toggle.d.ts.map +1 -1
  32. package/dist/module-toggle.js.map +1 -1
  33. package/dist/module-toggle.test.js +37 -0
  34. package/dist/module-toggle.test.js.map +7 -0
  35. package/dist/pack-lifecycle.js +1 -1
  36. package/dist/pack-lifecycle.js.map +2 -2
  37. package/dist/services.d.ts +14 -0
  38. package/dist/services.d.ts.map +1 -1
  39. package/dist/services.js.map +2 -2
  40. package/dist/wizard.d.ts.map +1 -1
  41. package/dist/wizard.js +20 -22
  42. package/dist/wizard.js.map +2 -2
  43. package/dist/world-packs-uninstall.test.js +54 -0
  44. package/dist/world-packs-uninstall.test.js.map +7 -0
  45. package/package.json +14 -12
  46. package/scripts/module-install/check-modules.mjs +10 -76
  47. package/scripts/module-install/lib/catalog.mjs +1 -1
  48. package/scripts/module-install/lib/lock.mjs +2 -2
  49. package/scripts/module-install/lib/packages.mjs +16 -22
  50. package/scripts/module-install/{install-resolver.test.mjs → test/install-resolver.test.ts} +4 -5
  51. package/scripts/module-install/{link-local.test.mjs → test/link-local.test.ts} +4 -5
  52. package/scripts/module-install/{local-resolver.test.mjs → test/local-resolver.test.ts} +5 -12
  53. 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 "./lib/registry-index.mjs";
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.npm, "@sfmc-bds/module-land");
14
- assert.equal(idx.land.version, "1.0.0");
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.repo, "Tanya7z/sfmc-modules");
22
- assert.equal(idx.afk.tag, "modules-v0.4.0");
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 则跳过", () => {