mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-13 07:38:01 -05:00
* ✨ feat(package.json): add publish script The cli file extension has been changed from .mjs to .cjs to improve compatibility with Node.js. The publish script has been added to simplify the process of publishing a new version of the package to npm. * 🎨 style(api.ts): remove unused import statement * 🐛 fix(api.ts): remove setConfig function call * 🚧 chore(api.ts): add comment to explain apiKey variable initialization * 🚧 chore(api.ts): comment out code block that prompts user for OPENAI_API_KEY The unused import statement for `text` function from `@clack/prompts` has been removed. The `setConfig` function call has been removed as it is not needed and was causing an error. A comment has been added to explain the initialization of the `apiKey` variable. The code block that prompts the user for `OPENAI_API_KEY` has been commented out as it is not needed and was causing an error. * 🐛 fix(tsconfig.json): change target to ES6 The target was previously set to ESNext, which is not supported by all browsers. Changing it to ES6 ensures that the emitted JavaScript is compatible with a wider range of browsers.
41 lines
1.7 KiB
JSON
41 lines
1.7 KiB
JSON
{
|
|
"compilerOptions": {
|
|
/* Projects */
|
|
|
|
/* Language and Environment */
|
|
"target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
"lib": [
|
|
"ES6"
|
|
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
|
|
|
|
/* Modules */
|
|
"module": "ESNext" /* 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"
|
|
}
|
|
}
|