diff --git a/package.json b/package.json index e382603553..ffe73fa603 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "reset:dev": "yarn tools --remove-local-dev", "reset": "rm -rf ./dist/packages && yarn reset:dev", "build": "yarn build:packages", - "build:packages": "yarn tools --remove-local-dev && rm -rf ./dist && yarn gen:internal-dev && yarn tools check --no-empty-directories=true && yarn tools fixTsConfig && yarn tools --build --packages && yarn tools --setup-local-dev && yarn gen:readme && yarn build:verify", + "build:packages": "yarn tools --remove-local-dev && rm -rf ./dist && yarn gen:internal-dev && yarn tools check --no-empty-directories=true && yarn tools fixTsConfig && yarn tools --build --packages && yarn tools --setup-local-dev && yarn gen:readme && yarn build:verify && yarn nx format:write --all", "build:target": "yarn node tools/scripts/build.mjs", "build:setupLocalDev": "yarn tools --setup-local-dev", "build:verify": "yarn tools --verify", diff --git a/tools/scripts/gen-internal-dev.mjs b/tools/scripts/gen-internal-dev.mjs index 1af047ad8f..750e0400d7 100644 --- a/tools/scripts/gen-internal-dev.mjs +++ b/tools/scripts/gen-internal-dev.mjs @@ -102,8 +102,7 @@ const date = new Date().toISOString().replace(/T/, ' ').replace(/\..+/, ''); await fs.writeFile( internalPath, - `// Last Modified: ${date} - // This file is auto-generated by tools/scripts/gen-internal-dev.mjs + `// This file is auto-generated by tools/scripts/gen-internal-dev.mjs export const INTERNAL_DEV = ${JSON.stringify(networks, null, 2)}; export const INTERNAL_MIN_NODE_COUNT = ${minNodeCount}; diff --git a/tools/scripts/gen-readme.mjs b/tools/scripts/gen-readme.mjs index 3f1479fbf7..9bc6ca06d4 100644 --- a/tools/scripts/gen-readme.mjs +++ b/tools/scripts/gen-readme.mjs @@ -35,8 +35,9 @@ const getSize = (lib) => { }; const getNpm = (lib) => { - return `npm`; - return ``; + // return `npm`; + // return ``; + return ``; }; const libs = (await listDirsRecursive('packages', false)).map((lib) => @@ -63,11 +64,10 @@ libs.map((lib) => { } catch (e) { redLog(`${name}/package.json doesn't have "tags" property`); } - const _version = version; // const _size = getSize(name); const _download = `${getNpm(name)}`; - const content = `| ${_package} | ${_tag} | ${_version} | ${_download}`; + const content = `| ${_package} | ${_tag} | ${_download}`; if (tags[0] === 'universal') { universals.push(content); @@ -115,7 +115,7 @@ mainRows = mainRows.sort((a, b) => { }); const tables = { - headers: ['Package', 'Category', 'Version', 'Download'], + headers: ['Package', 'Category', 'Download'], mainRows: mainRows, otherRows: otherRows, };