problem with code tag on json and use COPYFILES instead of Mac CP command

This commit is contained in:
davew 2020-09-17 11:27:41 -07:00
parent 8e3a7f6084
commit 5d35a7ec60
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@
"bundle:standalone": "webpack --env.standalone --mode=production", "bundle:standalone": "webpack --env.standalone --mode=production",
"bundle:lib": "webpack --mode=production && npm run declarations", "bundle:lib": "webpack --mode=production && npm run declarations",
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone", "bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone",
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/", "declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && copyfiles --all src/types typings/",
"stats": "webpack --env.standalone --json --profile --mode=production > stats.json", "stats": "webpack --env.standalone --json --profile --mode=production > stats.json",
"prettier": "prettier --write \"cli/index.ts\" \"src/**/*.{ts,tsx}\"", "prettier": "prettier --write \"cli/index.ts\" \"src/**/*.{ts,tsx}\"",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",

View File

@ -4,9 +4,9 @@ export function jsonToHTML(json, maxExpandLevel) {
level = 1; level = 1;
let output = ''; let output = '';
output += '<div class="redoc-json">'; output += '<div class="redoc-json">';
output += '<code>'; //output += '<code>';
output += valueToHTML(json, maxExpandLevel); output += valueToHTML(json, maxExpandLevel);
output += '</code>'; //output += '</code>';
output += '</div>'; output += '</div>';
return output; return output;
} }