File tree Expand file tree Collapse file tree 11 files changed +10445
-6987
lines changed Expand file tree Collapse file tree 11 files changed +10445
-6987
lines changed Original file line number Diff line number Diff line change 1+ /.yarn /** linguist-vendored
2+ /.yarn /releases /* binary
3+ /.yarn /plugins /** /* binary
4+ /.pnp. * binary linguist-generated
Original file line number Diff line number Diff line change 2626 key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
2727 restore-keys : |
2828 ${{ runner.os }}-yarn-
29- - run : yarn --frozen-lockfile
29+ - run : yarn --immutable
3030 - run : yarn check-lint
3131 - run : yarn check-format
3232
4545 key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
4646 restore-keys : |
4747 ${{ runner.os }}-yarn-
48- - run : yarn --frozen-lockfile && yarn build
48+ - run : yarn --immutable && yarn build
4949 - name : Check if js dist files are current
5050 id : changes
5151 run : |
Original file line number Diff line number Diff line change 1- .doctor-rst.cache
2- .php-cs-fixer.cache
1+ # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
2+ .yarn /*
3+ ! .yarn /cache
4+ ! .yarn /patches
5+ ! .yarn /plugins
6+ ! .yarn /releases
7+ ! .yarn /sdks
8+ ! .yarn /versions
9+
310node_modules
411yarn-error.log
12+
13+ .doctor-rst.cache
14+ .php-cs-fixer.cache
515/composer.lock
616/vendor
Original file line number Diff line number Diff line change 1+ nodeLinker : node-modules
Original file line number Diff line number Diff line change 1111
1212runTestSuite () {
1313 echo -e " Running tests for $workspace ...\n"
14- yarn workspace $workspace run vitest --run || { all_tests_passed=false; }
14+ yarn workspace $workspace run -T vitest --run || { all_tests_passed=false; }
1515}
1616
1717processWorkspace () {
@@ -48,19 +48,21 @@ processWorkspace() {
4848 fi
4949}
5050
51- # Get all workspace names
52- workspaces_info=$( yarn -s workspaces info)
53-
5451# Iterate over each workspace using process substitution
5552while IFS= read -r workspace_info; do
5653 # Split the workspace_info into workspace and location
57- workspace=$( echo " $workspace_info " | awk ' {print $1}' )
58- location=$( echo " $workspace_info " | awk ' {print $2}' )
54+ workspace=$( echo " $workspace_info " | jq -r ' .name' )
55+ location=$( echo " $workspace_info " | jq -r ' .location' )
56+
57+ # Skip the root workspace
58+ if [ $workspace == " null" ]; then
59+ continue
60+ fi
5961
6062 # Call the function to process the workspace
6163 processWorkspace " $workspace " " $location "
6264
63- done < <( echo " $workspaces_info " | jq -r ' to_entries[0:] | .[] | "\(.key) \(.value.location)" ' )
65+ done < <( yarn workspaces list --json )
6466
6567# Check the flag at the end and exit with code 1 if any test failed
6668if [ " $all_tests_passed " = false ]; then
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
3- "workspaces" : [" src/*/assets" , " src/*/src/Bridge/*/assets" ],
3+ "packageManager" :
" [email protected] " ,
4+ "workspaces" : [
5+ " src/*/assets" ,
6+ " src/*/src/Bridge/*/assets"
7+ ],
48 "scripts" : {
59 "build" : " node bin/build_javascript.js && node bin/build_styles.js" ,
610 "test" : " bin/run-vitest-all.sh" ,
2832 "vitest" : " ^2.1.1"
2933 },
3034 "resolutions" : {
31- "@swup/prettier-config" : " link:node_modules/.cache/null" ,
32- "@swup/browserslist-config" : " link:node_modules/.cache/null" ,
33- "microbundle" : " link:node_modules/.cache/null" ,
34- "prettier" : " link:node_modules/.cache/null" ,
35- "shelljs" : " link:node_modules/.cache/null" ,
36- "shelljs-live" : " link:node_modules/.cache/null"
37- },
38- "packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" 35+ "@swup/plugin/@swup/prettier-config" : " link:node_modules/.cache/null" ,
36+ "@swup/plugin/@swup/browserslist-config" : " link:node_modules/.cache/null" ,
37+ "@swup/plugin/microbundle" : " link:node_modules/.cache/null" ,
38+ "@swup/plugin/prettier" : " link:node_modules/.cache/null" ,
39+ "@swup/plugin/shelljs" : " link:node_modules/.cache/null" ,
40+ "@swup/plugin/shelljs-live" : " link:node_modules/.cache/null"
41+ }
3942}
Original file line number Diff line number Diff line change 2727 }
2828 },
2929 "peerDependencies" : {
30- "cropperjs " : " ^1.5.9 " ,
31- "@hotwired/stimulus " : " ^3.0.0 "
30+ "@hotwired/stimulus " : " ^3.0.0 " ,
31+ "cropperjs " : " ^1.5.9 "
3232 },
3333 "devDependencies" : {
34- "cropperjs " : " ^1.5.9 " ,
35- "@hotwired/stimulus " : " ^3.0.0 "
34+ "@hotwired/stimulus " : " ^3.0.0 " ,
35+ "cropperjs " : " ^1.5.9 "
3636 }
3737}
Original file line number Diff line number Diff line change 2424 }
2525 },
2626 "peerDependencies" : {
27+ "@hotwired/stimulus" : " ^3.0.0" ,
28+ "@swup/debug-plugin" : " ^3.0" ,
2729 "@swup/fade-theme" : " ^1.0" ,
28- "@swup/slide-theme" : " ^1.0" ,
2930 "@swup/forms-plugin" : " ^2.0" ,
30- "@swup/debug-plugin" : " ^3.0" ,
31- "swup" : " ^3.0" ,
32- "@hotwired/stimulus" : " ^3.0.0"
31+ "@swup/slide-theme" : " ^1.0" ,
32+ "swup" : " ^3.0"
3333 },
3434 "devDependencies" : {
35+ "@hotwired/stimulus" : " ^3.0.0" ,
36+ "@swup/debug-plugin" : " ^3.0" ,
3537 "@swup/fade-theme" : " ^1.0" ,
36- "@swup/slide-theme" : " ^1.0" ,
3738 "@swup/forms-plugin" : " ^2.0" ,
38- "@swup/debug-plugin" : " ^3.0" ,
39- "swup" : " ^3.0" ,
40- "@hotwired/stimulus" : " ^3.0.0"
39+ "@swup/slide-theme" : " ^1.0" ,
40+ "swup" : " ^3.0"
4141 }
4242}
Original file line number Diff line number Diff line change 2626 }
2727 },
2828 "peerDependencies" : {
29- "@hotwired/turbo " : " ^7.1.1 || ^8 .0" ,
30- "@hotwired/stimulus " : " ^3.0 .0"
29+ "@hotwired/stimulus " : " ^3.0 .0" ,
30+ "@hotwired/turbo " : " ^7.1.1 || ^8 .0"
3131 },
3232 "devDependencies" : {
33- "@hotwired/turbo " : " ^7.1.0 || ^8 .0" ,
34- "@hotwired/stimulus " : " ^3.0 .0"
33+ "@hotwired/stimulus " : " ^3.0 .0" ,
34+ "@hotwired/turbo " : " ^7.1.0 || ^8 .0"
3535 }
3636}
Original file line number Diff line number Diff line change 2121 }
2222 },
2323 "peerDependencies" : {
24- "typed.js " : " ^2 .0" ,
25- "@hotwired/stimulus " : " ^3.0 .0"
24+ "@hotwired/stimulus " : " ^3.0 .0" ,
25+ "typed.js " : " ^2 .0"
2626 },
2727 "devDependencies" : {
28- "typed.js " : " ^2 .0" ,
29- "@hotwired/stimulus " : " ^3.0 .0"
28+ "@hotwired/stimulus " : " ^3.0 .0" ,
29+ "typed.js " : " ^2 .0"
3030 }
3131}
You can’t perform that action at this time.
0 commit comments