@@ -3,7 +3,6 @@ const { normalize, join } = require("path");
3
3
const { generateClient } = require ( "./code-gen" ) ;
4
4
const { codeOrdering } = require ( "./code-ordering" ) ;
5
5
const { copyToClients } = require ( "./copy-to-clients" ) ;
6
- const { spawnProcess } = require ( "../utils/spawn-process" ) ;
7
6
8
7
const SDK_CLIENTS_DIR = normalize ( join ( __dirname , ".." , ".." , "clients" ) ) ;
9
8
@@ -34,28 +33,15 @@ const { solo } = yargs(process.argv.slice(2))
34
33
require ( "../api-examples/get-examples" ) ;
35
34
require ( "../api-examples/merge-examples" ) . merge ( void 0 , solo ) ;
36
35
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 ) ;
41
37
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 ) ;
47
41
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` ] ) ;
57
42
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 ) ;
59
45
}
60
46
61
47
const compress = require ( "../endpoints-ruleset/compress" ) ;
0 commit comments