Skip to content

Commit

Permalink
Merge pull request #156 from Codex-/renovate/all-minor-patch
Browse files Browse the repository at this point in the history
chore(deps): update all non-major dependencies
  • Loading branch information
Codex- authored Dec 5, 2024
2 parents 8b5f307 + 0de32d9 commit ca6bab9
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 295 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 22.11.0
pnpm 9.12.3
nodejs 22.12.0
pnpm 9.14.4
4 changes: 4 additions & 0 deletions lib/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export function TypeScriptLoader(options?: JitiOptions): LoaderAsync {
const loader: Jiti = createJiti("", { interopDefault: true, ...options });
return async (path: string, _content: string): Promise<LoaderResult> => {
try {
// Because the import resolved as `unknown`, in the union of `unknown & { default?: unknown }`
// `unknown` is the loosest type, however, we know it's an imported module possibly with a
// default export set.
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const result = (await loader.import(path)) as { default?: unknown };

// `default` is used when exporting using export default, some modules
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,26 @@
"typescript": ">=5"
},
"dependencies": {
"jiti": "^2.3.3"
"jiti": "^2.4.1"
},
"devDependencies": {
"@swc/core": "^1.7.42",
"@swc/core": "^1.10.0",
"@swc/jest": "^0.2.37",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"auto-changelog": "^2.5.0",
"chalk": "^5.3.0",
"cosmiconfig": "^9.0.0",
"esbuild": "^0.24.0",
"eslint": "^9.13.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import-x": "^4.4.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import-x": "^4.5.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"release-it": "^17.10.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2"
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0"
},
"keywords": [
"cosmiconfig",
Expand Down
Loading

0 comments on commit ca6bab9

Please sign in to comment.