@@ -3,7 +3,6 @@ const { normalize, join } = require("path");
33const { generateClient } = require ( "./code-gen" ) ;
44const { codeOrdering } = require ( "./code-ordering" ) ;
55const { copyToClients } = require ( "./copy-to-clients" ) ;
6- const { spawnProcess } = require ( "../utils/spawn-process" ) ;
76
87const SDK_CLIENTS_DIR = normalize ( join ( __dirname , ".." , ".." , "clients" ) ) ;
98
@@ -34,28 +33,15 @@ const { solo } = yargs(process.argv.slice(2))
3433 require ( "../api-examples/get-examples" ) ;
3534 require ( "../api-examples/merge-examples" ) . merge ( void 0 , solo ) ;
3635
37- console . log ( "================ starting eslint ================" , "\n" , new Date ( ) . toString ( ) , solo ) ;
38- try {
39- await spawnProcess ( "npx" , [ "eslint" , "--quiet" , "--fix" , `${ clientFolder } /src/**/*` ] ) ;
40- } catch ( ignored ) { }
36+ console . log ( "================ starting wasm-fmt biome ================" , "\n" , new Date ( ) . toString ( ) , solo ) ;
4137
42- if ( solo === "dynamodb" ) {
43- try {
44- await spawnProcess ( "npx" , [ "eslint" , "--quiet" , "--fix" , `${ libFolder } /src/**/*` ] ) ;
45- } catch ( ignored ) { }
46- }
38+ const target = `${ clientFolder } /src` ;
39+ const { runWasmFmtBiome } = await import ( "./run-wasm-fmt-biome.mjs" ) ;
40+ runWasmFmtBiome ( target ) ;
4741
48- console . log ( "================ starting prettier ================" , "\n" , new Date ( ) . toString ( ) , solo ) ;
49- await spawnProcess ( "npx" , [
50- "prettier" ,
51- "--write" ,
52- "--loglevel" ,
53- "warn" ,
54- `${ clientFolder } /src/**/*.{md,js,ts,json}` ,
55- ] ) ;
56- await spawnProcess ( "npx" , [ "prettier" , "--write" , "--loglevel" , "warn" , `${ clientFolder } /README.md` ] ) ;
5742 if ( solo === "dynamodb" ) {
58- await spawnProcess ( "npx" , [ "prettier" , "--write" , "--loglevel" , "warn" , `${ libFolder } /src/**/*.{md,js,ts,json}` ] ) ;
43+ const target = `${ libFolder } /src` ;
44+ runWasmFmtBiome ( target ) ;
5945 }
6046
6147 const compress = require ( "../endpoints-ruleset/compress" ) ;
0 commit comments