WIP: rtl-css workaround

Link node_modules where frappe expects them to be
This commit is contained in:
teutat3s 2023-06-02 12:06:46 +02:00
parent 4a3e30097a
commit 9ecee0f00e
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,18 @@
diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js
index c3b59bcd9e..86af51a110 100644
--- a/esbuild/esbuild.js
+++ b/esbuild/esbuild.js
@@ -166,12 +166,7 @@ function build_assets_for_apps(apps, files) {
files: style_file_map,
outdir: output_path,
});
- let rtl_style_build = build_style_files({
- files: rtl_style_file_map,
- outdir: output_path,
- rtl_style: true,
- });
- return Promise.all([build, style_build, rtl_style_build]);
+ return Promise.all([build, style_build]);
});
}

View file

@ -52,6 +52,10 @@ let
hash = "sha256-PBdMUz9gJIoQaqQYbdk+xnd8CyZPmdeyz/9WznCb4Ss=";
};
patches = [
./esbuild-js-fix-css-build.patch
];
buildPhase = ''
runHook preBuild
# Yarn writes cache directories etc to $HOME.
@ -81,6 +85,10 @@ let
yarn --offline production
# Frappe expects node_modules linked to this directory
ln -s ${erpnext-modules}/node_modules sites/assets/erpnext/node_modules
ln -s $node_modules sites/assets/frappe/node_modules
# Clean up
rm sites/apps.txt