在 Makelore 构建并预检静态发布产物
This commit is contained in:
9
scripts/before-pack.cjs
Normal file
9
scripts/before-pack.cjs
Normal file
@@ -0,0 +1,9 @@
|
||||
const { execFileSync } = require('node:child_process');
|
||||
const { join } = require('node:path');
|
||||
|
||||
exports.default = async function beforePack() {
|
||||
execFileSync(process.execPath, [join(__dirname, 'prepare-publish-runtime.mjs')], {
|
||||
cwd: join(__dirname, '..'),
|
||||
stdio: 'inherit',
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user