Skip to content

Commit d62a25b

Browse files
committed
Moving Turbo to be a peer dependency
This should guarantee that the the same "turbo" module is used from both the symfony/ux-turbo package and the end-users code (as well as from any other libraries that could potentially list turbo as a peer dependency)
1 parent 9e4a766 commit d62a25b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Turbo/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Install this bundle using Composer and Symfony Flex:
2121
```sh
2222
composer require symfony/ux-turbo
2323

24+
# install turbo itself
25+
yarn add @hotwired/turbo --dev
26+
2427
# Don't forget to install the JavaScript dependencies as well and compile
2528
yarn install --force
2629
yarn encore dev

src/Turbo/Resources/assets/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
"test": "babel src -d dist && jest",
2020
"lint": "eslint src test"
2121
},
22-
"dependencies": {
23-
"@hotwired/turbo": "^7.0.0-beta.4"
24-
},
2522
"peerDependencies": {
23+
"@hotwired/turbo": "^7.0.0-beta.5",
2624
"stimulus": "^2.0.0"
2725
},
2826
"devDependencies": {
2927
"@babel/cli": "^7.12.1",
3028
"@babel/core": "^7.12.3",
3129
"@babel/plugin-proposal-class-properties": "^7.12.1",
3230
"@babel/preset-env": "^7.12.7",
31+
"@hotwired/turbo": "^7.0.0-beta.5",
3332
"@symfony/stimulus-testing": "^1.1.0",
3433
"stimulus": "^2.0.0"
3534
},

src/Turbo/Tests/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"devDependencies": {
3+
"@hotwired/turbo": "^7.0.0-beta.5",
34
"@symfony/ux-turbo": "file:../../Resources/assets",
45
"@symfony/ux-turbo-mercure": "file:../../Bridge/Mercure/Resources/assets",
56
"@symfony/webpack-encore": "^0.32.0",

0 commit comments

Comments
 (0)