Skip to content

Commit

Permalink
fix: all around improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vladcos committed Dec 28, 2022
1 parent cecbecc commit 01b0087
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
"watch": "tsc -w",
"lint": "npm run lint:tsc && npm run lint:eslint",
"fix": "npm run lint:prettier && npm run lint:eslint-fix",
"lint:eslint-fix": "NODE_ENV=production eslint . --fix",
"fix:prettier": "prettier --write --ignore-unknown .",
"fix:eslint": "NODE_ENV=production eslint . --fix",
"lint:eslint": "NODE_ENV=production eslint .",
"lint:tsc": "tsc --noEmit",
"lint:prettier": "prettier --write .",
"postpack": "shx rm -f oclif.manifest.json",
"prepack": "npm run build && oclif manifest && oclif readme",
"test": "vitest",
Expand Down
8 changes: 4 additions & 4 deletions src/lib/child-process.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { exec } from 'promisify-child-process'

import type { ChildProcessPromise } from 'promisify-child-process'

export async function execNpm(
command: string,
{
Expand All @@ -9,15 +11,13 @@ export async function execNpm(
options?: Array<string | [string, string]>
cwd?: string
},
): Promise<string> {
): Promise<ChildProcessPromise> {
const compiledOptions = options
.map((item) =>
Array.isArray(item) ? `--${item[0]} ${item[1]}` : `--${item}`,
)
.join(' ')
const compiledCommand = `npm ${compiledOptions} ${command} `
// console.log(compiledCommand)
const output = await exec(compiledCommand, { cwd })
// console.log(output)
return output.stdout
return exec(compiledCommand, { cwd })
}
1 change: 0 additions & 1 deletion src/lib/sync/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export async function runTasks<
>(override: O): Promise<Manager<O['ctx'], NonNullable<O['renderer']>>> {
const manager = new Manager({
concurrent: false,
// registerSignalListeners: false,
rendererOptions: {
collapse: false,
collapseSkips: false,
Expand Down

0 comments on commit 01b0087

Please sign in to comment.