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