docs(release): seal and deliver task agreement 1.25 with retained production state
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { readFileSync } from 'node:fs';
|
||||
for (const file of ['src/amount.mjs','src/summary.mjs','src/report.mjs']) {
|
||||
const result=spawnSync(process.execPath,['--check',file],{encoding:'utf8'});
|
||||
if(result.status!==0) { process.stderr.write(result.stderr);process.exit(result.status??1); }
|
||||
if(!readFileSync(file,'utf8').trim()) throw new Error('Empty business module');
|
||||
}
|
||||
console.log('All three business modules compile.');
|
||||
Reference in New Issue
Block a user