diff --git a/Dockerfile.local b/Dockerfile.local index 187c460c3..3a74911b5 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -20,7 +20,7 @@ RUN apt-get install --yes curl RUN curl --location https://deb.nodesource.com/setup_18.x | bash - RUN apt-get install --yes nodejs RUN apt-get install --yes build-essential -RUN apt-get install --yes python3-pip libxml2-dev libxslt-dev python-dev pkg-config +RUN apt-get install --yes python3-pip libxml2-dev libxslt-dev python-dev pkg-config time RUN python3 -m pip install poetry diff --git a/src/commands/src/shared/next-gen-deploy.ts b/src/commands/src/shared/next-gen-deploy.ts index 8ab09ab9b..781c6da65 100644 --- a/src/commands/src/shared/next-gen-deploy.ts +++ b/src/commands/src/shared/next-gen-deploy.ts @@ -55,8 +55,10 @@ export async function nextGenDeploy({ const { outputText, errorText } = await executeAndPipeCommands( { command: 'yes' }, { - command: 'mut-publish', + command: 'time', args: [ + '-v', + 'mut-publish', 'public', bucket, `--prefix=${mutPrefix}`, diff --git a/src/commands/src/shared/next-gen-html.ts b/src/commands/src/shared/next-gen-html.ts index fc790f41b..b8b56a77c 100644 --- a/src/commands/src/shared/next-gen-html.ts +++ b/src/commands/src/shared/next-gen-html.ts @@ -3,8 +3,8 @@ import { CliCommandResponse, executeCliCommand } from '../helpers'; export async function nextGenHtml(): Promise { try { const result = await executeCliCommand({ - command: 'npm', - args: ['run', 'build'], + command: 'time', + args: ['-v', 'npm', 'run', 'build'], options: { cwd: `${process.cwd()}/snooty` }, }); return result; diff --git a/src/commands/src/shared/next-gen-parse.ts b/src/commands/src/shared/next-gen-parse.ts index 70bba49d7..763d36e0b 100644 --- a/src/commands/src/shared/next-gen-parse.ts +++ b/src/commands/src/shared/next-gen-parse.ts @@ -31,8 +31,8 @@ export async function nextGenParse({ job, patchId, isProd }: NextGenParseParams) } try { const result = await executeCliCommand({ - command: 'snooty', - args: commandArgs, + command: 'time', + args: ['-v', 'snooty', ...commandArgs], options: { cwd: repoDir }, }); return result; diff --git a/src/commands/src/shared/persistence-module.ts b/src/commands/src/shared/persistence-module.ts index 8264f77b3..9712277bc 100644 --- a/src/commands/src/shared/persistence-module.ts +++ b/src/commands/src/shared/persistence-module.ts @@ -10,6 +10,8 @@ export async function persistenceModule({ job }: PersistenceModuleParams): Promi const bundlePath = `${repoDir}/bundle.zip`; const args = [ + '-v', + 'node', `${process.cwd()}/modules/persistence/index.js`, '--unhandled-rejections=strict', '--path', @@ -25,7 +27,7 @@ export async function persistenceModule({ job }: PersistenceModuleParams): Promi try { const result = await executeCliCommand({ - command: 'node', + command: 'time', args, });