UNPKG

turborepo-template-upgrade

Version:

Upgrade projects based on a Turborepo template using selective git diffs, with support for ignore paths and skipped packages.

2 lines (1 loc) 376 B
import{existsSync as t,readFileSync as o}from"fs";import{resolve as a}from"path";var s=r=>{let e=a(r,".tt-upgrade.config.json");if(!t(e))return{};try{let n=o(e,"utf8");return JSON.parse(n)}catch{return console.warn(`\u26A0\uFE0F Failed to parse config file: ${e}`),{}}},c=(r,e)=>({...r,...e,excludePaths:[...r.excludePaths||[],...e.excludePaths||[]]});export{s as a,c as b};