-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1765 from trilitech/migrate-to-pnpm
Migrate to pnpm from yarn
- Loading branch information
Showing
28 changed files
with
21,014 additions
and
1,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,22 @@ jobs: | |
- name: Pull docker images | ||
run: docker compose pull --quiet & | ||
|
||
- name: Setup yarn | ||
run: | | ||
corepack enable | ||
yarn set version stable | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.7.1 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: "yarn" | ||
cache: "pnpm" | ||
|
||
- run: yarn install --immutable | ||
- run: pnpm install | ||
|
||
- name: Install Playwright browser | ||
run: yarn workspace @umami/desktop-e2e playwright install chromium --with-deps | ||
run: pnpm --filter=./apps/desktop-e2e exec playwright install chromium --with-deps | ||
|
||
- run: yarn test:e2e | ||
- run: pnpm test:e2e | ||
|
||
- name: Cucumber Report to Annotations | ||
uses: deblockt/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "@umami/desktop-e2e", | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].1", | ||
"scripts": { | ||
"clean": "rimraf dist .turbo", | ||
"check-circular-deps": "madge --extensions ts --circular src/*", | ||
"check-types:watch": "yarn check-types --watch", | ||
"check-types:watch": "pnpm check-types --watch", | ||
"check-types": "tsc", | ||
"format:ci": "prettier --ignore-path ../../.gitignore --check .", | ||
"format": "prettier --ignore-path ../../.gitignore --write .", | ||
|
@@ -14,6 +14,7 @@ | |
"test:e2e": "start-server-and-test \"turbo preview --filter=@umami/desktop\" http://127.0.0.1:3000 cucumber-js" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.5.12", | ||
"@types/lodash": "^4", | ||
"@types/node": "20.14.11", | ||
"@umami/eslint-config": "workspace:^", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,16 +13,16 @@ | |
"type": "commonjs", | ||
"main": "build/electron.js", | ||
"scripts": { | ||
"audit": "yarn npm audit --exclude @toruslabs/customauth", | ||
"audit": "pnpm audit --exclude @toruslabs/customauth", | ||
"build": "vite build", | ||
"clean": "rimraf build dist .turbo", | ||
"check-circular-deps": "madge --circular src/index.tsx", | ||
"check-types:watch": "yarn check-types --watch", | ||
"check-types:watch": "pnpm check-types --watch", | ||
"check-types": "tsc", | ||
"dev": "vite dev --host 127.0.0.1 --open", | ||
"docs": "typedoc", | ||
"electron:package:linux": "electron-builder -l", | ||
"electron:package:mac:debug": "DEBUG=true yarn build --mode dev && sed -i='' 's@devTools: false@devTools: true@g' build/electron.js && yarn electron:package:mac -c electron-builder.dev.yml && rm -rf build", | ||
"electron:package:mac:debug": "DEBUG=true pnpm build --mode dev && sed -i='' 's@devTools: false@devTools: true@g' build/electron.js && pnpm electron:package:mac -c electron-builder.dev.yml && rm -rf build", | ||
"electron:package:mac": "electron-builder -m", | ||
"electron:package:win": "electron-builder -w", | ||
"electron:start": "electronmon .", | ||
|
@@ -31,7 +31,7 @@ | |
"lint:ci": "eslint src --ext .js,.jsx,.ts,.tsx --max-warnings=0", | ||
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix", | ||
"preview": "vite preview --host 127.0.0.1 --port 3000", | ||
"test:watch": "cross-env DEV=true yarn test --watch", | ||
"test:watch": "cross-env DEV=true pnpm test --watch", | ||
"test": "cross-env TZ=CET jest", | ||
"theme:watch": "chakra-cli tokens src/style/theme.ts --watch", | ||
"theme": "chakra-cli tokens src/style/theme.ts" | ||
|
@@ -73,6 +73,7 @@ | |
"@types/babel__preset-env": "^7.9.7", | ||
"@types/identity-obj-proxy": "^3.0.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/lodash": "^4", | ||
"@types/md5": "^2.3.5", | ||
"@types/node": "20.14.11", | ||
"@types/papaparse": "^5.3.14", | ||
|
@@ -149,10 +150,10 @@ | |
"typescript": "5.5.4", | ||
"vite": "^5.4.2", | ||
"vite-plugin-checker": "^0.7.2", | ||
"vite-plugin-node-polyfills": "^0.22.0", | ||
"vite-plugin-node-polyfills": "^0.17.0", | ||
"zod": "^3.23.8" | ||
}, | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].1", | ||
"dependencies": { | ||
"electron-updater": "6.3.3" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,19 @@ | |
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"audit": "yarn npm audit --exclude @toruslabs/customauth", | ||
"audit": "pnpm audit --exclude @toruslabs/customauth", | ||
"build": "vite build", | ||
"clean": "rimraf dist .turbo", | ||
"check-circular-deps": "madge --circular src/main.tsx", | ||
"check-types:watch": "yarn check-types --watch", | ||
"check-types:watch": "pnpm check-types --watch", | ||
"check-types": "tsc", | ||
"dev": "vite --host 127.0.0.1 --open", | ||
"format:ci": "prettier --ignore-path ../../.gitignore --check .", | ||
"format": "prettier --ignore-path ../../.gitignore --write .", | ||
"lint:ci": "eslint src --ext .ts,.tsx --max-warnings=0", | ||
"lint": "eslint src --ext .ts,.tsx --fix", | ||
"preview": "vite preview", | ||
"test:watch": "cross-env DEV=true yarn test --watch", | ||
"test:watch": "cross-env DEV=true pnpm test --watch", | ||
"test": "cross-env TZ=CET jest", | ||
"storybook": "storybook dev -p 6006", | ||
"build:storybook": "storybook build" | ||
|
@@ -104,6 +104,7 @@ | |
"@testing-library/react": "^16.0.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/lodash": "^4", | ||
"@types/node": "20.14.11", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
|
@@ -116,15 +117,16 @@ | |
"eslint": "^8.57.0", | ||
"eslint-plugin-storybook": "^0.8.0", | ||
"jest": "^29.7.0", | ||
"jest-canvas-mock": "^2.5.2", | ||
"jest-transformer-svg": "^2.0.2", | ||
"madge": "^8.0.0", | ||
"prettier": "^3.3.2", | ||
"rimraf": "^6.0.1", | ||
"storybook": "^8.2.9", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.2", | ||
"vite-plugin-node-polyfills": "^0.22.0", | ||
"vite-plugin-node-polyfills": "^0.17.0", | ||
"vite-plugin-svgr": "^4.2.0" | ||
}, | ||
"packageManager": "[email protected].1" | ||
"packageManager": "[email protected].1" | ||
} |
Oops, something went wrong.
f7fb75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.