@gasket/utils
Advanced tools
Comparing version 7.0.6 to 7.0.9
import type { MaybeAsync } from '@gasket/core'; | ||
interface PackageManagerOptions { | ||
export { applyConfigOverrides } from './config'; | ||
export interface PackageManagerOptions { | ||
/** Name of manager, either `npm` (default) or `yarn` */ | ||
@@ -56,26 +58,2 @@ packageManager: string; | ||
interface ConfigContext { | ||
/** Name of environment */ | ||
env: string; | ||
/** Name of command */ | ||
commandId?: string; | ||
/** Project root; required if using localeFile */ | ||
} | ||
interface ConfigDefinition extends Record<string, any> { | ||
environments?: Record<string, Partial<ConfigDefinition>> | ||
commands?: Record<string, Partial<ConfigDefinition>> | ||
[key: string]: any | ||
} | ||
type ConfigOutput = Omit<ConfigDefinition, 'environments' | 'commands'> | ||
/** | ||
* Normalize the config by applying any overrides for environments, commands, or local-only config file. | ||
*/ | ||
export function applyConfigOverrides<Def extends ConfigDefinition, Out extends ConfigOutput>( | ||
config: Def, | ||
configContext: ConfigContext | ||
): Out; | ||
export interface Signal { | ||
@@ -86,7 +64,2 @@ aborted?: boolean; | ||
export function getPotentialConfigs( | ||
config: ConfigDefinition, | ||
configContext: ConfigContext | ||
): Generator<any, any, any>; | ||
/** | ||
@@ -93,0 +66,0 @@ * Promise friendly wrapper to running a shell command (eg: git, npm, ls) which |
@@ -1,2 +0,2 @@ | ||
const applyConfigOverrides = require('./apply-config-overrides'); | ||
const { applyConfigOverrides } = require('./config'); | ||
const runShellCommand = require('./run-shell-command'); | ||
@@ -3,0 +3,0 @@ const PackageManager = require('./package-manager'); |
{ | ||
"name": "@gasket/utils", | ||
"version": "7.0.6", | ||
"version": "7.0.9", | ||
"description": "Reusable utilities for Gasket internals", | ||
"main": "lib", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -20,2 +18,13 @@ "lib" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"default": "./lib/index.js" | ||
}, | ||
"./config": { | ||
"types": "./lib/config.d.ts", | ||
"default": "./lib/config.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"repository": { | ||
@@ -41,12 +50,10 @@ "type": "git", | ||
"concat-stream": "^2.0.0", | ||
"deepmerge": "^4.3.1", | ||
"diagnostics": "^2.0.2", | ||
"lodash.defaultsdeep": "^4.6.1", | ||
"semver": "^7.5.4" | ||
}, | ||
"devDependencies": { | ||
"@gasket/core": "^7.0.6", | ||
"@godaddy/dmd": "^1.0.4", | ||
"@gasket/core": "^7.0.9", | ||
"@types/concat-stream": "^2.0.3", | ||
"@types/cross-spawn": "^6.0.6", | ||
"@types/lodash.defaultsdeep": "^4.6.9", | ||
"abort-controller": "^3.0.0", | ||
@@ -91,3 +98,3 @@ "cross-env": "^7.0.3", | ||
], | ||
"gitHead": "90fec87372fb74755e92668a9158fc3c820dd37f" | ||
"gitHead": "ff3acd042a9a22cd43ac29c6b064bd2f49304b9e" | ||
} |
23255
12
584
+ Addeddeepmerge@^4.3.1
+ Addeddeepmerge@4.3.1(transitive)
- Removedlodash.defaultsdeep@^4.6.1
- Removedlodash.defaultsdeep@4.6.1(transitive)