@solidxai/solidctl 0.1.7 → 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.
- package/dist/commands/test.command.d.ts +2 -0
- package/dist/commands/{run-tests.command.js → test.command.js} +11 -11
- package/dist/commands/test.command.js.map +1 -0
- package/dist/main.js +2 -4
- package/dist/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/commands/run-tests.command.d.ts +0 -2
- package/dist/commands/run-tests.command.js.map +0 -1
- package/dist/commands/test-data.command.d.ts +0 -2
- package/dist/commands/test-data.command.js +0 -38
- package/dist/commands/test-data.command.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.registerTestCommand = registerTestCommand;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
const helper_1 = require("../helper");
|
|
6
|
-
function
|
|
6
|
+
function registerTestCommand(program) {
|
|
7
7
|
program
|
|
8
|
-
.command('
|
|
9
|
-
.description('Proxy to solid
|
|
8
|
+
.command('test')
|
|
9
|
+
.description('Proxy to solid test')
|
|
10
10
|
.helpOption(false)
|
|
11
11
|
.allowUnknownOption(true)
|
|
12
12
|
.allowExcessArguments(true)
|
|
@@ -15,10 +15,10 @@ function registerRunTestsCommand(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('
|
|
18
|
+
const cmdIndex = rawArgs.lastIndexOf('test');
|
|
19
19
|
const passthroughArgs = cmdIndex >= 0 ? rawArgs.slice(cmdIndex + 1) : [];
|
|
20
|
-
const args = ['
|
|
21
|
-
console.log('▶ Running solid
|
|
20
|
+
const args = ['test', ...passthroughArgs];
|
|
21
|
+
console.log('▶ Running solid test');
|
|
22
22
|
const solidCommand = process.platform === 'win32' ? 'solid.cmd' : 'solid';
|
|
23
23
|
const result = (0, child_process_1.spawnSync)(solidCommand, args, {
|
|
24
24
|
cwd: solidApiDir,
|
|
@@ -27,14 +27,14 @@ function registerRunTestsCommand(program) {
|
|
|
27
27
|
shell: process.platform === 'win32' ? true : false,
|
|
28
28
|
});
|
|
29
29
|
if (result.error) {
|
|
30
|
-
console.error('❌ Failed to run solid
|
|
30
|
+
console.error('❌ Failed to run solid test:', result.error.message);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
if (result.status !== 0) {
|
|
34
|
-
console.error('❌ solid
|
|
34
|
+
console.error('❌ solid test exited with code', result.status);
|
|
35
35
|
process.exit(result.status ?? 1);
|
|
36
36
|
}
|
|
37
|
-
console.log('✔ solid
|
|
37
|
+
console.log('✔ solid test completed');
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=
|
|
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,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,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/main.js
CHANGED
|
@@ -9,8 +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
|
|
13
|
-
const run_tests_command_1 = require("./commands/run-tests.command");
|
|
12
|
+
const test_command_1 = require("./commands/test.command");
|
|
14
13
|
const create_app_command_1 = require("./commands/create-app/create-app.command");
|
|
15
14
|
const release_command_1 = require("./commands/release.command");
|
|
16
15
|
const legacy_migrate_command_1 = require("./commands/legacy-migrate.command");
|
|
@@ -26,8 +25,7 @@ async function bootstrap() {
|
|
|
26
25
|
(0, local_upgrade_command_1.registerLocalUpgradeCommand)(program);
|
|
27
26
|
(0, seed_command_1.registerSeedCommand)(program);
|
|
28
27
|
(0, info_command_1.registerInfoCommand)(program);
|
|
29
|
-
(0,
|
|
30
|
-
(0, run_tests_command_1.registerRunTestsCommand)(program);
|
|
28
|
+
(0, test_command_1.registerTestCommand)(program);
|
|
31
29
|
(0, create_app_command_1.registerCreateAppCommand)(program);
|
|
32
30
|
(0, release_command_1.registerReleaseCommand)(program);
|
|
33
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,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAC3C,yCAAoC;AACpC,6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