mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 06:58:47 -05:00
- Remove `internal` export from index.web.ts (keep as local variable) - Use `yarn build:node && yarn build:browser` in build script - Remove unnecessary `node:` external from vite.browser.config.ts (Vite handles browser externalization automatically) https://claude.ai/code/session_01MnxRXLNjqXrVb5CdsC85Fb
68 lines
1.6 KiB
JSON
68 lines
1.6 KiB
JSON
{
|
|
"name": "@actual-app/api",
|
|
"version": "26.3.0",
|
|
"description": "An API for Actual",
|
|
"license": "MIT",
|
|
"files": [
|
|
"@types",
|
|
"dist"
|
|
],
|
|
"main": "dist/index.js",
|
|
"module": "dist/browser.js",
|
|
"types": "@types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"development": "./index.ts",
|
|
"browser": {
|
|
"types": "./@types/index.d.ts",
|
|
"default": "./dist/browser.js"
|
|
},
|
|
"default": {
|
|
"types": "./@types/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"browser": {
|
|
"types": "./@types/index.d.ts",
|
|
"default": "./dist/browser.js"
|
|
},
|
|
"default": {
|
|
"types": "./@types/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "yarn build:node && yarn build:browser",
|
|
"build:node": "vite build",
|
|
"build:browser": "vite build --config vite.browser.config.ts",
|
|
"test": "vitest --run",
|
|
"typecheck": "tsgo -b && tsc-strict"
|
|
},
|
|
"dependencies": {
|
|
"@actual-app/core": "workspace:*",
|
|
"@actual-app/crdt": "workspace:*",
|
|
"better-sqlite3": "^12.6.2",
|
|
"compare-versions": "^6.1.1",
|
|
"node-fetch": "^3.3.2",
|
|
"uuid": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript/native-preview": "^7.0.0-dev.20260309.1",
|
|
"rollup-plugin-visualizer": "^6.0.11",
|
|
"typescript-strict-plugin": "^2.4.4",
|
|
"vite": "^8.0.0",
|
|
"vite-plugin-dts": "^4.5.4",
|
|
"vite-plugin-peggy-loader": "^2.0.1",
|
|
"vitest": "^4.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|