@@ -86,7 +86,7 @@ const go = async () => {
8686 pkg . files . forEach ( ( fileRef ) => {
8787 fs . copyFileSync (
8888 new URL ( fileRef . from , import . meta. url ) ,
89- new URL ( fileRef . to , packagePath )
89+ new URL ( fileRef . to , packagePath ) ,
9090 ) ;
9191 } ) ;
9292
@@ -120,7 +120,7 @@ async function updatePackageJSON(pkg, packagePath) {
120120 let version = "0.0.1" ;
121121 try {
122122 const npmResponse = await fetch (
123- `https://registry.npmjs.org/${ packageJSON . name } `
123+ `https://registry.npmjs.org/${ packageJSON . name } ` ,
124124 ) ;
125125 /** @type {* } */
126126 const npmPackage = await npmResponse . json ( ) ;
@@ -143,9 +143,9 @@ async function updatePackageJSON(pkg, packagePath) {
143143
144144 fs . writeFileSync (
145145 pkgJSONPath ,
146- format ( JSON . stringify ( packageJSON ) , {
146+ await format ( JSON . stringify ( packageJSON ) , {
147147 filepath : fileURLToPath ( pkgJSONPath ) ,
148- } )
148+ } ) ,
149149 ) ;
150150
151151 return packageJSON ;
@@ -167,7 +167,7 @@ function copyREADME(pkg, pkgJSON, writePath) {
167167 . replace ( "{{version}}" , pkgJSON . version )
168168 . replace (
169169 "{{release_href}}" ,
170- `https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/${ htmlEncodedTag } `
170+ `https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/${ htmlEncodedTag } ` ,
171171 ) ;
172172
173173 fs . writeFileSync ( writePath , readme ) ;
@@ -200,7 +200,7 @@ export function postProcessDTSFiles(pkg, packagePath) {
200200 iterateThroughFiles ( ( content ) => {
201201 return content . replace (
202202 "abort(reason?: any): AbortSignal;" ,
203- "// abort(reason?: any): AbortSignal; - To be re-added in the future"
203+ "// abort(reason?: any): AbortSignal; - To be re-added in the future" ,
204204 ) ;
205205 } ) ;
206206
0 commit comments