mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-04 18:36:54 +02:00
style(cso): format lib/cso TypeScript with pinned Prettier
Mechanical reformat only. Minified transpile output is byte-identical for 21 of 22 files; witness.ts differs only in three regex flag orders (/mi -> /im), which JavaScript canonicalizes. Source-text assertions over lib/cso now compare whitespace-insensitively with the same tokens.
This commit is contained in:
1 parent
dcaea52800
commit
d93d61f7ba
27 files changed
+17942
-4164
No files matched your search
@@ -135,7 +135,7 @@ describe('CSO native Windows build contract', () => {
|
||||
expect(msvc).toContain('GSTACK_CSO_GIT_PATH');
|
||||
expect(msvc).toContain('/FI$binding');
|
||||
expect(msvc).toContain('if ($LASTEXITCODE -ne 0)');
|
||||
const processSource=fs.readFileSync(path.join(ROOT,'lib','cso','process.ts'),'utf8');
|
||||
const processSource=fs.readFileSync(path.join(ROOT,'lib','cso','process.ts'),'utf8').replace(/\s+/g,'');
|
||||
expect(processSource).toContain("includeNullPath=process.platform==='win32'?'/dev/null':nullPath");
|
||||
const launcherSource = fs.readFileSync(path.join(ROOT, 'lib/cso/launcher-windows.c'), 'utf8');
|
||||
expect(launcherSource).toContain('.gstack-cso-generation.lock');
|
||||
|
||||
Reference in new issue
Block a user