refactor: update lint

This commit is contained in:
Mauricio Siu 2024-12-19 02:07:08 -06:00
parent c51b502116
commit 1ae96297e8
2 changed files with 249 additions and 249 deletions

View File

@ -37,13 +37,13 @@ export type ApplicationNested = InferResultType<
export const buildApplication = async (
application: ApplicationNested,
logPath: string
logPath: string,
) => {
const writeStream = createWriteStream(logPath, { flags: "a" });
const { buildType, sourceType } = application;
try {
writeStream.write(
`\nBuild ${buildType}: ✅\nSource Type: ${sourceType}: ✅\n`
`\nBuild ${buildType}: ✅\nSource Type: ${sourceType}: ✅\n`,
);
console.log(`Build ${buildType}: ✅`);
if (buildType === "nixpacks") {
@ -77,7 +77,7 @@ export const buildApplication = async (
export const getBuildCommand = (
application: ApplicationNested,
logPath: string
logPath: string,
) => {
let command = "";
const { buildType, registry } = application;
@ -106,7 +106,7 @@ export const getBuildCommand = (
};
export const mechanizeDockerContainer = async (
application: ApplicationNested
application: ApplicationNested,
) => {
const {
appName,
@ -144,7 +144,7 @@ export const mechanizeDockerContainer = async (
const filesMount = generateFileMounts(appName, application);
const envVariables = prepareEnvironmentVariables(
env,
application.project.env
application.project.env,
);
const image = getImageName(application);

View File

@ -5,7 +5,7 @@ import { spawnAsync } from "../process/spawnAsync";
export const uploadImage = async (
application: ApplicationNested,
writeStream: WriteStream
writeStream: WriteStream,
) => {
const registry = application.registry;
@ -25,7 +25,7 @@ export const uploadImage = async (
try {
writeStream.write(
`📦 [Enabled Registry] Uploading image to ${registry.registryType} | ${imageName} | ${finalURL}\n`
`📦 [Enabled Registry] Uploading image to ${registry.registryType} | ${imageName} | ${finalURL}\n`,
);
const loginCommand = spawnAsync(
"docker",
@ -34,7 +34,7 @@ export const uploadImage = async (
if (writeStream.writable) {
writeStream.write(data);
}
}
},
);
loginCommand.child?.stdin?.write(registry.password);
loginCommand.child?.stdin?.end();
@ -59,7 +59,7 @@ export const uploadImage = async (
export const uploadImageRemoteCommand = (
application: ApplicationNested,
logPath: string
logPath: string,
) => {
const registry = application.registry;