@solidxai/solidctl 0.1.6 → 0.1.8

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.
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerTestCommand(program: Command): void;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerTestDataCommand = registerTestDataCommand;
3
+ exports.registerTestCommand = registerTestCommand;
4
4
  const child_process_1 = require("child_process");
5
5
  const helper_1 = require("../helper");
6
- function registerTestDataCommand(program) {
6
+ function registerTestCommand(program) {
7
7
  program
8
- .command('test-data')
9
- .description('Proxy to solid test-data')
8
+ .command('test')
9
+ .description('Proxy to solid test')
10
10
  .helpOption(false)
11
11
  .allowUnknownOption(true)
12
12
  .allowExcessArguments(true)
@@ -15,24 +15,26 @@ function registerTestDataCommand(program) {
15
15
  const projectRoot = process.cwd();
16
16
  const solidApiDir = `${projectRoot}/solid-api`;
17
17
  const rawArgs = command.parent ? command.parent.rawArgs : process.argv;
18
- const cmdIndex = rawArgs.lastIndexOf('test-data');
18
+ const cmdIndex = rawArgs.lastIndexOf('test');
19
19
  const passthroughArgs = cmdIndex >= 0 ? rawArgs.slice(cmdIndex + 1) : [];
20
- const args = ['test-data', ...passthroughArgs];
21
- console.log('▶ Running solid test-data');
22
- const result = (0, child_process_1.spawnSync)('solid', args, {
20
+ const args = ['test', ...passthroughArgs];
21
+ console.log('▶ Running solid test');
22
+ const solidCommand = process.platform === 'win32' ? 'solid.cmd' : 'solid';
23
+ const result = (0, child_process_1.spawnSync)(solidCommand, args, {
23
24
  cwd: solidApiDir,
24
25
  stdio: 'inherit',
25
26
  env: process.env,
27
+ shell: process.platform === 'win32' ? true : false,
26
28
  });
27
29
  if (result.error) {
28
- console.error('❌ Failed to run solid test-data:', result.error.message);
30
+ console.error('❌ Failed to run solid test:', result.error.message);
29
31
  process.exit(1);
30
32
  }
31
33
  if (result.status !== 0) {
32
- console.error('❌ solid test-data exited with code', result.status);
34
+ console.error('❌ solid test exited with code', result.status);
33
35
  process.exit(result.status ?? 1);
34
36
  }
35
- console.log('✔ solid test-data completed');
37
+ console.log('✔ solid test completed');
36
38
  });
37
39
  }
38
- //# sourceMappingURL=test-data.command.js.map
40
+ //# sourceMappingURL=test.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.command.js","sourceRoot":"","sources":["../../src/commands/test.command.ts"],"names":[],"mappings":";;AAIA,kDAsCC;AAzCD,iDAA0C;AAC1C,sCAAgD;AAEhD,SAAgB,mBAAmB,CAAC,OAAgB;IAClD,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,qBAAqB,CAAC;SAClC,UAAU,CAAC,KAAK,CAAC;SACjB,kBAAkB,CAAC,IAAI,CAAC;SACxB,oBAAoB,CAAC,IAAI,CAAC;SAC1B,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;QAC5B,IAAA,4BAAmB,GAAE,CAAC;QACtB,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAClC,MAAM,WAAW,GAAG,GAAG,WAAW,YAAY,CAAC;QAE/C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACvE,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,eAAe,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,eAAe,CAAC,CAAC;QAE1C,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACpC,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC;QAC1E,MAAM,MAAM,GAAG,IAAA,yBAAS,EAAC,YAAY,EAAE,IAAI,EAAE;YAC3C,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SACnD,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACnE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9D,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;QACnC,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC"}
package/dist/main.js CHANGED
@@ -9,7 +9,7 @@ const build_command_1 = require("./commands/build.command");
9
9
  const upgrade_command_1 = require("./commands/upgrade.command");
10
10
  const seed_command_1 = require("./commands/seed.command");
11
11
  const info_command_1 = require("./commands/info.command");
12
- const test_data_command_1 = require("./commands/test-data.command");
12
+ const test_command_1 = require("./commands/test.command");
13
13
  const create_app_command_1 = require("./commands/create-app/create-app.command");
14
14
  const release_command_1 = require("./commands/release.command");
15
15
  const legacy_migrate_command_1 = require("./commands/legacy-migrate.command");
@@ -25,7 +25,7 @@ async function bootstrap() {
25
25
  (0, local_upgrade_command_1.registerLocalUpgradeCommand)(program);
26
26
  (0, seed_command_1.registerSeedCommand)(program);
27
27
  (0, info_command_1.registerInfoCommand)(program);
28
- (0, test_data_command_1.registerTestDataCommand)(program);
28
+ (0, test_command_1.registerTestCommand)(program);
29
29
  (0, create_app_command_1.registerCreateAppCommand)(program);
30
30
  (0, release_command_1.registerReleaseCommand)(program);
31
31
  (0, legacy_migrate_command_1.registerLegacyMigrateCommand)(program);
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAC3C,yCAAoC;AACpC,6CAAyC;AACzC,4EAA+E;AAC/E,4DAAgE;AAChE,gEAAoE;AACpE,0DAA8D;AAC9D,0DAA8D;AAC9D,oEAAuE;AACvE,iFAAoF;AACpF,gEAAoE;AACpE,8EAAiF;AAEjF,KAAK,UAAU,SAAS;IACtB,MAAM,UAAU,GAAG,MAAM,kBAAW,CAAC,wBAAwB,CAC3D,sBAAS,EACT,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CAAC;IAEF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;IAE9B,OAAO;SACJ,IAAI,CAAC,UAAU,CAAC;SAChB,WAAW,CAAC,eAAe,CAAC;SAC5B,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB,IAAA,wCAAsB,EAAC,OAAO,CAAC,CAAC;IAChC,IAAA,oCAAoB,EAAC,OAAO,CAAC,CAAC;IAC9B,IAAA,mDAA2B,EAAC,OAAO,CAAC,CAAC;IACrC,IAAA,kCAAmB,EAAC,OAAO,CAAC,CAAC;IAC7B,IAAA,kCAAmB,EAAC,OAAO,CAAC,CAAC;IAC7B,IAAA,2CAAuB,EAAC,OAAO,CAAC,CAAC;IACjC,IAAA,6CAAwB,EAAC,OAAO,CAAC,CAAC;IAClC,IAAA,wCAAsB,EAAC,OAAO,CAAC,CAAC;IAChC,IAAA,qDAA4B,EAAC,OAAO,CAA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