Commit 2120161
committed
chore: lighter prod dependencies
We move development dependencies to devDependencies, such that `npm
install --omit=dev` becomes faster and more lightweight. In the case of
frontend-app-profile, this changes shaves off a few hundred MB of disk
space.
Note the move of @babel/preset-typescript from devDependencies to
dependencies: this fixes MFE build with yarn, which was previously
failing:
git clone https://github.com/openedx/frontend-app-profile/
cd frontend-app-profile
yarn install
npm run build
Was resulting in the following error:
ERROR in ./src/index.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find package '@babel/preset-typescript' imported from node_modules/@openedx/frontend-build/config/babel-virtual-resolve-base.js
This is because yarn does not install devDependencies of package
dependencies, as opposed to npm.1 parent ec9f943 commit 2120161
3 files changed
+613
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments