@gasket/utils
Advanced tools
Comparing version 6.45.2 to 6.46.1-7.0.0-cli.6.0
@@ -13,3 +13,2 @@ | ||
[applyConfigOverrides(config, context)] | Normalize the config by applying any overrides for environments, commands, or local-only config file. | ||
~~[applyEnvironmentOverrides(gasketConfig, config, \[localFile\])]~~ | Normalize the config by applying any environment or local overrides | ||
[installDependency(dependency, gasket)] | installDependency - install dependency | ||
@@ -48,3 +47,2 @@ [requireWithInstall(dependency, gasket)] | requireWithInstall - load devDependency request programmatically when needed | ||
| options.dest | `string` | Target directory where `node_module` should exist | | ||
| \[options.npmconfig\] | `string` | DEPRECATED Path to userconfig | | ||
@@ -157,18 +155,2 @@ | ||
## ~~applyEnvironmentOverrides(gasketConfig, config, \[localFile\])~~ | ||
***Deprecated*** | ||
Normalize the config by applying any environment or local overrides | ||
**Kind**: global function | ||
**Returns**: `object` - config | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| gasketConfig | `object` | Gasket config | | ||
| config | `object` | Target config to be normalized | | ||
| \[localFile\] | `string` | Optional file to load relative to gasket root | | ||
## installDependency(dependency, gasket) | ||
@@ -282,3 +264,2 @@ | ||
[applyConfigOverrides(config, context)]:#applyconfigoverridesconfig-context | ||
[applyEnvironmentOverrides(gasketConfig, config, \[localFile\])]:#applyenvironmentoverridesgasketconfig-config-localfile | ||
[installDependency(dependency, gasket)]:#installdependencydependency-gasket | ||
@@ -285,0 +266,0 @@ [requireWithInstall(dependency, gasket)]:#requirewithinstalldependency-gasket |
@@ -64,13 +64,2 @@ import type { GasketConfig } from '@gasket/engine'; | ||
/** | ||
* Normalize the config by applying any environment or local overrides | ||
* | ||
* @param gasketConfig - Gasket config | ||
* @param config - Target config to be normalized | ||
* @param [localFile] - Optional file to load relative to gasket root | ||
* @returns config | ||
* @deprecated use applyConfigOverrides | ||
*/ | ||
declare function applyEnvironmentOverrides(gasketConfig: GasketConfig, config: GasketConfig, localFile?: string): object; | ||
/** | ||
* Promise friendly wrapper to running a shell command (eg: git, npm, ls) | ||
@@ -77,0 +66,0 @@ * which passes back any { stdout, stderr } to the error thrown. |
const tryRequire = require('./try-require'); | ||
const { tryResolve } = require('./try-resolve'); | ||
const applyConfigOverrides = require('./apply-config-overrides'); | ||
const applyEnvironmentOverrides = require('./apply-env-overrides'); | ||
const runShellCommand = require('./run-shell-command'); | ||
@@ -13,3 +12,2 @@ const PackageManager = require('./package-manager'); | ||
applyConfigOverrides, | ||
applyEnvironmentOverrides, | ||
runShellCommand, | ||
@@ -16,0 +14,0 @@ PackageManager, |
@@ -14,8 +14,6 @@ /* eslint-disable no-process-env */ | ||
* @param {string} options.dest Target directory where `node_module` should exist | ||
* @param {string} [options.npmconfig] DEPRECATED Path to userconfig | ||
*/ | ||
constructor({ packageManager = 'npm', dest, npmconfig }) { | ||
constructor({ packageManager = 'npm', dest }) { | ||
this.manager = packageManager; | ||
this.dest = dest; | ||
this.npmconfig = npmconfig; | ||
} | ||
@@ -94,7 +92,2 @@ | ||
// | ||
// Global npmrc configured through gasket flag | ||
// TODO (kinetifex): remove in next major revision | ||
if (this.npmconfig) argv.push('--userconfig', this.npmconfig); | ||
return await PackageManager.spawnNpm(argv, { | ||
@@ -107,10 +100,2 @@ cwd: this.dest, | ||
// | ||
// Support for the .npmrc configured via --npmconfig flag. | ||
// Yarn does not have a "userconfig" CLI flag, it does however still | ||
// support the npm_config_* environment variables for npm compatibility. | ||
// @see: https://yarnpkg.com/en/docs/envvars#toc-npm-config | ||
// TODO (kinetifex): remove in next major revision | ||
if (this.npmconfig) env.NPM_CONFIG_USERCONFIG = this.npmconfig; | ||
return await PackageManager.spawnYarn(argv, { | ||
@@ -117,0 +102,0 @@ cwd: this.dest, |
{ | ||
"name": "@gasket/utils", | ||
"version": "6.45.2", | ||
"version": "6.46.1-7.0.0-cli.6.0", | ||
"description": "Reusable utilities for Gasket internals", | ||
@@ -47,3 +47,3 @@ "main": "lib", | ||
"devDependencies": { | ||
"@gasket/engine": "^6.45.2", | ||
"@gasket/engine": "^6.46.1-7.0.0-cli.6.0", | ||
"@godaddy/dmd": "^1.0.4", | ||
@@ -75,3 +75,3 @@ "abort-controller": "^3.0.0", | ||
], | ||
"gitHead": "335fae78f00d32a22d0a77c9cb97901941a9bb75" | ||
"gitHead": "0d3c61e5ba470fbca7ae5e331d15e41b57410fe0" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30385
12
557
1