1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use Path;
pub const PACKAGE_JSON_PATH: &str = "package.json";
pub const EXTENSIONS: = ;
pub const IGNORE_FOLDERS: = ;
pub const TYPESCRIPT_EXTENSIONS: = ;
/// Checks if the current directory is a TypeScript project by looking for a `tsconfig.json` file.
///
/// # Returns
///
/// Returns `true` if a `tsconfig.json` file exists in the current directory, indicating a TypeScript project.
/// Returns `false` otherwise.
///
/// # Examples
///
/// ```
/// if is_typescript_project() {
/// println!("This is a TypeScript project!");
/// } else {
/// println!("This is not a TypeScript project.");
/// }
/// ```