Skip to content

Commit

Permalink
chore: update package.json with optional dependencies for mac users
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu <mathieu.coulibaly@sncf.fr>
  • Loading branch information
Caracol3 committed Oct 30, 2024
1 parent 66527c9 commit 61d51e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.0.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-arm64-gnu": "^4.23.0"
},
"resolutions": {
"react-error-overlay": "6.0.9",
"@nivo/line": "^0.80.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,7 @@ const checkCurrentConfig = (
rollingStockComfort,
initialSpeed: initialSpeed ? kmhToMs(initialSpeed) : 0,
usingElectricalProfiles,
path: compact(pathSteps).map((step) => {
const { id, isInvalid, ...stepLocation } = step;
if ('uic' in stepLocation) {
return { id, uic: stepLocation.uic };
}
return { id, isInvalid, ...getStepLocation(step) };
}),
path: compact(pathSteps).map((step) => ({ id: step.id, ...getStepLocation(step) })),
margins: formatMargin(compact(pathSteps)),
schedule: formatSchedule(compact(pathSteps)),
powerRestrictions: powerRestriction,
Expand Down
5 changes: 5 additions & 0 deletions front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,11 @@
resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.23.0.tgz#1b685e1c219494e39f7441cd6b15fe4779ceda77"
integrity sha512-nAbWsDZ9UkU6xQiXEyXBNHAKbzSAi95H3gTStJq9UGiS1v+YVXwRHcQOQEF/3CHuhX5BVhShKoeOf6Q/1M+Zhg==

"@rollup/rollup-linux-arm64-gnu@^4.23.0":
version "4.24.0"
resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz#1632990f62a75c74f43e4b14ab3597d7ed416496"
integrity sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==

"@rollup/rollup-linux-arm64-musl@4.23.0":
version "4.23.0"
resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.23.0.tgz#a6cf6cdb340abde851b055e6d8785308ef4ace1a"
Expand Down

0 comments on commit 61d51e2

Please sign in to comment.