Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

feat: refactor configs [JS-831]#1064

Merged
shamsartem merged 16 commits into
mainfrom
refactor
Nov 8, 2024
Merged

feat: refactor configs [JS-831]#1064
shamsartem merged 16 commits into
mainfrom
refactor

Conversation

@shamsartem

Copy link
Copy Markdown
Contributor

No description provided.

@linear

linear Bot commented Oct 30, 2024

Copy link
Copy Markdown

JS-831 refactor configs

@shamsartem shamsartem requested a review from MixailE October 30, 2024 08:29
await access(getProviderConfigPath());
setEnvConfig(await initNewEnvConfig());
} catch {
const envConfig = await initEnvConfig();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need that anymore?

@shamsartem shamsartem Nov 6, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a global "cache" for all configs long ago (and for refactored configs I also added this "cache"), cause essentially when you init a config object you can reuse it for the duration of CLI running cause it is expected not to move anywhere, so there is no need anymore to store it globally separately, cause it's already stored globally anyway (there is a Map<configPath, config>).

Comment thread packages/cli/package/src/commands/local/up.ts
… when using Promise.all that inits and manipulates the same config

@MixailE MixailE left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shamsartem shamsartem merged commit 89cbed0 into main Nov 8, 2024
@shamsartem shamsartem deleted the refactor branch November 8, 2024 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants