Merge pull request #273796 from szlend/redocly-fix-build-docs

redocly-cli: fix build-docs command
This commit is contained in:
Domen Kožar 2023-12-18 17:28:01 +00:00 committed by GitHub
commit 2381cb3eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,10 @@ buildNpmPackage rec {
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
npm --prefix packages/cli run copy-assets
'';
postInstall = ''
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