redocly-cli: fix build-docs command

This commit is contained in:
Simon Žlender 2023-12-12 18:26:10 +01:00
parent a8d3e143c9
commit 0e27b4d33f

View file

@ -21,6 +21,10 @@ buildNpmPackage rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
postBuild = ''
npm --prefix packages/cli run copy-assets
'';
postInstall = '' postInstall = ''
rm $out/lib/node_modules/@redocly/cli/node_modules/@redocly/{cli,openapi-core} rm $out/lib/node_modules/@redocly/cli/node_modules/@redocly/{cli,openapi-core}
cp -R packages/cli $out/lib/node_modules/@redocly/cli/node_modules/@redocly/cli cp -R packages/cli $out/lib/node_modules/@redocly/cli/node_modules/@redocly/cli