File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,15 @@ for (let platform of platforms) {
18
18
} )
19
19
20
20
let name = `@todoctor/${ platform . name } -${ arch } `
21
+ let displayName = platform . name [ 0 ] . toUpperCase ( ) + platform . name . slice ( 1 )
22
+ let displayArch = arch . toUpperCase ( )
21
23
22
24
fs . writeFile (
23
25
path . join ( packageDir , 'package.json' ) ,
24
26
JSON . stringify (
25
27
{
26
28
name,
27
- description : `Platform-specific binary for Todoctor (${ platform . name } , ${ arch } )` ,
29
+ description : `Platform-specific binary for Todoctor (${ displayName } , ${ displayArch } )` ,
28
30
version : rootPackageJson . version ,
29
31
repository : rootPackageJson . repository ,
30
32
author : rootPackageJson . author ,
@@ -41,7 +43,7 @@ for (let platform of platforms) {
41
43
fs . writeFile (
42
44
path . join ( packageDir , 'readme.md' ) ,
43
45
[
44
- `# Todoctor (${ platform . name [ 0 ] . toUpperCase ( ) + platform . name . slice ( 1 ) } , ${ arch . toUpperCase ( ) } )` ,
46
+ `# Todoctor (${ displayName } , ${ displayArch } )` ,
45
47
'' ,
46
48
'<img' ,
47
49
' src="https://raw.githubusercontent.com/azat-io/todoctor/main/assets/logo-light.webp"' ,
You can’t perform that action at this time.
0 commit comments