@travetto/exec
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -10,5 +10,3 @@ { | ||
"@types/cross-spawn": "^6.0.0", | ||
"@types/rimraf": "^2.0.2", | ||
"cross-spawn": "^6.0.5", | ||
"rimraf": "^2.6.2" | ||
"cross-spawn": "^6.0.5" | ||
}, | ||
@@ -22,3 +20,3 @@ "description": "", | ||
}, | ||
"version": "0.0.11" | ||
"version": "0.0.12" | ||
} |
travetto: Exec | ||
=== | ||
This module provides general operations for running commands: | ||
This module provides general operations for working with processes | ||
- Will allow for running a single command. | ||
- Will allow for running commands through a pool of workers. | ||
- Handles cross-spawn utility for cases where it matters | ||
- Allows for running a single command | ||
- Allows for running commands through a pool of workers | ||
- Defaults to `cross-spawn` where possible. | ||
- Provides constructs for managing IPC (inter-process communication) | ||
- Allows for running docker operations with proper handling of execution | ||
- Will catch when the docker container has run away, and will terminate within timeouts |
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
import * as rimraf from 'rimraf'; | ||
import * as util from 'util'; | ||
@@ -9,6 +8,6 @@ import * as child_process from 'child_process'; | ||
import { spawn, WithOpts } from './util'; | ||
import { scanDir, Entry, rimraf } from '@travetto/base'; | ||
const mkdir = util.promisify(fs.mkdir); | ||
const writeFile = util.promisify(fs.writeFile); | ||
const rimrafProm = util.promisify(rimraf); | ||
@@ -101,3 +100,3 @@ function exec(command: string, opts?: WithOpts<child_process.SpawnOptions>) { | ||
try { | ||
await rimrafProm(`${this.workspace}/*`); | ||
await rimraf(`${this.workspace}/*`); | ||
} catch (e) { /* ignore */ } | ||
@@ -104,0 +103,0 @@ } |
import * as cp from 'child_process'; | ||
import * as crossSpawn from 'cross-spawn'; | ||
import { ExecutionOptions, ExecutionResult } from './types'; | ||
import { scanDir, Entry } from '@travetto/base'; | ||
@@ -5,0 +6,0 @@ export function enhanceProcess(p: cp.ChildProcess, options: ExecutionOptions) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13364
4
11
- Removed@types/rimraf@^2.0.2
- Removedrimraf@^2.6.2
- Removed@types/glob@8.1.0(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removed@types/rimraf@2.0.5(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)