File tree Expand file tree Collapse file tree
packages/i18n/src/locales Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # asdf has specific installation instructions for each operating system.
2+ # Please refer to the official documentation at https://asdf-vm.com/guide/getting-started.html.
3+
4+ # Install the Node.js plugin:
5+ asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
6+
7+ # Download and install Node.js:
8+ asdf install nodejs ${props.release.version}
9+
10+ # Set Node.js as the global default:
11+ asdf set -u nodejs ${props.release.version}
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ export type InstallationMethod =
88 | 'BREW'
99 | 'DOCKER'
1010 | 'CHOCO'
11- | 'N' ;
11+ | 'N'
12+ | 'ASDF' ;
1213export type PackageManager = 'NPM' | 'YARN' | 'PNPM' ;
1314
1415// Items with a pipe/default value mean that they are auto inferred
Original file line number Diff line number Diff line change 187187 },
188188 "url" : " https://github.com/tj/n" ,
189189 "info" : " layouts.download.codeBox.platformInfo.n"
190+ },
191+ {
192+ "id" : " ASDF" ,
193+ "name" : " asdf" ,
194+ "compatibility" : {
195+ "os" : [" MAC" , " LINUX" ]
196+ },
197+ "url" : " https://asdf-vm.com/guide/getting-started.html" ,
198+ "info" : " layouts.download.codeBox.platformInfo.asdf"
190199 }
191200 ],
192201 "packageManagers" : [
Original file line number Diff line number Diff line change @@ -78,9 +78,18 @@ export const parseCompat = <
7878 */
7979const createIcon = (
8080 IconModule : Record < string , ElementType > ,
81- iconName : string
81+ iconName ? : string
8282) => {
83+ if ( ! iconName ) {
84+ return undefined ;
85+ }
86+
8387 const IconComponent = IconModule [ iconName ] ;
88+
89+ if ( ! IconComponent ) {
90+ return undefined ;
91+ }
92+
8493 return < IconComponent width = { 16 } height = { 16 } /> ;
8594} ;
8695
Original file line number Diff line number Diff line change 299299 "choco" : " Chocolatey is a package manager for Windows." ,
300300 "docker" : " Docker is a containerization platform." ,
301301 "n" : " \" n\" is a cross-platform Node.js version manager." ,
302+ "asdf" : " \" asdf\" is a cross-platform version manager that supports multiple languages." ,
302303 "volta" : " \" Volta\" is a cross-platform Node.js version manager."
303304 }
304305 }
You can’t perform that action at this time.
0 commit comments