Skip to content

refactor(env): remove the task type update flag - #2315

Closed
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/remove-vite-update-task-types
Closed

refactor(env): remove the task type update flag#2315
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/remove-vite-update-task-types

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Summary

Removing the repository-unset VITE_UPDATE_TASK_TYPES flag also removes its unused shared configuration entries.

Related: #2206, #2312

@jong-kyung jong-kyung self-assigned this Aug 4, 2026
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit c7889a4
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a715148f6d156000837158f

@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c7889a4f8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let current = std::fs::read_to_string(&run_config_path)
.expect("Failed to read run-config.ts")
.replace('\r', "");
pretty_assertions::assert_eq!(current, ts_type, "run-config.ts is out of sync.");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve a regeneration path for run-config.ts

When an upstream UserRunConfig change alters TS_TYPE, this test now only reports the mismatch and no repository command can regenerate packages/cli/src/run-config.ts; that file still explicitly says it is auto-generated by cargo test and must not be edited manually. Keep the update mode or replace it with a documented generator so contributors can update the checked-in public TypeScript types instead of being left with a permanently failing test.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

^ This is the correct explanation of VITE_UPDATE_TASK_TYPES's purpose.

pretty_assertions::assert_eq!(
current,
ts_type,
"run-config.ts is out of sync. Run `VITE_UPDATE_TASK_TYPES=1 cargo test -p vite-plus-cli run_config_types_in_sync` to update."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

VITE_UPDATE_TASK_TYPES should not be removed. It's supposed to be manually set for this test to update the config.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for clarifying. In that case, should we keep the manual update mode and rename the variable to VP_UPDATE_TASK_TYPES instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes please keep it. VP_UPDATE_TASK_TYPES LGTM.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'll close this PR and update #2312 with an additional commit that renames the variable to VP_UPDATE_TASK_TYPES 🙇‍♂️

@jong-kyung jong-kyung closed this Aug 4, 2026
@jong-kyung
jong-kyung deleted the refactor/remove-vite-update-task-types branch August 4, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants