kist 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/getkist/brand/master/src/logo/kist.png" width="20%" height="20%" alt="kist logo"></p>
2
+ <img src="https://raw.githubusercontent.com/getkist/brand/master/src/logo/kist.png" width="20%" alt="kist logo"></p>
3
3
  <h1 align="center" style='border-bottom: none;'>kist</h1>
4
4
  <h3 align="center">Package Pipeline Processor</h3>
5
5
 
@@ -286,7 +286,7 @@ Contributions are welcome! Follow these steps to contribute:
286
286
 
287
287
  #### Copyright
288
288
 
289
- Copyright &copy; 2024 [Scape Agency BV](https://www.scape.agency/ "Scape Agency website"). All Rights Reserved.
289
+ Copyright &copy; 2025 [Scape Agency BV](https://www.scape.agency/ "Scape Agency website"). All Rights Reserved.
290
290
 
291
291
  #### License
292
292
 
@@ -35,14 +35,26 @@ class TypeScriptCompilerAction extends Action_1.Action {
35
35
  */
36
36
  execute(options) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
- const { tsconfigPath = "tsconfig.json" } = options;
38
+ // const { tsconfigPath = "tsconfig.json" } = options;
39
+ const { tsconfigPath = "tsconfig.json", filePaths, outputDir, compilerOptions = {}, } = options;
39
40
  const resolvedTsconfigPath = path_1.default.resolve(tsconfigPath);
40
41
  this.logInfo(`Compiling TypeScript using configuration: ${resolvedTsconfigPath}`);
41
42
  try {
42
43
  // **Properly Parse tsconfig.json**
43
44
  const parsedConfig = this.loadAndParseTsConfig(resolvedTsconfigPath);
45
+ // Merge custom compiler options
46
+ const mergedCompilerOptions = Object.assign(Object.assign({}, parsedConfig.options), compilerOptions);
47
+ // Set output directory if specified
48
+ if (outputDir) {
49
+ mergedCompilerOptions.outDir = outputDir;
50
+ }
51
+ // **Create a TypeScript Program**
52
+ const program = typescript_1.default.createProgram(filePaths !== null && filePaths !== void 0 ? filePaths : parsedConfig.fileNames, mergedCompilerOptions);
44
53
  // **Create a TypeScript Program**
45
- const program = typescript_1.default.createProgram(parsedConfig.fileNames, parsedConfig.options);
54
+ // const program = ts.createProgram(
55
+ // parsedConfig.fileNames,
56
+ // parsedConfig.options,
57
+ // );
46
58
  const emitResult = program.emit();
47
59
  // **Collect Diagnostics**
48
60
  const allDiagnostics = typescript_1.default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kist",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Package Pipeline Processor",
5
5
  "keywords": [
6
6
  "kist",
@@ -23,7 +23,14 @@ export class TypeScriptCompilerAction extends Action {
23
23
  * @throws {Error} Throws an error if compilation fails.
24
24
  */
25
25
  async execute(options: ActionOptionsType): Promise<void> {
26
- const { tsconfigPath = "tsconfig.json" } = options;
26
+ // const { tsconfigPath = "tsconfig.json" } = options;
27
+ const {
28
+ tsconfigPath = "tsconfig.json",
29
+ filePaths,
30
+ outputDir,
31
+ compilerOptions = {},
32
+ } = options;
33
+
27
34
  const resolvedTsconfigPath = path.resolve(tsconfigPath);
28
35
 
29
36
  this.logInfo(
@@ -36,11 +43,28 @@ export class TypeScriptCompilerAction extends Action {
36
43
  resolvedTsconfigPath,
37
44
  );
38
45
 
46
+ // Merge custom compiler options
47
+ const mergedCompilerOptions = {
48
+ ...parsedConfig.options,
49
+ ...compilerOptions,
50
+ };
51
+
52
+ // Set output directory if specified
53
+ if (outputDir) {
54
+ mergedCompilerOptions.outDir = outputDir;
55
+ }
56
+
39
57
  // **Create a TypeScript Program**
40
58
  const program = ts.createProgram(
41
- parsedConfig.fileNames,
42
- parsedConfig.options,
59
+ filePaths ?? parsedConfig.fileNames,
60
+ mergedCompilerOptions,
43
61
  );
62
+
63
+ // **Create a TypeScript Program**
64
+ // const program = ts.createProgram(
65
+ // parsedConfig.fileNames,
66
+ // parsedConfig.options,
67
+ // );
44
68
  const emitResult = program.emit();
45
69
 
46
70
  // **Collect Diagnostics**