polylith 0.1.25 → 0.1.27
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 +6 -6
- package/package.json +1 -1
package/bin/apps.js
CHANGED
|
@@ -39,7 +39,7 @@ export function getAppSpecs(name, config, options) {
|
|
|
39
39
|
specs = config.apps;
|
|
40
40
|
} else if (!name) {
|
|
41
41
|
if (!defaultApp) {
|
|
42
|
-
console.
|
|
42
|
+
console.error('unable to find a default app to build')
|
|
43
43
|
return [];
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -50,7 +50,7 @@ export function getAppSpecs(name, config, options) {
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
if (!foundSpec) {
|
|
53
|
-
console.
|
|
53
|
+
console.error(`unable to find app ${name}`);
|
|
54
54
|
return [];
|
|
55
55
|
}
|
|
56
56
|
specs = [foundSpec];
|
|
@@ -147,18 +147,18 @@ export async function build(name, config, options, watch) {
|
|
|
147
147
|
|
|
148
148
|
async function server(apps, options) {
|
|
149
149
|
var server = new PolylithServer({apps: apps}, options.dest);
|
|
150
|
-
server.create(apps);
|
|
151
|
-
server.start(options.port || '8081');
|
|
150
|
+
await server.create(apps);
|
|
151
|
+
await server.start(options.port || '8081');
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export async function watch(name, config, options) {
|
|
155
155
|
var apps = await build(name, config, options, true);
|
|
156
156
|
|
|
157
157
|
for (let app of apps) {
|
|
158
|
-
app.watch();
|
|
158
|
+
await app.watch();
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
server(apps, options);
|
|
161
|
+
await server(apps, options);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
export async function test(name, config, options) {
|