polylith 0.1.2 → 0.1.3
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 +3 -1
- package/package.json +1 -1
package/bin/apps.js
CHANGED
|
@@ -87,6 +87,8 @@ async function getApp(spec, options) {
|
|
|
87
87
|
var filename = path.join(buildPath, spec.filename);
|
|
88
88
|
var app;
|
|
89
89
|
|
|
90
|
+
this.options = options;
|
|
91
|
+
|
|
90
92
|
if (!spec.code) {
|
|
91
93
|
var config = await(readJson(filename));
|
|
92
94
|
if (!config) return false;
|
|
@@ -135,7 +137,7 @@ export async function build(name, config, options, watch) {
|
|
|
135
137
|
|
|
136
138
|
|
|
137
139
|
async function server(apps) {
|
|
138
|
-
var destPath = path.join(workingDir(), options.dest);
|
|
140
|
+
var destPath = path.join(workingDir(), this.options.dest);
|
|
139
141
|
var server = new PolylithServer({apps: apps}, dest);
|
|
140
142
|
server.create();
|
|
141
143
|
server.start(options.port || '8081');
|