-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to support Gasket in Next Edge Runtime (#961)
* feat: utils updates for edge runtime compatability * feat: use utils updates for edge runtime compatability * fix: tsconfig adjustments for utils package exports * refactor: better export path * fix: eager rename * docs: changelogs * chore: tweaks jsdoc types * fix: clean up comment
- Loading branch information
1 parent
f782f92
commit 87b4262
Showing
24 changed files
with
133 additions
and
118 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/create-gasket-app/test/unit/scaffold/actions/post-create-hooks.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// This file is exported by the package and can be imported directly. | ||
|
||
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'> | ||
type ConfigPartial = Partial<ConfigDefinition> | undefined | void | unknown; | ||
|
||
export function getPotentialConfigs( | ||
config: ConfigDefinition, | ||
configContext: ConfigContext | ||
): Array<ConfigPartial>; | ||
|
||
function getCommandOverrides( | ||
commands: Record<string, Partial<ConfigDefinition>>, | ||
commandId: string | ||
): Array<ConfigPartial>; | ||
|
||
function getSubEnvironmentOverrides( | ||
env: string, | ||
environments: Record<string, Partial<ConfigDefinition>> | ||
): Array<ConfigPartial>; | ||
|
||
function getDevOverrides( | ||
isLocalEnv: boolean, | ||
environments: Record<string, Partial<ConfigDefinition>> | ||
): Array<ConfigPartial>; | ||
|
||
async function getLatestVersion( | ||
pkgName: string, | ||
/** current time in milliseconds */ | ||
currentTime: number, | ||
cache: Record<string, any> | ||
): Promise<string>; | ||
|
||
function getLocalOverrides( | ||
isLocalEnv: boolean, | ||
root: string, | ||
localFile: string | ||
): Generator<ConfigDefinition | undefined, void, unknown>; | ||
|
||
/** | ||
* 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; |
Oops, something went wrong.