Skip to content

Commit

Permalink
fix(scripts): why do many upgrade when one upgrade do trick? (#377)
Browse files Browse the repository at this point in the history
* fix(scripts): why do many upgrade when one upgrade do trick?

* chore(deps): use LWC v6
  • Loading branch information
wjhsf authored Jul 1, 2024
1 parent 71098b2 commit 7c91918
Show file tree
Hide file tree
Showing 3 changed files with 636 additions and 301 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@
"test": "jest"
},
"dependencies": {
"@lwc/engine-dom": "6.6.5",
"@lwc/engine-server": "6.6.5",
"@lwc/compiler": "6.7.2",
"@lwc/engine-dom": "6.7.2",
"@lwc/engine-server": "6.7.2",
"@lwc/jest-preset": "16.0.0",
"@lwc/jest-resolver": "16.0.0",
"@lwc/jest-serializer": "16.0.0",
"@lwc/jest-transformer": "16.0.0",
"@lwc/module-resolver": "6.6.5",
"@lwc/synthetic-shadow": "6.6.5",
"@lwc/wire-service": "6.6.5",
"@lwc/module-resolver": "6.7.2",
"@lwc/synthetic-shadow": "6.7.2",
"@lwc/wire-service": "6.7.2",
"@salesforce/wire-service-jest-util": "4.1.4",
"fast-glob": "^3.3.2",
"jest": "29.7.0",
Expand Down
21 changes: 11 additions & 10 deletions scripts/upgrade-lwc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
LWC_VERSION=$1
LWC_TEST_VERSION=$2

yarn upgrade @lwc/compiler@$LWC_VERSION
yarn upgrade @lwc/engine-dom@$LWC_VERSION
yarn upgrade @lwc/module-resolver@$LWC_VERSION
yarn upgrade @lwc/wire-service@$LWC_VERSION
yarn upgrade @lwc/synthetic-shadow@$LWC_VERSION

yarn upgrade @lwc/jest-resolver@$LWC_TEST_VERSION
yarn upgrade @lwc/jest-serializer@$LWC_TEST_VERSION
yarn upgrade @lwc/jest-transformer@$LWC_TEST_VERSION
yarn upgrade @lwc/jest-preset@$LWC_TEST_VERSION
yarn upgrade \
@lwc/compiler@$LWC_VERSION \
@lwc/engine-dom@$LWC_VERSION \
@lwc/engine-server@$LWC_VERSION \
@lwc/module-resolver@$LWC_VERSION \
@lwc/wire-service@$LWC_VERSION \
@lwc/synthetic-shadow@$LWC_VERSION \
@lwc/jest-resolver@$LWC_TEST_VERSION \
@lwc/jest-serializer@$LWC_TEST_VERSION \
@lwc/jest-transformer@$LWC_TEST_VERSION \
@lwc/jest-preset@$LWC_TEST_VERSION \
Loading

0 comments on commit 7c91918

Please sign in to comment.