Skip to content

Commit 2f53690

Browse files
committed
refactor: fix lint
1 parent 4c75af5 commit 2f53690

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

package-lock.json

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"husky": "^8.0.0",
104104
"inquirer": "^9.3.7",
105105
"jest-extended": "^6.0.0",
106-
"jiti": "^2.4.2",
106+
"jiti": "^2.6.1",
107107
"jsdom": "~24.0.0",
108108
"jsonc-eslint-parser": "^2.4.0",
109109
"knip": "^5.33.3",

packages/utils/src/lib/import-module.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ export const mapTsJsxToJitiJsx = (tsJsxMode: number): boolean =>
7777
* | sourceMaps | boolean | sourceMap | boolean | Enable sourcemap generation. |
7878
* | jsx | boolean | jsx | JsxEmit (0-5) | TS JsxEmit enum (0-5) => boolean JSX processing. |
7979
*/
80-
export type MappableJitiOptions = Partial<
81-
Pick<JitiOptions, 'alias' | 'interopDefault' | 'sourceMaps' | 'jsx'>
82-
>;
83-
80+
export type MappableJitiOptions = Partial<{
81+
alias: Record<string, string>;
82+
interopDefault: boolean;
83+
sourceMaps: boolean;
84+
jsx: boolean;
85+
}>;
8486
/**
8587
* Parse TypeScript compiler options to mappable jiti options
8688
* @param compilerOptions TypeScript compiler options
@@ -154,6 +156,5 @@ export async function jitiOptionsFromTsConfig(
154156
tsconfigPath: string,
155157
): Promise<MappableJitiOptions> {
156158
const { options } = loadTargetConfig(tsconfigPath);
157-
return options;
158159
return parseTsConfigToJitiConfig(options, path.dirname(tsconfigPath));
159160
}

0 commit comments

Comments
 (0)