@absolutejs/absolute 0.19.0-beta.669 → 0.19.0-beta.670
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/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/cli/index.js +10 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/cli/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -238,7 +238,7 @@ var COMPOSE_PATH = "db/docker-compose.db.yml", DEFAULT_SERVER_ENTRY = "src/backe
|
|
|
238
238
|
try {
|
|
239
239
|
process.kill(pid, "SIGTERM");
|
|
240
240
|
} catch {}
|
|
241
|
-
}, killStaleProcesses = (port) => {
|
|
241
|
+
}, killStaleProcesses = (port, logMessage) => {
|
|
242
242
|
let output;
|
|
243
243
|
try {
|
|
244
244
|
output = execSync(`lsof -ti tcp:${port} -sTCP:LISTEN 2>/dev/null`, {
|
|
@@ -256,7 +256,12 @@ var COMPOSE_PATH = "db/docker-compose.db.yml", DEFAULT_SERVER_ENTRY = "src/backe
|
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
pids.forEach(safeKill);
|
|
259
|
-
|
|
259
|
+
const message = `Killed ${pids.length} stale ${pids.length === 1 ? "process" : "processes"} on port ${port}.`;
|
|
260
|
+
if (logMessage) {
|
|
261
|
+
logMessage(message);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
console.log(`\x1B[2m${formatTimestamp()}\x1B[0m \x1B[33m[cli]\x1B[0m \x1B[33m${message}\x1B[0m`);
|
|
260
265
|
}, printHelp = (subject = "server") => {
|
|
261
266
|
const title = subject === "workspace" ? "workspace" : subject;
|
|
262
267
|
console.log("");
|
|
@@ -3187,7 +3192,9 @@ var workspace = async (subcommand, options) => {
|
|
|
3187
3192
|
const resolved = resolveService(name, service, options);
|
|
3188
3193
|
const port = (resolved.service.port ?? Number(resolved.env.PORT ?? "")) || DEFAULT_PORT;
|
|
3189
3194
|
if (port > 0) {
|
|
3190
|
-
killStaleProcesses(port)
|
|
3195
|
+
killStaleProcesses(port, (message) => {
|
|
3196
|
+
tui.addLog("workspace", message, "warn");
|
|
3197
|
+
});
|
|
3191
3198
|
}
|
|
3192
3199
|
if (resolved.service.kind === "absolute" && resolved.configPath && !existsSync8(resolved.configPath)) {
|
|
3193
3200
|
throw new Error(`${name} references missing config "${resolved.configPath}"`);
|
package/dist/index.js
CHANGED
|
@@ -174803,7 +174803,7 @@ ${registrations}
|
|
|
174803
174803
|
({ tsLibDir } = cached);
|
|
174804
174804
|
cached.lastUsed = Date.now();
|
|
174805
174805
|
} else {
|
|
174806
|
-
const tsPath = __require.resolve("typescript");
|
|
174806
|
+
const tsPath = __require.resolve("/home/alexkahn/abs/absolutejs/node_modules/typescript/lib/typescript.js");
|
|
174807
174807
|
const tsRootDir = dirname9(tsPath);
|
|
174808
174808
|
tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve18(tsRootDir, "lib");
|
|
174809
174809
|
const config = readConfiguration("./tsconfig.json");
|
|
@@ -188808,5 +188808,5 @@ export {
|
|
|
188808
188808
|
ANGULAR_INIT_TIMEOUT_MS
|
|
188809
188809
|
};
|
|
188810
188810
|
|
|
188811
|
-
//# debugId=
|
|
188811
|
+
//# debugId=2F8EDE59772BBE0764756E2164756E21
|
|
188812
188812
|
//# sourceMappingURL=index.js.map
|