Skip to content

Commit

Permalink
feat: add rewriting jsconfig to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Nov 14, 2024
1 parent 7942f81 commit 38aac0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/workflow-upgrade/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ module.exports = async (cwd) => {
if (hasJsconfig) {
// Copy jsconfig into tsconfig
const jsconfigData = fs.readFileSync(jsconfigPath);
fs.writeFileSync(jsconfigData, `${JSON.stringify(pkg, null, 2)}\n`, 'utf8');
const tsconfigPath = path.join(cwd, 'tsconfig.json');
fs.writeFileSync(tsconfigPath, `${JSON.stringify(jsconfigData, null, 2)}\n`, 'utf8');

// Delete jsconfig
fs.unlinkSync(jsconfigPath);
Expand Down

0 comments on commit 38aac0e

Please sign in to comment.