Registry / devops / t1-vite-migrate

t1-vite-migrate

JSON →
library1.0.18jsnpmunverified

Automated migration tool from Create React App (with Craco) to Vite for T-one microfrontends. Version 1.0.18 is a standalone Bun script that handles package.json merging, JS→JSX renaming, ESLint flat config generation, and icon migration from semantic-ui-react to CustomIcon. Designed specifically for T-one's internal project structure and conventions; may not work with standard CRA projects outside that ecosystem. Requires Bun runtime (>=1.0.0) and relies on specific file patterns (Dockerfile, craco.config.js, public/index.html) for auto-detection. Release cadence is ad-hoc.

npm install t1-vite-migrate
INSTALL
IMPORT
SIG · T1-VITE-MIGRATE
T
t1-vite-migrate
devopsjavascriptv1.0.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main script
bunx t1-vite-migrate
npx t1-vite-migrate or npm run t1-vite-migrate
The script requires Bun runtime; using npx or npm will fail. Always use bunx.
CLI options
bunx t1-vite-migrate --app-name my-app --dry-run
bunx t1-vite-migrate --app-name=my-app
Options use space-separated values, not equals signs. See --help for all flags.
icons migration only
bunx t1-vite-migrate --icons
bunx t1-vite-migrate --icon
The correct flag is --icons (plural). This runs only the icon migration and exits.

Run the migration from a CRA project directory, specifying app name and auto-confirming prompts.

cd /path/to/cra-project bunx t1-vite-migrate --app-name my-app --yes
Debug
Known issues
breakingScript requires Bun runtime; Node.js/npm are not supported.
fix
Install Bun: curl -fsSL https://bun.sh/install | bash
affects: >=1.0.0
gotchaThis tool is designed exclusively for T-one microfrontends and may break on standard CRA projects.
fix
Ensure your project follows T-one's internal conventions (e.g., Dockerfile structure, craco.config.js patterns).
affects: >=1.0.0
gotchaThe --dry-run flag only previews changes; actual migration requires omitting it.
fix
Run without --dry-run to apply changes, or use --icons for icon-only migration.
affects: >=1.0.0
deprecatedReact v16/v17 projects will be upgraded to v19 automatically, which may cause breaking changes.
fix
Review React v19 migration guide and test your application after migration.
affects: >=1.0.0
Errors
Common errors & fixes
bunx: command not found
Bun is not installed.
fix
Install Bun: curl -fsSL https://bun.sh/install | bash
Error: App name not found. Provide with --app-name or ensure Dockerfile/craco.config.js/public/index.html exists.
Auto-detection failed because none of the expected files contain a recognizable pattern.
fix
Run with explicit --app-name flag: bunx t1-vite-migrate --app-name your-app-name
Error: No such file or directory (os error 2) - bun script
Script executed from wrong directory or path doesn't exist.
fix
Ensure you are in the CRA project root or use --path to specify target directory.
Upgrade
Version history
1.0.18latest on npm
Audit
Dependencies
bunrequiredRuntime requirement, the script is a standalone Bun script
Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
t1-vite-migrate — npm install t1-vite-migrate · libregistry