{"_id":"@andrewbranch/ts5to6","_rev":"2-d4b196fc014dbd686b90864cd367e761","name":"@andrewbranch/ts5to6","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@andrewbranch/ts5to6","version":"1.1.0","author":{"name":"Andrew Branch"},"license":"MIT","_id":"@andrewbranch/ts5to6@1.1.0","maintainers":[{"name":"andrewbranch","email":"andrew@wheream.io"}],"contributors":[{"name":"Andrew Branch"},{"name":"Sheetal Nandi"}],"bin":{"ts5to6":"dist/cli.js"},"dist":{"shasum":"b0d166be4789a3a8c6609b746fcc9cbd19fd7908","tarball":"https://registry.npmjs.org/@andrewbranch/ts5to6/-/ts5to6-1.1.0.tgz","fileCount":63,"integrity":"sha512-bEoX1tFhlcYnvvDDTACWIzeBhcBOl2lqf14ywJjUq85+7ZyQIhMKTe+IOVW92QKVChsrqjwkFEBZvAT3/Gcl4w==","signatures":[{"sig":"MEUCIQCzJwGLcbUntoqKYvBG8Vlf5jmGXjN6ak4ggIGdsSguOwIgT8SRXchnhOlOO2JXbd7K1nvDBQEtBE/MaABClWpl4f0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11422783},"main":"dist/main.js","type":"module","types":"./dist/main.d.ts","gitHead":"337e17491e01400943380814ac28db343749df28","imports":{"#typescript":"./vendor/typescript/typescript.js"},"scripts":{"cli":"node --experimental-strip-types ./src/cli.ts","fmt":"dprint fmt","test":"node --experimental-strip-types --test ./test/**/*.test.ts","build":"tsc -b tsconfig.json","prepare":"npm run build","release":"changeset publish","changeset":"changeset","fmt:check":"dprint check","test:watch":"node --experimental-strip-types --test --watch ./test/**/*.test.ts","version-packages":"changeset version"},"_npmUser":{"name":"andrewbranch","email":"andrew@wheream.io"},"_npmVersion":"10.8.2","description":"CLI to migrate TypeScript config files to be compatible with TypeScript 6.0","directories":{},"_nodeVersion":"20.19.5","dependencies":{"glob":"^11.0.3","chalk":"^5.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dprint":"^0.50.1","typescript":"^5.9.2","@types/node":"^24.3.1","@changesets/cli":"^2.29.7"},"_npmOperationalInternal":{"tmp":"tmp/ts5to6_1.1.0_1759872877654_0.40941484376929815","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@andrewbranch/ts5to6","version":"1.1.1","description":"CLI to migrate TypeScript config files to be compatible with TypeScript 6.0","license":"MIT","author":{"name":"Andrew Branch"},"contributors":[{"name":"Andrew Branch"},{"name":"Sheetal Nandi"}],"type":"module","bin":{"ts5to6":"dist/cli.js"},"main":"dist/main.js","imports":{"#typescript":"./vendor/typescript/typescript.js"},"scripts":{"build":"tsc -b tsconfig.json","test":"node --experimental-strip-types --test ./test/**/*.test.ts","test:watch":"node --experimental-strip-types --test --watch ./test/**/*.test.ts","cli":"node --experimental-strip-types ./src/cli.ts","fmt":"dprint fmt","fmt:check":"dprint check","prepare":"npm run build","changeset":"changeset","version-packages":"changeset version","release":"changeset publish"},"dependencies":{"chalk":"^5.6.0","glob":"^11.0.3"},"devDependencies":{"@changesets/cli":"^2.29.7","@types/node":"^24.3.1","dprint":"^0.50.1","typescript":"^5.9.2"},"publishConfig":{"access":"public"},"_id":"@andrewbranch/ts5to6@1.1.1","gitHead":"c49e73967702fb5bbacd0c5fbaed13fff755f19d","types":"./dist/main.d.ts","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-MrjZovVDFszG+Zgkh9iRLIN7sMty+OoAz5WpJydIE4wT9VvS+3Rs4AJJVy6aNtiZQK//ce600GW8yjxtcSHwkw==","shasum":"38f5bda1099b20c953b37ac2c8c3f875ec4d1b59","tarball":"https://registry.npmjs.org/@andrewbranch/ts5to6/-/ts5to6-1.1.1.tgz","fileCount":63,"unpackedSize":11422729,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBdiGblWbfMwCSR6RwFlP2wC6E4wWf6JmXH+MAoTPbQJAiAPl9GSQuvVzfVrEpwwQlfDSENazMM2WOuWfVTfWGrwJg=="}]},"_npmUser":{"name":"andrewbranch","email":"andrew@wheream.io"},"directories":{},"maintainers":[{"name":"andrewbranch","email":"andrew@wheream.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ts5to6_1.1.1_1759874592974_0.8211248131218976"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-07T21:34:37.567Z","modified":"2025-10-07T22:03:13.381Z","1.1.0":"2025-10-07T21:34:37.909Z","1.1.1":"2025-10-07T22:03:13.178Z"},"author":{"name":"Andrew Branch"},"license":"MIT","description":"CLI to migrate TypeScript config files to be compatible with TypeScript 6.0","contributors":[{"name":"Andrew Branch"},{"name":"Sheetal Nandi"}],"maintainers":[{"name":"andrewbranch","email":"andrew@wheream.io"}],"readme":"# ts5to6\n\nA command-line tool to migrate TypeScript configuration files to be compatible with TypeScript 6.0.\n\n## Overview\n\nTypeScript 6.0 introduces several deprecations and breaking changes. This tool automatically migrates tsconfig.json files to account for two configuration breaking changes:\n\n- **`baseUrl` deprecation**: Before TypeScript 4.1, `baseUrl` was required in order to use `paths`. Many users only used it to enable `paths`, but never removed it after it became unnecessary. This tool can safely remove `baseUrl` and update `paths` mappings if necessary.\n- **`rootDir` default value change**: TypeScript 6.0 changed how `rootDir` is inferred when unspecified. This tool can set explicit `rootDir` values to maintain TypeScript 5.x behavior.\n\n## Usage\n\n```bash\n# Choose which fix you need, or run each in series:\nnpx @andrewbranch/ts5to6 --fixBaseUrl .\nnpx @andrewbranch/ts5to6 --fixRootDir .\n\n# Or to start with a config not named 'tsconfig.json':\nnpx @andrewbranch/ts5to6 --fixBaseUrl ./tsconfig.app.json\nnpx @andrewbranch/ts5to6 --fixRootDir ./tsconfig.app.json\n```\n\nFrom the starting tsconfig.json file, the tool will recursively run on `references`, and also try to discover and update any related config files that will see a change through `extends`.\n","readmeFilename":"README.md"}