Terminal application to generate sensible defaults for your TypeScript compiler options
Hand of God version
deno run -A jsr:@aminnairi/tsconfig
Hardened version
deno run -RWE=TERM,TERM_PROGRAM,TMPDIR,TMP,TEMP jsr:@aminnairi/tsconfig
Hardened & verbose version
deno run --allow-read --allow-write --allow-env=TERM,TERM_PROGRAM,TMPDIR,TMP,TEMP jsr:@aminnairi/tsconfig
deno run -A jsr:@aminnairi/tsconfig --path tsconfig.json
deno run -A jsr:@aminnairi/tsconfig --path deno.json
Provide a path to were to write the generated configuration.
If set, the script wont prompt you for you to choose a path to write the generated configuration to.
If unset, the script will prompt you to choose for a path to write the generated configuration to.
deno run -A jsr:@aminnairi/tsconfig --all
Allow you to accept all options generated by this script.
If set, Will not prompt for you to choose to keep or leave some options
If unset, will prompt you to choose from the list of options below.
Here is the list of options that are applied by default and that you can choose to keep or leave.
{
"compilerOptions": {
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"strictBindCallApply": true,
"strictBuiltinIteratorReturn": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"useUnknownInCatchVariables": true
}
}
deno run -A jsr:@aminnairi/tsconfig --override
This option does nothing if the configuration file at path does not exist.
If set, will override the file content. Note that
If not set, will prompt you before overriding the file if it exists.
deno run -A jsr:@aminnairi/tsconfig --override --merge
if set, will merge any existing configuration that may exist inside the configuration at path.
If unset, will first prompt you before completely override the file and replace its content by the generated configuration.
Make sure to save the existing configuration or use a version control system in order to prevent loosing your work.
deno run -A jsr:@aminnairi/tsconfig --overide --no-merge
If set, completely override the file without prompting you to choose for whether to merge the existing configuration or not.
If unset, will prompt you to choose for whether to merge the existing configuration or not if the configuration file at path already exists.
See LICENSE
.