Skip to content

Conversation

@alec-c4
Copy link
Contributor

@alec-c4 alec-c4 commented Nov 27, 2025

Move TypeScript configuration files (tsconfig.json, tsconfig.node.json, tsconfig.app.json) and type definitions (vite-env.d.ts, globals.d.ts, index.ts) from frameworks.yml to install_generator.rb to ensure they are always copied when --typescript flag is used, regardless of interactive mode.

@alec-c4 alec-c4 marked this pull request as draft November 27, 2025 19:25
@skryukov
Copy link
Collaborator

skryukov commented Nov 27, 2025

Hey @alec-c4, could you show repro steps for a bug this PR is addressing?

@alec-c4
Copy link
Contributor Author

alec-c4 commented Nov 27, 2025

@skryukov, sure! when you run rails generate inertia:install --framework=svelte --typescript --no-interactive --tailwind --vite --no-example-page --force it doesn't copy tsconfigs and types

@alec-c4 alec-c4 marked this pull request as ready for review November 27, 2025 19:50
@skryukov
Copy link
Collaborator

oh, I see, good catch, I want to rewrite the whole thing tbh to make it:

  1. get the hole config from flags
  2. copy all files at once
  3. install all deps at once

@skryukov skryukov merged commit 71a0b11 into inertiajs:master Nov 27, 2025
31 checks passed
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