(platform)
| 37 | } |
| 38 | |
| 39 | async function processExtensionPlatform(platform) { |
| 40 | const dir = getDestDir({debug: false, platform}); |
| 41 | const files = await getPaths(extensions.map((ext) => `${dir}/**/*.${ext}`)); |
| 42 | for (const file of files) { |
| 43 | const code = await readFile(file); |
| 44 | const formatted = await format(code, { |
| 45 | ...options, |
| 46 | filepath: file, |
| 47 | }); |
| 48 | if (code !== formatted) { |
| 49 | await writeFile(file, formatted); |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | async function codeStyle({platforms, debug}) { |
| 55 | if (debug) { |
no test coverage detected