Skip to content

Commit 2fef01b

Browse files
committed
feat(scripts): include rc files in migrate scripts
1 parent af7bcbc commit 2fef01b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/migrate/migrate-4-5.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function main() {
4141
updatePackageJson()
4242
updateTsConfig()
4343
updateTsLintConfig()
44+
updateRcFiles()
4445
updatePrettier()
4546
updateConfigDir()
4647
updateScriptsDir()
@@ -297,3 +298,16 @@ function updatePrettier() {
297298

298299
log(kleur.green('==prettier config updated ✅ ==\n'))
299300
}
301+
302+
function updateRcFiles() {
303+
const libPackagePath = PACKAGE_ROOT
304+
305+
const cpFiles = ['.travis.yml']
306+
307+
const cpItems = cpFiles.map((path) => join(ROOT, path))
308+
309+
sh.cp('-Rf', cpItems, `${libPackagePath}/`)
310+
311+
log(kleur.underline().white('== rc/config root files updated ✅ =='))
312+
log(kleur.yellow('Copied: \n ' + cpItems.join('\n')))
313+
}

0 commit comments

Comments
 (0)