Files
ocis/web/package.json
T
Matteo 3893ce2e5c feat(web): add per-project lint and typecheck targets (Phase 2a+2b)
Phase 2a - lint, via @nx/eslint/plugin (correct subpath; the bare
package name silently produces zero targets - same gotcha as
@nx/vitest before it). Despite there being only one shared root
eslint.config.js and no per-package configs, the plugin's glob also
matches every package.json, so it still creates a real per-project
"lint" target for all 26 projects, each scoped to just that project's
files. Root `lint` script untouched.

Verified: nx run-many -t lint succeeds for all 26 projects (exit 0 -
same "warnings don't fail the run" semantics as the existing root
lint); root `pnpm run lint`/`check:format` still pass unchanged.

Phase 2b - typecheck, via @nx/vite/plugin's typecheckTargetName
(a Vite-specific plugin, distinct from the build/serve/preview targets
it also wants to create - those are pointed at unused names, since
this repo builds everything through one root vite.config.ts rather
than per-package, so auto-generated per-package build/serve targets
would be noise, not signal).

This one is genuinely partial, matching the spec's own "fragile,
spike-gated" flag for this phase: the plugin only creates a typecheck
target for projects with their own real vite.config.ts - design-system,
web-client, web-pkg, web-test-helpers, web-test-helpers-core (5 of 27).
The other ~20 web-app-*/web-runtime projects only have a vitest.config.ts
(they're bundled together, not built independently), which this plugin
doesn't pick up for typecheck at all. Extending coverage to them would
mean either giving each its own vite.config.ts or splitting the shared
tsconfig into real TS project references - both bigger, riskier changes
not attempted here. Root `pnpm run check:types` (whole-repo vue-tsc,
unchanged) stays the one check that covers everything; the 5 new
per-project targets are an additive convenience on top, not a
replacement.

Verified: nx run-many -t typecheck succeeds for all 5 registered
projects; a deliberately injected type error in web-pkg/src/index.ts
was caught correctly (TS2322, exit 1) and reverted; root
`pnpm run check:types` (vue-tsc --noEmit, synchronous, real captured
exit code) still passes clean, 0 errors.
2026-09-21 17:45:46 +02:00

141 lines
5.1 KiB
JSON

{
"version": "12.5.0",
"private": true,
"homepage": "https://github.com/owncloud/web",
"license": "Apache-2.0",
"author": "ownCloud GmbH <devops@owncloud.com>",
"type": "module",
"scripts": {
"build": "vue-demi-fix && pnpm build:tokens && pnpm vite build",
"build:w": "pnpm build --watch",
"build:tokens": "pnpm --filter @ownclouders/design-system tokens",
"lint": "eslint vite.config.ts '{packages,tests}/**/*.{js,ts,vue}' --color",
"serve": "SERVER=true pnpm build:w",
"test:e2e:playwright": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx playwright test --config=tests/e2e/",
"docs:screenshots": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx playwright test --config=tests/e2e/docs/playwright.config.ts",
"test:unit": "NODE_OPTIONS=--unhandled-rejections=throw vitest",
"licenses:check": "license-checker-rseidelsohn --summary --relativeLicensePath --onlyAllow 'Python-2.0;Apache*;Apache License, Version 2.0;Apache-2.0;Apache 2.0;Artistic-2.0;BSD;BSD-3-Clause;CC-BY-3.0;CC-BY-4.0;CC0-1.0;ISC;MIT;MPL-2.0;Public Domain;Unicode-TOU;Unlicense;WTFPL;BlueOak-1.0.0' --excludePackages '@ownclouders/babel-preset;@ownclouders/eslint-config;@ownclouders/prettier-config;@ownclouders/tsconfig;@ownclouders/web-client;@ownclouders/web-pkg;external;web-app-files;text-editor;preview;web-app-ocm;@ownclouders/design-system;pdf-viewer;web-app-search;admin-settings;webfinger;web-runtime;@ownclouders/web-test-helpers'",
"licenses:csv": "license-checker-rseidelsohn --relativeLicensePath --csv --out ./third-party-licenses/third-party-licenses.csv",
"licenses:save": "license-checker-rseidelsohn --relativeLicensePath --out /dev/null --files ./third-party-licenses/third-party-licenses",
"vite": "vue-demi-fix && vite",
"check:types": "pnpm build:tokens && vue-tsc --noEmit",
"check:format": "prettier --check \"./**/*.{ts,js,vue}\"",
"check:all": "pnpm check:types && pnpm lint --fix && pnpm check:format && pnpm test:unit",
"format": "prettier --write \"./**/*.{ts,js,vue}\""
},
"browserslist": [
"last 1 year",
"> .2%",
"not dead",
"not Explorer > 0",
"not ExplorerMobile > 0",
"not BlackBerry > 0",
"not OperaMini all",
"not OperaMobile > 0"
],
"devDependencies": {
"@axe-core/playwright": "^4.11.0",
"@babel/core": "7.29.6",
"@babel/preset-env": "7.28.5",
"@babel/register": "7.28.3",
"@noble/hashes": "2.0.1",
"@nx/eslint": "23.2.1",
"@nx/vite": "23.2.1",
"@nx/vitest": "23.2.1",
"@ownclouders/babel-preset": "workspace:*",
"@ownclouders/eslint-config": "workspace:*",
"@ownclouders/prettier-config": "workspace:*",
"@ownclouders/tsconfig": "workspace:*",
"@playwright/test": "1.59.1",
"@types/luxon": "3.7.1",
"@types/mark.js": "8.11.12",
"@types/semver": "7.7.1",
"@types/uuid": "11.0.0",
"@vitejs/plugin-vue": "6.0.1",
"@vitest/coverage-v8": "4.1.5",
"@vitest/web-worker": "4.1.5",
"@vue/compiler-dom": "3.5.29",
"@vue/compiler-sfc": "3.5.29",
"@vue/test-utils": "2.4.6",
"axe-core": "^4.11.0",
"browserslist-to-esbuild": "^2.1.1",
"browserslist-useragent-regexp": "^4.1.3",
"commander": "14.0.2",
"debug": "^4.4.3",
"ejs": "4.0.1",
"eslint": "9.39.1",
"git-repo-info": "2.1.1",
"globals": "^16.5.0",
"happy-dom": "20.8.9",
"jimp": "^1.6.0",
"jsdom": "^27.2.0",
"jsqr": "^1.4.0",
"license-checker-rseidelsohn": "4.4.2",
"node-fetch": "3.3.2",
"nx": "^23.2.1",
"pino": "10.1.0",
"pino-pretty": "13.1.2",
"prettier": "^3.6.2",
"qs": "6.15.2",
"requirejs": "2.3.7",
"rollup-plugin-gzip": "^4.1.1",
"rollup-plugin-visualizer": "6.0.5",
"simple-git": "3.36.0",
"speakeasy": "^2.0.0",
"ts-node": "10.9.2",
"tslib": "2.8.1",
"typescript": "5.9.3",
"vite": "7.3.5",
"vite-plugin-environment": "^1.1.3",
"vite-plugin-node-polyfills": "0.24.0",
"vite-plugin-static-copy": "^3.1.4",
"vite-plugin-treat-umd-as-commonjs": "0.1.4",
"vitest": "^4.1.11",
"vitest-mock-extended": "3.1.0",
"vue": "3.5.29",
"vue-demi": "0.14.10",
"vue-tsc": "3.1.4",
"vue3-gettext": "^4.0.1"
},
"engines": {
"node": ">=24.15.0"
},
"packageManager": "pnpm@10.33.3",
"volta": {
"node": "24.15.0"
},
"pnpm": {
"overrides": {
"nanoid": "^3.3.17",
"elliptic": "6.6.1",
"sha.js": "2.4.12",
"vitest": "4.1.11",
"@types/node": "24.13.2",
"@xmldom/xmldom": "0.8.15",
"flatted": "3.4.2",
"form-data": "4.0.6",
"immutable": "5.1.8",
"js-cookie": "3.0.7",
"linkify-it": "5.0.2",
"minimatch": "10.2.5",
"brace-expansion": "5.0.9",
"ws": "8.21.0",
"js-yaml": "4.3.2",
"fast-uri": "3.1.6",
"browserslist": "4.28.7"
},
"patchedDependencies": {
"caf@15.0.1": "patches/caf@15.0.1.patch",
"portal-vue@3.0.0": "patches/portal-vue@3.0.0.patch",
"vue-select@4.0.0-beta.6": "patches/vue-select@4.0.0-beta.6.patch"
}
},
"dependencies": {
"@chevrotain/regexp-to-ast": "^11.2.0",
"crelt": "^1.0.6",
"mermaid": "^11.16.1",
"vscode-jsonrpc": "^8.2.1",
"vscode-languageserver-types": "^3.17.5"
}
}