Files
opencommit/tsconfig.json
di-sukharev ffd5d9967a * 📝 docs(README.md): remove commented out section on Git hook
The section on Git hook was previously commented out, but it is now included in the README.md file.

* 🐛 fix(package.json): change cli file extension from .mjs to .cjs
* 🚀 chore(package.json): remove unnecessary banner from build script
The cli file extension has been changed from .mjs to .cjs to ensure compatibility with Node.js versions that do not support ECMAScript modules. The banner in the build script has been removed as it is no longer necessary with the change in file extension.

* 🐛 fix(githook.ts): change HOOK_PATH to HOOK_URL
The HOOK_PATH variable was changed to HOOK_URL to fix an issue where the symlink was not being created correctly. The HOOK_URL variable now uses the __filename global variable to get the path of the current file.

* 🐛 fix(tsconfig.json): change target to ES2020 and module to CommonJS
The target version of JavaScript has been changed to ES2020 to take advantage of the latest features of the language. The module has been changed to CommonJS to ensure compatibility with Node.js.
2023-03-06 22:23:46 +08:00

41 lines
1.7 KiB
JSON

{
"compilerOptions": {
/* Projects */
/* Language and Environment */
"target": "ES2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"lib": [
"ES5"
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
/* Modules */
"module": "CommonJS" /* Specify what module code is generated. */,
// "rootDir": "./src" /* Specify the root folder within your source files. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"resolveJsonModule": true /* Enable importing .json files. */,
/* JavaScript Support */
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
/* Emit */
"outDir": "./out" /* Specify an output folder for all emitted files. */,
/* Interop Constraints */
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
"noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
"noUnusedParameters": true /* Raise an error when a function parameter isn't read. */,
/* Completeness */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["node_modules"],
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node"
}
}