diff --git a/build/update-readme.ts b/build/update-readme.ts new file mode 100644 index 0000000..866ce83 --- /dev/null +++ b/build/update-readme.ts @@ -0,0 +1,15 @@ +/*----------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + *-----------------------------------------------------------------------------------------------*/ + +import { readFileSync, writeFileSync } from 'fs-extra'; + +const readme = readFileSync('./README.md'); + +// eslint-disable-next-line @typescript-eslint/restrict-template-expressions +const lines = `${readme}`.split('\n'); + +const index = lines.findIndex((line) => line.includes('## Overview')); +lines.splice(0, index + 1); +writeFileSync('./README.md', lines.join('\n')); diff --git a/package-lock.json b/package-lock.json index fac1046..92d6f83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "@types/string-format": "^2.0.0", "@types/tmp": "0.2.0", "@types/validator": "^13.1.3", - "@types/vscode": "^1.52.0", + "@types/vscode": "1.64.0", "@typescript-eslint/eslint-plugin": "^7.0.2", "@typescript-eslint/parser": "^7.0.2", "chai": "^4.3.0", @@ -87,7 +87,7 @@ "walker": "^1.0.7" }, "engines": { - "vscode": "^1.52.0" + "vscode": "^1.64.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1078,9 +1078,9 @@ "dev": true }, "node_modules/@types/vscode": { - "version": "1.86.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.86.0.tgz", - "integrity": "sha512-DnIXf2ftWv+9LWOB5OJeIeaLigLHF7fdXF6atfc7X5g2w/wVZBgk0amP7b+ub5xAuW1q7qP5YcFvOcit/DtyCQ==", + "version": "1.64.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.64.0.tgz", + "integrity": "sha512-bSlAWz5WtcSL3cO9tAT/KpEH9rv5OBnm93OIIFwdCshaAiqr2bp1AUyEwW9MWeCvZBHEXc3V0fTYVdVyzDNwHA==", "dev": true }, "node_modules/@types/ws": { diff --git a/package.json b/package.json index 317943b..ecac259 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ ], "icon": "images/knative-logo.png", "engines": { - "vscode": "^1.52.0" + "vscode": "^1.64.2" }, "categories": [ "Programming Languages", @@ -99,7 +99,7 @@ "@types/string-format": "^2.0.0", "@types/tmp": "0.2.0", "@types/validator": "^13.1.3", - "@types/vscode": "^1.52.0", + "@types/vscode": "1.64.0", "@typescript-eslint/eslint-plugin": "^7.0.2", "@typescript-eslint/parser": "^7.0.2", "chai": "^4.3.0",