Skip to content

Commit bae1773

Browse files
authored
Merge pull request #2 from NIPE-Solutions/fix/stable-install-command
Use the stable npm install command
2 parents a26940b + 54e1aef commit bae1773

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎scripts/verify-website.mjs‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ for (const phrase of [
5151
if (renderedText.includes(phrase))
5252
throw Error(`Current-beta copy remains in the stable website: ${phrase}`)
5353
}
54-
if (
55-
!renderedText.includes(
56-
'npm install @nipe-solutions/react-data-inspector@1.0.0',
57-
)
58-
)
59-
throw Error('Stable installation command is missing its concrete version')
54+
const stableInstallCommand = 'npm install @nipe-solutions/react-data-inspector'
55+
if (!renderedText.includes(stableInstallCommand))
56+
throw Error('Stable installation command is missing')
57+
if (renderedText.includes(`${stableInstallCommand}@1.0.0`))
58+
throw Error('Stable installation command must follow the latest release')
6059
for (const [path, doc] of pages) {
6160
for (const anchor of doc.querySelectorAll('a[href]')) {
6261
const href = anchor.getAttribute('href')

‎website/site/Chrome.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function Installation({ compact = false }: { compact?: boolean }) {
8282
return (
8383
<div className={compact ? 'installation compact-install' : 'installation'}>
8484
<p>Available on npm · {publishedVersion}</p>
85-
<Code>{`npm install @nipe-solutions/react-data-inspector@${publishedVersion}`}</Code>
85+
<Code>npm install @nipe-solutions/react-data-inspector</Code>
8686
{compact && (
8787
<a className="install-link" href="/docs/installation">
8888
Installation and CSS setup

0 commit comments

Comments
 (0)