@@ -92,7 +92,7 @@ async function main(inputs) {
9292
9393 /* -- Markdown Output -- */
9494 /* Output as a markdown table in the metadata folder for site rendering */
95- let destPath = ` ${ dir } / metadata` ;
95+ let destPath = path . join ( dir , " metadata" ) ;
9696
9797 // If the metadata folder doesn't exist, create it
9898 if ( ! existsSync ( destPath ) ) mkdirSync ( destPath ) ;
@@ -108,7 +108,7 @@ async function main(inputs) {
108108
109109 // Write the results to a markdown file in the metadata folder
110110 promises . push (
111- writeFile ( ` ${ destPath } / mods.md` , finalResult , { encoding : "utf-8" } ) . then ( ( ) => {
111+ writeFile ( path . join ( destPath , " mods.md" ) , finalResult , { encoding : "utf-8" } ) . then ( ( ) => {
112112 console . log ( `${ `✓` . green } ${ "metadata/mods.md" . yellow } written` ) ;
113113 } ) . catch ( ( err ) => {
114114 if ( ! err ) return ;
@@ -118,7 +118,7 @@ async function main(inputs) {
118118 ) ;
119119
120120 /* -- JSON Output -- */
121- destPath = ` ${ dir } / dist` ;
121+ destPath = path . join ( dir , " dist" ) ;
122122 // If the dist folder doesn't exist yet, create it
123123 if ( ! existsSync ( destPath ) ) mkdirSync ( destPath ) ;
124124
@@ -129,7 +129,7 @@ async function main(inputs) {
129129
130130 // Write the JSON output to the dist folder
131131 promises . push (
132- writeFile ( ` ${ destPath } / mods.json` , finalResult , { encoding : "utf-8" } ) . then ( ( ) => {
132+ writeFile ( path . join ( destPath , " mods.json" ) , finalResult , { encoding : "utf-8" } ) . then ( ( ) => {
133133 console . log ( `${ `✓` . green } ${ "dist/mods.json" . yellow } written` ) ;
134134 } ) . catch ( ( err ) => {
135135 if ( ! err ) return ;
0 commit comments