导轨指南说:
如果在 Webpacker 上运行,请更改 package.json 中 Rails JavaScript 包的版本并运行 yarn install。
最好的方法是什么?
例子
我正在从 rails 6.1.4.4 升级到 rails 7.0.0。这是我当前的 package.json
{
"name": "myapp",
"private": true,
"dependencies": {
"@rails/actioncable": "^6.0.0",
"@rails/activestorage": "^6.0.0",
"@rails/ujs": "^6.0.0",
"@rails/webpacker": "5.4.3",
"bootstrap": "^4.5.2",
"jquery": "^3.5.1",
"popper.js": "^1.16.1"
},
"version": "0.1.0",
"devDependencies": {
"webpack-dev-server": "^3.11.0"
}
}
我是否应该手动将以@rails 开头的每一行更改为“^7.0.0”而保留所有其他行?