@@ -12,6 +12,9 @@ await Deno.writeTextFile(
1212 ( await Deno . readTextFile ( "./deno.jsonc" ) ) . replace (
1313 "jsr:@progfay/scrapbox-parser" ,
1414 "npm:@progfay/scrapbox-parser" ,
15+ ) . replace (
16+ "jsr:@cosense/types" ,
17+ "npm:@cosense/types" ,
1518 ) ,
1619) ;
1720
@@ -141,8 +144,7 @@ await build({
141144 configFile : new URL ( "../deno_node.jsonc" , import . meta. url ) . href ,
142145 // Don't run type checking during build to avoid Node.js compatibility issues
143146 typeCheck : false ,
144- declaration : "separate" ,
145- scriptModule : false ,
147+ declaration : "inline" ,
146148 compilerOptions : {
147149 lib : [ "ESNext" , "DOM" , "DOM.Iterable" ] ,
148150 target : "ES2023" ,
@@ -153,18 +155,25 @@ await build({
153155
154156 // ignore snapshot testing & related test files on Node distribution
155157 const emptyTestFiles = [
156- "npm/esm/ browser/dom/extractCodeFiles.test.js" ,
157- "npm/esm/ parser/anchor-fm.test.js" ,
158- "npm/esm/ parser/spotify.test.js" ,
159- "npm/esm/ parser/youtube.test.js" ,
160- "npm/esm/ rest/getCodeBlocks.test.js" ,
161- "npm/esm/ rest/pages.test.js" ,
162- "npm/esm/ rest/project.test.js" ,
163- "npm/esm/ websocket/_codeBlock.test.js" ,
164- "npm/esm/ websocket/diffToChanges.test.js" ,
158+ "browser/dom/extractCodeFiles.test.js" ,
159+ "parser/anchor-fm.test.js" ,
160+ "parser/spotify.test.js" ,
161+ "parser/youtube.test.js" ,
162+ "rest/getCodeBlocks.test.js" ,
163+ "rest/pages.test.js" ,
164+ "rest/project.test.js" ,
165+ "websocket/_codeBlock.test.js" ,
166+ "websocket/diffToChanges.test.js" ,
165167 ] ;
166168 await Promise . all (
167- emptyTestFiles . map ( ( filePath ) => Deno . writeTextFile ( filePath , "" ) ) ,
169+ emptyTestFiles . map ( ( filePath ) =>
170+ Deno . writeTextFile ( `npm/esm/${ filePath } ` , "" )
171+ ) ,
172+ ) ;
173+ await Promise . all (
174+ emptyTestFiles . map ( ( filePath ) =>
175+ Deno . writeTextFile ( `npm/script/${ filePath } ` , "" )
176+ ) ,
168177 ) ;
169178 } ,
170179} ) ;
0 commit comments