Skip to content

Commit c06187d

Browse files
sebawitasis0k0
authored andcommitted
fix: skip move path is ''
1 parent 3eede03 commit c06187d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app-resources/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ import {
99
} from '@angular-devkit/schematics';
1010

1111
import { Schema as AppResourcesSchema } from './schema';
12+
import { noop } from '../../node_modules/rxjs';
1213

1314
export default function (options: AppResourcesSchema) {
1415
return branchAndMerge(mergeWith(
1516
apply(url('./_files'), [
1617
template(<TemplateOptions>{
1718
name: options.name
1819
}),
19-
move(options.path),
20+
// move to path, if one provided, otherwise skip
21+
(options.path) ? move(options.path) : noop
2022
])
2123
))
22-
}
24+
}

0 commit comments

Comments
 (0)