From a61f17b1f26d0b6008061bce4b2d2202dba6db77 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Mon, 4 Jul 2022 21:18:05 +0530 Subject: [PATCH] move note to top --- scripts/release.js | 11 ++++------- src/packages/excalidraw/README.md | 4 ++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 0fdd182714..479593f940 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -8,13 +8,10 @@ const excalidrawPackage = `${excalidrawDir}/package.json`; const originalReadMe = fs.readFileSync(`${excalidrawDir}/README.md`, "utf8"); const updateReadme = () => { - let data = originalReadMe; - - const noteIndex = data.indexOf("#### Note"); - const installlationIndex = data.indexOf("### Installation"); + const excalidrawIndex = originalReadMe.indexOf("### Excalidraw"); // remove note for stable readme - data = data.slice(0, noteIndex) + data.slice(installlationIndex); + const data = originalReadMe.slice(excalidrawIndex); // update readme fs.writeFileSync(`${excalidrawDir}/README.md`, data, "utf8"); @@ -38,8 +35,8 @@ const release = async (nextVersion) => { ); // revert readme after release fs.writeFileSync(`${excalidrawDir}/README.md`, originalReadMe, "utf8"); - // /* eslint-disable no-console */ - // console.log("Done!"); + + console.info("Done!"); } catch (error) { console.error(error); process.exit(1); diff --git a/src/packages/excalidraw/README.md b/src/packages/excalidraw/README.md index e9f9c5a3f5..97abd60ae0 100644 --- a/src/packages/excalidraw/README.md +++ b/src/packages/excalidraw/README.md @@ -1,3 +1,7 @@ +#### Note + +⚠️ ⚠️ ⚠️ You are viewing the docs for the **next** release, in case you want to check the docs for the stable release, you can view it [here](https://www.npmjs.com/package/@excalidraw/excalidraw). + ### Excalidraw Excalidraw exported as a component to directly embed in your projects.