mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
[AI] Move window typings import to globals.ts (#7142)
* [AI] Remove parent path import of window.ts from desktop-client tsconfig Replace the `../../packages/loot-core/typings/window.ts` include in desktop-client's tsconfig.json with a proper package import. This adds a `./typings/*` export to loot-core's package.json and creates a globals.ts file in desktop-client that imports the window types via the package name. https://claude.ai/code/session_01GrgAzjWd3XvqwBTfXLerxc * [autofix.ci] apply automated fixes * Add release notes for PR #7142 --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a8ec84ceac
commit
fdf5c8d0a9
1
packages/desktop-client/src/globals.ts
Normal file
1
packages/desktop-client/src/globals.ts
Normal file
@@ -0,0 +1 @@
|
||||
import 'loot-core/typings/window';
|
||||
@@ -19,13 +19,7 @@
|
||||
{ "path": "../loot-core" },
|
||||
{ "path": "../component-library" }
|
||||
],
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.js",
|
||||
// TODO: remove loot-core dependency
|
||||
"../../packages/loot-core/typings/window.ts"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"build",
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"./shared/*": "./src/shared/*.ts",
|
||||
"./types/models": "./src/types/models/index.ts",
|
||||
"./types/*": "./src/types/*.ts",
|
||||
"./typings/*": "./typings/*.ts",
|
||||
"./lib-dist/electron/bundle.desktop.js": "./lib-dist/electron/bundle.desktop.js"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user