@simplysm/sd-cli 14.0.14 → 14.0.16

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 (47) hide show
  1. package/README.md +2 -2
  2. package/dist/capacitor/capacitor.d.ts.map +1 -1
  3. package/dist/capacitor/capacitor.js +15 -0
  4. package/dist/capacitor/capacitor.js.map +1 -1
  5. package/dist/commands/device.d.ts +1 -1
  6. package/dist/commands/device.d.ts.map +1 -1
  7. package/dist/commands/device.js +28 -11
  8. package/dist/commands/device.js.map +1 -1
  9. package/dist/commands/publish.js +1 -1
  10. package/dist/commands/publish.js.map +1 -1
  11. package/dist/commands/replace-deps.js +1 -1
  12. package/dist/commands/replace-deps.js.map +1 -1
  13. package/dist/commands/typecheck.js +1 -1
  14. package/dist/commands/typecheck.js.map +1 -1
  15. package/dist/engines/ViteEngine.d.ts.map +1 -1
  16. package/dist/engines/ViteEngine.js +2 -0
  17. package/dist/engines/ViteEngine.js.map +1 -1
  18. package/dist/orchestrators/DevWatchOrchestrator.js +1 -1
  19. package/dist/orchestrators/DevWatchOrchestrator.js.map +1 -1
  20. package/dist/sd-cli-entry.d.ts.map +1 -1
  21. package/dist/sd-cli-entry.js +6 -8
  22. package/dist/sd-cli-entry.js.map +1 -1
  23. package/dist/sd-cli.js +1 -1
  24. package/dist/sd-cli.js.map +1 -1
  25. package/dist/sd-config.types.d.ts +1 -1
  26. package/dist/sd-config.types.d.ts.map +1 -1
  27. package/dist/utils/orchestrator-utils.js +1 -1
  28. package/dist/utils/orchestrator-utils.js.map +1 -1
  29. package/docs/config.md +4 -2
  30. package/package.json +6 -6
  31. package/src/capacitor/capacitor.ts +15 -0
  32. package/src/commands/device.ts +33 -14
  33. package/src/commands/publish.ts +1 -1
  34. package/src/commands/replace-deps.ts +1 -1
  35. package/src/commands/typecheck.ts +1 -1
  36. package/src/engines/ViteEngine.ts +2 -0
  37. package/src/orchestrators/DevWatchOrchestrator.ts +1 -1
  38. package/src/sd-cli-entry.ts +6 -8
  39. package/src/sd-cli.ts +1 -1
  40. package/src/sd-config.types.ts +1 -1
  41. package/src/utils/orchestrator-utils.ts +1 -1
  42. package/tests/commands/device.spec.ts +8 -8
  43. package/tests/commands/publish.spec.ts +2 -2
  44. package/tests/commands/typecheck.spec.ts +1 -1
  45. package/tests/orchestrators/build-orchestrator.spec.ts +1 -1
  46. package/tests/utils/orchestrator-utils.spec.ts +2 -2
  47. package/tests/utils/sd-config.spec.ts +2 -2
@@ -299,7 +299,7 @@ describe("executeTypecheck", () => {
299
299
  await executeTypecheck({ targets: [], options: ["key=value"] });
300
300
 
301
301
  expect(mocks.loadSdConfig).toHaveBeenCalledWith(
302
- expect.objectContaining({ options: ["key=value"] }),
302
+ expect.objectContaining({ opt: ["key=value"] }),
303
303
  );
304
304
  });
305
305
 
@@ -218,7 +218,7 @@ describe("BuildOrchestrator.initialize", () => {
218
218
  await orchestrator.initialize();
219
219
 
220
220
  expect(loadSdConfig).toHaveBeenCalledWith(
221
- expect.objectContaining({ options: ["production"] }),
221
+ expect.objectContaining({ opt: ["production"] }),
222
222
  );
223
223
  });
224
224
 
@@ -57,7 +57,7 @@ describe("loadAndValidateConfig", () => {
57
57
  expect(mocks.loadSdConfig).toHaveBeenCalledWith({
58
58
  cwd: "/test",
59
59
  dev: false,
60
- options: [],
60
+ opt: [],
61
61
  });
62
62
  expect(mocks.validateTargets).toHaveBeenCalledWith(
63
63
  ["core-common"],
@@ -83,7 +83,7 @@ describe("loadAndValidateConfig", () => {
83
83
  expect(mocks.loadSdConfig).toHaveBeenCalledWith({
84
84
  cwd: "/test",
85
85
  dev: true,
86
- options: ["key=value"],
86
+ opt: ["key=value"],
87
87
  });
88
88
  expect(mocks.validateTargets).toHaveBeenCalledWith([], config.packages);
89
89
  expect(result).toBe(config);
@@ -22,7 +22,7 @@ vi.mock("jiti", () => ({
22
22
  const { loadSdConfig } = await import("../../src/utils/sd-config");
23
23
 
24
24
  describe("loadSdConfig", () => {
25
- const baseParams = { cwd: "/project", dev: true, options: [] as string[] };
25
+ const baseParams = { cwd: "/project", dev: true, opt: [] as string[] };
26
26
 
27
27
  beforeEach(() => {
28
28
  vi.clearAllMocks();
@@ -73,7 +73,7 @@ describe("loadSdConfig", () => {
73
73
  mockExists.mockResolvedValue(true);
74
74
  mockJitiImport.mockResolvedValue({ default: configFn });
75
75
 
76
- const params = { cwd: "/project", dev: true, options: ["key=val"] };
76
+ const params = { cwd: "/project", dev: true, opt: ["key=val"] };
77
77
  await loadSdConfig(params);
78
78
 
79
79
  expect(configFn).toHaveBeenCalledWith(params);