eddev 0.2.27 → 0.2.28
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.
|
@@ -216,14 +216,14 @@ function createNextApp(opts) {
|
|
|
216
216
|
}, opts.baseDirectory);
|
|
217
217
|
sendSignal({ code: "url", url: "http://127.0.0.1:".concat(port) });
|
|
218
218
|
// await devNext(serverlessDirectory, port)
|
|
219
|
-
return [4 /*yield*/, runScript(serverlessDirectory, ["
|
|
219
|
+
return [4 /*yield*/, runScript(serverlessDirectory, ["dev", "--port", String(port)])];
|
|
220
220
|
case 24:
|
|
221
221
|
// await devNext(serverlessDirectory, port)
|
|
222
222
|
_b.sent();
|
|
223
223
|
return [3 /*break*/, 27];
|
|
224
224
|
case 25:
|
|
225
225
|
if (!opts.build) return [3 /*break*/, 27];
|
|
226
|
-
return [4 /*yield*/, runScript(serverlessDirectory, ["
|
|
226
|
+
return [4 /*yield*/, runScript(serverlessDirectory, ["build"])];
|
|
227
227
|
case 26:
|
|
228
228
|
_b.sent();
|
|
229
229
|
_b.label = 27;
|
|
@@ -241,7 +241,7 @@ function clean(path) {
|
|
|
241
241
|
case 0:
|
|
242
242
|
if (!(0, fs_1.existsSync)(path))
|
|
243
243
|
return [2 /*return*/];
|
|
244
|
-
whitelist = ["node_modules", "package.json", "yarn.lock"
|
|
244
|
+
whitelist = ["node_modules", "package.json", "yarn.lock"];
|
|
245
245
|
return [4 /*yield*/, (0, fs_extra_1.readdir)(path)];
|
|
246
246
|
case 1:
|
|
247
247
|
files = (_a.sent()).filter(function (file) {
|
|
@@ -284,7 +284,7 @@ function updatePackages(dir) {
|
|
|
284
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
285
285
|
var proc;
|
|
286
286
|
return __generator(this, function (_c) {
|
|
287
|
-
proc = (0, child_process_1.spawn)("
|
|
287
|
+
proc = (0, child_process_1.spawn)("yarn", [], {
|
|
288
288
|
cwd: dir,
|
|
289
289
|
});
|
|
290
290
|
(_a = proc.stdout) === null || _a === void 0 ? void 0 : _a.pipe(process.stdout);
|
|
@@ -439,7 +439,7 @@ function runScript(dir, args) {
|
|
|
439
439
|
return __awaiter(this, void 0, void 0, function () {
|
|
440
440
|
var proc;
|
|
441
441
|
return __generator(this, function (_c) {
|
|
442
|
-
proc = (0, child_process_1.spawn)("
|
|
442
|
+
proc = (0, child_process_1.spawn)("yarn", args, {
|
|
443
443
|
cwd: dir,
|
|
444
444
|
});
|
|
445
445
|
(_a = proc.stdout) === null || _a === void 0 ? void 0 : _a.pipe(process.stdout);
|