redocly-cli: fix build-docs command
This commit is contained in:
parent
a8d3e143c9
commit
0e27b4d33f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue