{"id":49484,"library":"t1-vite-migrate","title":"t1-vite-migrate","description":"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.","status":"active","version":"1.0.18","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","cra","vite","migration","react","microfrontend","create-react-app","bun"],"install":[{"cmd":"npm install t1-vite-migrate","lang":"bash","label":"npm"},{"cmd":"yarn add t1-vite-migrate","lang":"bash","label":"yarn"},{"cmd":"pnpm add t1-vite-migrate","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime requirement, the script is a standalone Bun script","package":"bun","optional":false}],"imports":[{"note":"The script requires Bun runtime; using npx or npm will fail. Always use bunx.","wrong":"npx t1-vite-migrate or npm run t1-vite-migrate","symbol":"main script","correct":"bunx t1-vite-migrate"},{"note":"Options use space-separated values, not equals signs. See --help for all flags.","wrong":"bunx t1-vite-migrate --app-name=my-app","symbol":"CLI options","correct":"bunx t1-vite-migrate --app-name my-app --dry-run"},{"note":"The correct flag is --icons (plural). This runs only the icon migration and exits.","wrong":"bunx t1-vite-migrate --icon","symbol":"icons migration only","correct":"bunx t1-vite-migrate --icons"}],"quickstart":{"code":"cd /path/to/cra-project\nbunx t1-vite-migrate --app-name my-app --yes","lang":"shell","description":"Run the migration from a CRA project directory, specifying app name and auto-confirming prompts."},"warnings":[{"fix":"Install Bun: curl -fsSL https://bun.sh/install | bash","message":"Script requires Bun runtime; Node.js/npm are not supported.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Ensure your project follows T-one's internal conventions (e.g., Dockerfile structure, craco.config.js patterns).","message":"This tool is designed exclusively for T-one microfrontends and may break on standard CRA projects.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run without --dry-run to apply changes, or use --icons for icon-only migration.","message":"The --dry-run flag only previews changes; actual migration requires omitting it.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Review React v19 migration guide and test your application after migration.","message":"React v16/v17 projects will be upgraded to v19 automatically, which may cause breaking changes.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.0':74 '1.0.18':22 'ad':92 'ad-hoc':91 'app':11,103 'auto':86 'auto-detect':85 'autom':5 'bun':26,72,104 'cadenc':89 'config':37 'convent':60 'cra':66,95 'craco':13 'craco.config.js':82 'creat':9,101 'create-react-app':100 'customicon':48 'design':49 'detect':87 'dockerfil':81 'ecosystem':70 'eslint':35 'file':79 'flat':36 'generat':38 'handl':29 'hoc':93 'icon':40 'intern':56 'javascript':94 'js':32 'jsx':33 'may':61 'merg':31 'microfrontend':20,99 'migrat':4,6,41,97 'one':19,54 'outsid':68 'package.json':30 'pattern':80 'project':57,67 'public/index.html':83 'react':10,46,98,102 'releas':88 'reli':76 'renam':34 'requir':71 'runtim':73 'script':27 'semant':44 'semantic-ui-react':43 'specif':50,78 'standalon':25 'standard':65 'structur':58 't-one':17,52 't1':2 't1-vite-migrate':1 'tool':7 'ui':45 'version':21 'vite':3,15,96 'work':63","created_at":"2026-06-07T17:02:00.798808+00:00","updated_at":"2026-06-07T17:02:00.798808+00:00","problems":[{"fix":"Install Bun: curl -fsSL https://bun.sh/install | bash","cause":"Bun is not installed.","error":"bunx: command not found"},{"fix":"Run with explicit --app-name flag: bunx t1-vite-migrate --app-name your-app-name","cause":"Auto-detection failed because none of the expected files contain a recognizable pattern.","error":"Error: App name not found. Provide with --app-name or ensure Dockerfile/craco.config.js/public/index.html exists."},{"fix":"Ensure you are in the CRA project root or use --path to specify target directory.","cause":"Script executed from wrong directory or path doesn't exist.","error":"Error: No such file or directory (os error 2) - bun script"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"t1-vite-migrate","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}