Skip to content

Commit b6a3353

Browse files
clydinalan-agius4
authored andcommitted
refactor(@angular-devkit/core): deprecate unused isFile/isDirectory utilities
`isFile` and `isDirectory` are tooling only APIs for Node.js that are no longer used by the Angular CLI.
1 parent 1a96da9 commit b6a3353

File tree

1 file changed

+2
-1
lines changed
  • packages/angular_devkit/core/node

1 file changed

+2
-1
lines changed

packages/angular_devkit/core/node/fs.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88
import { statSync } from 'fs';
99

10+
/** @deprecated Since v11.0, unused by the Angular tooling */
1011
export function isFile(filePath: string): boolean {
1112
let stat;
1213
try {
@@ -21,7 +22,7 @@ export function isFile(filePath: string): boolean {
2122
return stat.isFile() || stat.isFIFO();
2223
}
2324

24-
25+
/** @deprecated Since v11.0, unused by the Angular tooling */
2526
export function isDirectory(filePath: string): boolean {
2627
let stat;
2728
try {

0 commit comments

Comments
 (0)