[packaging] switch to pnpm (#6186)

* [packaging] switch to pnpm
* Bump compiler version
* Change pnpm store in docker build
---------

Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com>
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
feederbox826
2025-11-09 17:17:25 -05:00
committed by GitHub
parent d52b6afd4a
commit 600cb15102
19 changed files with 12797 additions and 9674 deletions

View File

@@ -2,8 +2,8 @@
# dependencies
/node_modules
/.pnp
.pnp.js
pnpm-lock.yaml
pnpm-workspace.yaml
# locales
src/locales/**/*.json

View File

@@ -4,7 +4,7 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
In the project directory, you can run:
### `yarn start`
### `npm run start`
Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
@@ -12,12 +12,12 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br />
You will also see any lint errors in the console.
### `yarn test`
### `npm run test`
Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
### `npm run build`
Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -27,13 +27,13 @@ Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn format`
### `npm run format`
Formats the whitespace of all typescript and scss code with prettier, to ease editing and ensure a common code style.
Should ideally be run before all frontend PRs.
### `yarn eject`
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
@@ -69,6 +69,6 @@ This section has moved here: https://facebook.github.io/create-react-app/docs/ad
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `yarn build` fails to minify
### `npm run build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

View File

@@ -6,9 +6,9 @@
"scripts": {
"start": "vite",
"build": "vite build",
"build-ci": "yarn run validate && yarn run build",
"validate": "yarn run lint && yarn run check && yarn run format-check",
"lint": "yarn run lint:js && yarn run lint:css",
"build-ci": "npm run validate && npm run build",
"validate": "npm run lint && npm run check && npm run format-check",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint --cache \"src/**/*.scss\"",
"lint:js": "eslint --cache src/",
"check": "tsc --noEmit",
@@ -35,6 +35,7 @@
"@react-hook/resize-observer": "^1.2.6",
"@silvermine/videojs-airplay": "^1.2.0",
"@silvermine/videojs-chromecast": "^1.4.1",
"@types/react-router-dom": "^5.3.3",
"apollo-upload-client": "^18.0.1",
"base64-blob": "^1.4.1",
"bootstrap": "^4.6.2",

11148
ui/v2.5/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
onlyBuiltDependencies:
- '@parcel/watcher'
- core-js
- esbuild

View File

@@ -1614,7 +1614,7 @@ export const mutateAddGalleryImages = (input: GQL.GalleryAddInput) =>
});
function evictCover(cache: ApolloCache<GQL.Gallery>, gallery_id: string) {
const fields: Pick<Modifiers<GQL.Gallery>, "paths" | "cover"> = {};
const fields: Partial<Pick<Modifiers<GQL.Gallery>, "paths" | "cover">> = {};
fields.paths = (paths) => {
if (!("cover" in paths)) {
return paths;

File diff suppressed because it is too large Load Diff