polylith 0.1.33 → 0.1.35

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 (2) hide show
  1. package/bin/apps.js +6 -5
  2. package/package.json +1 -1
package/bin/apps.js CHANGED
@@ -145,20 +145,21 @@ export async function build(name, config, options, watch) {
145
145
  }
146
146
 
147
147
 
148
- async function server(config, clOptions) {
149
- var server = new PolylithServer(config, clOptions.dest);
150
- await server.create(config);
151
- await server.start(clOptions.port || '8081');
148
+ async function server(options) {
149
+ var server = new PolylithServer(options, options.dest);
150
+ await server.create(options.apps);
151
+ await server.start(options.port || '8081');
152
152
  }
153
153
 
154
154
  export async function watch(name, config, options) {
155
+ console.log('watch', name, config, options);
155
156
  var apps = await build(name, config, options, true);
156
157
 
157
158
  for (let app of apps) {
158
159
  await app.watch();
159
160
  }
160
161
 
161
- await server(apps, options);
162
+ await server({...options, apps: apps});
162
163
  }
163
164
 
164
165
  export async function test(name, config, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polylith",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "cli for the polylith environment",
5
5
  "bin": {
6
6
  "polylith": "bin/polylith.js"