From 54e1aef464fb85aa5c487854444b8a7bf2eefbbb Mon Sep 17 00:00:00 2001 From: Nicholas Petrasek Date: Wed, 30 Sep 2026 12:30:45 +0200 Subject: [PATCH] docs: use stable install command --- scripts/verify-website.mjs | 11 +++++------ website/site/Chrome.tsx | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/verify-website.mjs b/scripts/verify-website.mjs index fd8d2ef..c867a15 100644 --- a/scripts/verify-website.mjs +++ b/scripts/verify-website.mjs @@ -51,12 +51,11 @@ for (const phrase of [ if (renderedText.includes(phrase)) throw Error(`Current-beta copy remains in the stable website: ${phrase}`) } -if ( - !renderedText.includes( - 'npm install @nipe-solutions/react-data-inspector@1.0.0', - ) -) - throw Error('Stable installation command is missing its concrete version') +const stableInstallCommand = 'npm install @nipe-solutions/react-data-inspector' +if (!renderedText.includes(stableInstallCommand)) + throw Error('Stable installation command is missing') +if (renderedText.includes(`${stableInstallCommand}@1.0.0`)) + throw Error('Stable installation command must follow the latest release') for (const [path, doc] of pages) { for (const anchor of doc.querySelectorAll('a[href]')) { const href = anchor.getAttribute('href') diff --git a/website/site/Chrome.tsx b/website/site/Chrome.tsx index ba7f386..91b8997 100644 --- a/website/site/Chrome.tsx +++ b/website/site/Chrome.tsx @@ -82,7 +82,7 @@ export function Installation({ compact = false }: { compact?: boolean }) { return (

Available on npm ยท {publishedVersion}

- {`npm install @nipe-solutions/react-data-inspector@${publishedVersion}`} + npm install @nipe-solutions/react-data-inspector {compact && ( Installation and CSS setup