[AI] Publish loot-core (@actual-app/core) nightly first in workflow (#7200)

* [AI] Publish loot-core (@actual-app/core) nightly first in workflow

* [autofix.ci] apply automated fixes

* Refactor imports and update configuration

- Updated .oxfmtrc.json to change "parent" to ["parent", "subpath"].
- Removed unnecessary blank lines in various TypeScript files to improve code readability.
- Adjusted import order in reports and rules files for consistency.

* Add workflow steps to pack and publish the core package nightly

* Remove nightly tag from npm publish command in workflow for core package

* Update post-build script comment to reflect correct workspace command for loot-core declarations

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-03-15 17:35:01 +00:00
committed by GitHub
parent e069312ac3
commit 6c150cf28a
33 changed files with 164 additions and 136 deletions

View File

@@ -20,6 +20,7 @@
},
"devDependencies": {
"@actual-app/components": "workspace:*",
"@actual-app/core": "workspace:*",
"@codemirror/autocomplete": "^6.20.0",
"@codemirror/lang-javascript": "^6.2.4",
"@codemirror/language": "^6.12.1",
@@ -62,7 +63,6 @@
"i18next-resources-to-backend": "^1.2.1",
"jsdom": "^27.4.0",
"lodash": "^4.17.23",
"loot-core": "workspace:*",
"mdast-util-newline-to-break": "^2.0.0",
"memoize-one": "^6.0.0",
"pikaday": "1.8.2",

View File

@@ -1 +1 @@
import 'loot-core/typings/window';
import '@actual-app/core/typings/window';

View File

@@ -11,6 +11,8 @@
"rootDir": "src",
"tsBuildInfoFile": "build/ts/.tsbuildinfo",
"paths": {
// TODO: remove and replace with imports from "@actual-app/core"
"loot-core/*": ["../loot-core/src/*"],
// TODO: move to subpath imports
"@desktop-client/*": ["./src/*"]
},

View File

@@ -154,6 +154,8 @@ export default defineConfig(async ({ mode }) => {
extensions: resolveExtensions,
alias: {
'@desktop-client': path.join(__dirname, 'src'),
// TODO: remove this once all loot-core imports are replaced with @actual-app/core
'loot-core': path.join(__dirname, '../loot-core/src'),
},
...(!env.IS_GENERIC_BROWSER && {
conditions: ['electron', 'module', 'browser', 'default'],