mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
https://github.com/kevlened/copy-webpack-plugin is now used instead of the custom plugin, it has since implemented the features we needed. Fix #7521
10 lines
163 B
TypeScript
10 lines
163 B
TypeScript
import * as fs from 'fs';
|
|
|
|
export function isDirectory(path: string) {
|
|
try {
|
|
return fs.statSync(path).isDirectory();
|
|
} catch (_) {
|
|
return false;
|
|
}
|
|
}
|