File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' )
6059for ( const [ path , doc ] of pages ) {
6160 for ( const anchor of doc . querySelectorAll ( 'a[href]' ) ) {
6261 const href = anchor . getAttribute ( 'href' )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments