We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1aa9860 + 886cc1d commit 74f83f4Copy full SHA for 74f83f4
1 file changed
bin/lib/migrateLegacyResources.js
@@ -20,13 +20,15 @@ module.exports = function (program) {
20
.action(async (opts) => {
21
const verbose = opts.verbose
22
const suffix = opts.suffix || '$.ttl'
23
- let path = opts.path || 'data'
24
- path = path.startsWith(Path.sep) ? path : Path.join(process.cwd(), path)
25
- if (verbose) {
26
- console.log(`Migrating files in ${path}`)
27
- }
+ let paths = opts.path ? [ opts.path ] : [ 'data', 'config/templates' ]
+ paths = paths.map(path => path.startsWith(Path.sep) ? path : Path.join(process.cwd(), path))
28
try {
29
- await migrate(path, suffix, verbose)
+ for (const path of paths) {
+ if (verbose) {
+ console.log(`Migrating files in ${path}`)
+ }
30
+ await migrate(path, suffix, verbose)
31
32
} catch (err) {
33
console.error(err)
34
}
0 commit comments