polylith 0.1.36 → 0.1.38

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/bin/apps.js CHANGED
@@ -157,6 +157,12 @@ export async function watch(name, config, options) {
157
157
  await server({...options, apps: apps});
158
158
  }
159
159
 
160
+ export async function run(name, config, options) {
161
+ var apps = await build(name, config, options, false);
162
+
163
+ await server({...options, apps: apps});
164
+ }
165
+
160
166
  export async function test(name, config, options) {
161
167
  var apps = await walkApps(name, config, options, async function(app) {
162
168
  return await app.test();
package/bin/polylith.js CHANGED
@@ -7,7 +7,7 @@ import { promisify } from 'node:util';
7
7
  import child_process from 'node:child_process';
8
8
  import { readFile, writeFile } from 'node:fs/promises';
9
9
  import { processManifest } from './templates.js';
10
- import { watch, build, test } from './apps.js';
10
+ import { watch, build, test, run } from './apps.js';
11
11
 
12
12
  var exec = promisify(child_process.exec);
13
13
  var argv = minimist(process.argv.slice(2))
@@ -393,7 +393,7 @@ function checkLocalPolylith() {
393
393
  /**
394
394
  * Call this function to execure the command from the command line
395
395
  */
396
- async function run() {
396
+ async function execute() {
397
397
  await getOptions();
398
398
  var config = await readConfig();
399
399
 
@@ -438,7 +438,11 @@ async function run() {
438
438
  await test(params[1], config, clOptions)
439
439
  break;
440
440
  }
441
+
442
+ case 'run': {
443
+ await run(params[1], config, clOptions)
444
+ }
441
445
  }
442
446
  }
443
447
 
444
- await run();
448
+ await execute();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polylith",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "cli for the polylith environment",
5
5
  "bin": {
6
6
  "polylith": "bin/polylith.js"