-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
39 lines (34 loc) · 1.01 KB
/
constants.ts
File metadata and controls
39 lines (34 loc) · 1.01 KB
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
38
39
import { CliOptions, CommandOptions } from "@/types";
export const EXCLUDE_DIRS = [
"node_modules",
".next",
".out",
"dist",
".git",
"build",
".cache",
"public",
".vscode",
".turbo",
"logs",
".idea",
".expo",
];
export const INCLUDE_EXTENSIONS = [".js", ".jsx", ".ts", ".tsx", ".mjs", ".cjs"];
export const DEFAULT_OPTIONS: CliOptions = {
path: process.cwd(),
configFile: ".env.local",
includeComments: false,
cleanup: false,
};
export const COMMAND_OPTIONS: CommandOptions = {
"-h, --help": "Show help",
"-v, --version": "Show version",
"-d, --default": "Run with default options",
"-p, --path <path>": "Directory to analyze (default: ./)",
"-c, --config <path>": "Configuration file name (default: .env.local)",
"-a, --all": "Include commented environment variables",
"--cleanup": "Enable cleanup process for unused variables",
};
export const ENV_PATTERN = /(process\.env|import\.meta\.env)\.[A-Z_]+/g;
export const COMMENT_SYMBOLS = ["//", "/*", "*", "<!--", "*/"] as const;