@@ -5,7 +5,6 @@ import DocSchema from "./DocSchema.js";
55import fs from "node:fs/promises" ;
66import Package from "./Package" ;
77import Mustache from "mustache" ;
8- import * as child_process from "child_process" ;
98import * as crypto from "crypto" ;
109
1110/**
@@ -233,18 +232,8 @@ export function generateMarkdownDocs (config: Config, schema: Schema, docSchema:
233232 */
234233export async function generateReadme ( docMD : string , config : Config , pkg : Package ) : Promise < void > {
235234 const template = await fs . readFile ( "README.template.md" , "utf8" ) ;
236- // check if project builds successfully
237- const buildStatus = await new Promise ( ( resolve ) => {
238- child_process . exec ( "npm run build" , ( error ) => {
239- resolve ( ! error ) ;
240- } ) ;
241- } ) ;
242235 const shield = {
243- version : `[](https://www.npmjs.com/package/cloudnode-ts)` ,
244236 apiVersion : `` ,
245- build : `` ,
246- codeQl : "[](https://github.com/cloudnode-pro/ts-client/actions/workflows/github-code-scanning/codeql)" ,
247- downloads : `[](https://www.npmjs.com/package/cloudnode-ts)` ,
248237 } ;
249238 const rendered = Mustache . render ( template , { config, pkg, docMD, shield} ) ;
250239 await fs . writeFile ( "README.md" , rendered ) ;
0 commit comments