docs(release): seal and deliver task agreement 1.25 with retained production state
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import fs from 'node:fs';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
for (const file of ['src/add.mjs', 'src/range.mjs']) {
|
||||
const checked = spawnSync(process.execPath, ['--check', file], { windowsHide: true, stdio: 'inherit' });
|
||||
if (checked.status !== 0) process.exit(checked.status ?? 1);
|
||||
}
|
||||
fs.mkdirSync('dist', { recursive: true });
|
||||
fs.cpSync('src', 'dist', { recursive: true });
|
||||
console.log('Built two checked ESM library modules');
|
||||
Reference in New Issue
Block a user