Skip to content

Commit

Permalink
chore: removed applyEnvironmentOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jpina1-godaddy committed Jan 5, 2024
1 parent 252cbf9 commit a94eb98
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 258 deletions.
19 changes: 0 additions & 19 deletions packages/gasket-utils/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Name | Description
Name | Description
------ | -----------
[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
[requireWithInstall(dependency, gasket)] | requireWithInstall - load devDependency request programmatically when needed
[runShellCommand(cmd, \[argv\], \[options\], \[debug\])] | Promise friendly wrapper to running a shell command (eg: git, npm, ls) which passes back any { stdout, stderr } to the error thrown.
Expand Down Expand Up @@ -151,23 +150,6 @@ or local-only config file.
| \[context.root\] | `string` | Project root; required if using localeFile |
| \[context.localFile\] | `string` | Optional file to load relative to gasket root |


## ~~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)

installDependency - install dependency
Expand Down Expand Up @@ -276,7 +258,6 @@ const { tryRequire } = require('@gasket/utils');
[PackageManager]:#packagemanager
[`PackageManager`]:#new-packagemanageroptions
[applyConfigOverrides(config, context)]:#applyconfigoverridesconfig-context
[applyEnvironmentOverrides(gasketConfig, config, \[localFile\])]:#applyenvironmentoverridesgasketconfig-config-localfile
[installDependency(dependency, gasket)]:#installdependencydependency-gasket
[requireWithInstall(dependency, gasket)]:#requirewithinstalldependency-gasket
[runShellCommand(cmd, \[argv\], \[options\], \[debug\])]:#runshellcommandcmd-argv-options-debug
Expand Down
17 changes: 0 additions & 17 deletions packages/gasket-utils/lib/apply-env-overrides.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/gasket-utils/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ export function applyConfigOverrides(config: GasketConfig, { env, commandId, roo
localFile?: string;
}): GasketConfig;

/**
* 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)
* which passes back any { stdout, stderr } to the error thrown.
Expand Down
2 changes: 0 additions & 2 deletions packages/gasket-utils/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
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');
const PackageManager = require('./package-manager');
const requireWithInstall = require('./require-with-install');
Expand All @@ -10,7 +9,6 @@ module.exports = {
tryRequire,
tryResolve,
applyConfigOverrides,
applyEnvironmentOverrides,
runShellCommand,
PackageManager,
requireWithInstall
Expand Down
208 changes: 0 additions & 208 deletions packages/gasket-utils/test/apply-env-overrides.test.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/gasket-utils/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ describe('index', () => {
'tryRequire',
'tryResolve',
'applyConfigOverrides',
'applyEnvironmentOverrides',
'runShellCommand',
'PackageManager',
'requireWithInstall'
Expand Down

0 comments on commit a94eb98

Please sign in to comment.