mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-21 09:18:45 +00:00
- Add `typecheck` command to all packages. - Use turbo to build and watch concurrently with caches. - Remove root `bin/` folder with last global scripts - `bin/companion.sh` -> `@uppy/companion/start-dev` (`yarn start:companion` still works) - `bin/build-components.mjs` -> `@uppy/components/migrate.mjs` (`yarn migrate:components` can be used to run it). This only needs to be ran for new components, not changing existing ones, so that's why it's not part of the build process. turbo is smart enough to build dependencies within a package first before building the package itself (e.g if wanting to build @uppy/audio, build @uppy/utils first). Unfortunately @uppy/core is a peer dep everywhere turbo does not take it into account, yet it must be build first to avoid race conditions. Therefor I added a turbo.json to each package, which you normally never need, but this is an odd case I suppose. Other solutions ran into cyclic dep errors. Another PR would move over the test commands to turbo too.
73 lines
4 KiB
JSON
73 lines
4 KiB
JSON
{
|
|
"name": "@uppy-dev/build",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
"examples/*",
|
|
"packages/@uppy/*",
|
|
"packages/@uppy/angular/projects/uppy/*",
|
|
"packages/uppy",
|
|
"private/*",
|
|
"test/endtoend",
|
|
"e2e"
|
|
],
|
|
"scripts": {
|
|
"build": "turbo run build build:css --filter='./packages/@uppy/*' --filter='./packages/uppy'",
|
|
"build:clean": "cp .gitignore .gitignore.bak && printf '!node_modules\n!**/node_modules/**/*\n' >> .gitignore; git clean -Xfd packages e2e .parcel-cache coverage; mv .gitignore.bak .gitignore",
|
|
"migrate:components": "yarn workspace @uppy/components migrate",
|
|
"check": "yarn exec biome check --write",
|
|
"check:ci": "yarn exec biome ci",
|
|
"dev": "yarn workspace @uppy-dev/dev dev",
|
|
"dev:with-companion": "npm-run-all --parallel start:companion dev",
|
|
"e2e:ci": "start-server-and-test 'npm-run-all --parallel e2e:client start:companion:with-loadbalancer' '1234|3020' e2e:headless",
|
|
"e2e:client": "yarn workspace e2e client:start",
|
|
"e2e:cypress": "yarn workspace e2e cypress:open",
|
|
"e2e:generate": "yarn workspace e2e generate-test",
|
|
"e2e:headless": "yarn workspace e2e cypress:headless",
|
|
"e2e": "npm-run-all --parallel watch e2e:client start:companion:with-loadbalancer e2e:cypress",
|
|
"release": "PACKAGES=$(yarn workspaces list --json) yarn workspace @uppy-dev/release interactive",
|
|
"size": "echo 'JS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.css | gzip | wc -c",
|
|
"start:companion": "yarn workspace @uppy/companion start:dev",
|
|
"start:companion:with-loadbalancer": "e2e/start-companion-with-load-balancer.mjs",
|
|
"test": "npm-run-all lint test:locale-pack test:unit test:companion",
|
|
"test:companion": "yarn workspace @uppy/companion test",
|
|
"test:companion:watch": "yarn workspace @uppy/companion test --watch",
|
|
"test:locale-packs": "yarn locale-packs:unused && yarn locale-packs:warnings",
|
|
"test:locale-packs:unused": "yarn workspace @uppy-dev/locale-pack test unused",
|
|
"test:locale-packs:warnings": "yarn workspace @uppy-dev/locale-pack test warnings",
|
|
"test:unit": "yarn test:watch --run",
|
|
"test:watch": "vitest --environment jsdom --dir packages/@uppy",
|
|
"typecheck": "turbo run typecheck --filter='./packages/@uppy/*' --filter='./packages/uppy'",
|
|
"watch": "turbo watch build build:css --filter='./packages/@uppy/*'",
|
|
"test:locale-pack": "yarn workspace @uppy/locales test",
|
|
"test:ts": "yarn tsc -b && yarn workspace @uppy/svelte check",
|
|
"uploadcdn": "yarn workspace uppy exec -- node upload-to-cdn.js",
|
|
"version": "yarn node ./bin/after-version-bump.js"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "^18",
|
|
"@types/webpack-dev-server": "^4",
|
|
"@vitest/utils": "patch:@vitest/utils@npm%3A1.2.1#./.yarn/patches/@vitest-utils-npm-1.2.1-3028846845.patch",
|
|
"p-queue": "patch:p-queue@npm%3A8.0.1#~/.yarn/patches/p-queue-npm-8.0.1-fe1ddcd827.patch",
|
|
"resize-observer-polyfill": "patch:resize-observer-polyfill@npm%3A1.5.1#./.yarn/patches/resize-observer-polyfill-npm-1.5.1-603120e8a0.patch",
|
|
"start-server-and-test": "patch:start-server-and-test@npm:1.14.0#.yarn/patches/start-server-and-test-npm-1.14.0-841aa34fdf.patch",
|
|
"uuid@^8.3.2": "patch:uuid@npm:8.3.2#.yarn/patches/uuid-npm-8.3.2-eca0baba53.patch"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.0.5",
|
|
"jsdom": "^26.1.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"start-server-and-test": "^1.14.0",
|
|
"turbo": "^2.5.4",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^1.6.1",
|
|
"vue-template-compiler": "workspace:*"
|
|
},
|
|
"packageManager": "yarn@4.4.1+sha224.fd21d9eb5fba020083811af1d4953acc21eeb9f6ff97efd1b3f9d4de",
|
|
"engines": {
|
|
"node": "^16.15.0 || >=18.0.0",
|
|
"yarn": "3.6.1"
|
|
}
|
|
}
|