Skip to content

Commit

Permalink
Update vite / swc / ts versions (actualbudget#2268)
Browse files Browse the repository at this point in the history
* Update vite / swc / ts versions

* Release notes

* Revert root tsconfig module changes

* yarn dedupe

* Dummy update to run pipeline

* Update webpack and playwright

* Update playwright docker images
  • Loading branch information
joel-jeremy authored Jan 24, 2024
1 parent c8fdeac commit 4a6f0bb
Show file tree
Hide file tree
Showing 11 changed files with 249 additions and 415 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
needs: netlify
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.37.0-jammy
image: mcr.microsoft.com/playwright:v1.41.1-jammy
steps:
- uses: actions/checkout@v3
- name: Set up environment
Expand All @@ -51,7 +51,7 @@ jobs:
needs: netlify
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.37.0-jammy
image: mcr.microsoft.com/playwright:v1.41.1-jammy
steps:
- uses: actions/checkout@v3
- name: Set up environment
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@swc/core": "^1.3.82",
"@swc/jest": "^0.2.29",
"@swc/core": "^1.3.105",
"@swc/jest": "^0.2.31",
"@types/jest": "^27.5.0",
"@types/uuid": "^9.0.2",
"jest": "^27.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/api/tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"compilerOptions": {
// Using ES2021 because that’s the newest version where
// the latest Node 16.x release supports all of the features
"target": "es2021",
"target": "ES2021",
"module": "CommonJS",
"moduleResolution": "Node16",
"noEmit": false,
"declaration": true,
"outDir": "dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/crdt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@swc/core": "^1.3.82",
"@swc/jest": "^0.2.29",
"@swc/core": "^1.3.105",
"@swc/jest": "^0.2.31",
"@types/jest": "^27.5.0",
"@types/uuid": "^9.0.2",
"jest": "^27.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/crdt/tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
// Using ES2021 because that’s the newest version where
// the latest Node 16.x release supports all of the features
"target": "es2021",
"target": "ES2021",
"module": "CommonJS",
"noEmit": false,
"declaration": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ Next, navigate to the root of your project folder, run the standartised docker c

```sh
# Run docker container
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.1-jammy /bin/bash
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.41.1-jammy /bin/bash

# If you receive an error such as "docker: invalid reference format", please instead use the following command:
docker run --rm --network host -v ${pwd}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.1-jammy /bin/bash
docker run --rm --network host -v ${pwd}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.41.1-jammy /bin/bash

# Run the VRT tests: important - they MUST be ran against a HTTPS server
E2E_START_URL=https://192.168.0.178:3001 yarn vrt
Expand Down
19 changes: 10 additions & 9 deletions packages/desktop-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"devDependencies": {
"@juggle/resize-observer": "^3.1.2",
"@playwright/test": "^1.37.1",
"@playwright/test": "^1.41.1",
"@reach/listbox": "^0.18.0",
"@react-aria/focus": "^3.14.0",
"@react-aria/listbox": "^3.10.1",
Expand All @@ -16,8 +16,8 @@
"@react-stately/list": "^3.9.1",
"@rollup/plugin-inject": "^5.0.5",
"@svgr/cli": "^8.0.1",
"@swc/core": "^1.3.82",
"@swc/helpers": "^0.5.1",
"@swc/core": "^1.3.105",
"@swc/helpers": "^0.5.3",
"@swc/plugin-react-remove-properties": "^1.5.108",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
Expand All @@ -26,9 +26,9 @@
"@types/react-modal": "^3.16.0",
"@types/react-redux": "^7.1.25",
"@types/uuid": "^9.0.2",
"@types/webpack-bundle-analyzer": "^4.6.0",
"@types/webpack-bundle-analyzer": "^4.6.3",
"@use-gesture/react": "^10.3.0",
"@vitejs/plugin-basic-ssl": "^1.0.2",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"chokidar": "^3.5.3",
"cross-env": "^7.0.3",
Expand Down Expand Up @@ -65,12 +65,13 @@
"sass": "^1.63.6",
"swc-loader": "^0.2.3",
"terser-webpack-plugin": "^5.3.9",
"typescript": "^5.0.2",
"uuid": "^9.0.0",
"victory": "^36.6.8",
"vite": "^5.0.10",
"vite-tsconfig-paths": "^4.2.2",
"vitest": "^1.0.4",
"webpack-bundle-analyzer": "^4.9.1",
"vite": "^5.0.12",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.1",
"webpack-bundle-analyzer": "^4.10.1",
"xml2js": "^0.6.2"
},
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions packages/loot-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
"devDependencies": {
"@actual-app/api": "*",
"@actual-app/crdt": "*",
"@swc/core": "^1.3.82",
"@swc/helpers": "^0.5.1",
"@swc/jest": "^0.2.29",
"@swc/core": "^1.3.105",
"@swc/helpers": "^0.5.3",
"@swc/jest": "^0.2.31",
"@types/better-sqlite3": "^7.6.8",
"@types/jest": "^27.5.0",
"@types/jlongster__sql.js": "npm:@types/sql.js@latest",
"@types/pegjs": "^0.10.3",
"@types/react-redux": "^7.1.25",
"@types/uuid": "^9.0.2",
"@types/webpack": "^5.28.2",
"@types/webpack-bundle-analyzer": "^4.6.0",
"@types/webpack": "^5.28.5",
"@types/webpack-bundle-analyzer": "^4.6.3",
"adm-zip": "^0.5.9",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
Expand All @@ -73,10 +73,10 @@
"terser-webpack-plugin": "^5.3.9",
"throttleit": "^1.0.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"typescript": "^5.0.2",
"uuid": "^9.0.0",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.9.1",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4",
"yargs": "^9.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"checkJs": false,
// Used for temp builds
"outDir": "build",
"moduleResolution": "Node",
"moduleResolution": "Node10",
"module": "ES2022",
// Until/if we build using tsc
"noEmit": true,
Expand All @@ -44,7 +44,7 @@
"exclude": ["**/node_modules/*", "**/build/*", "**/lib-dist/*"],
"ts-node": {
"compilerOptions": {
"module": "commonjs"
"module": "CommonJS"
}
}
}
6 changes: 6 additions & 0 deletions upcoming-release-notes/2268.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [joel-jeremy]
---

Update vite / swc / ts versions.
Loading

0 comments on commit 4a6f0bb

Please sign in to comment.