fix(app): postinstall with umi.cli.js

This commit is contained in:
chenos 2022-02-16 14:57:33 +08:00
parent 6036189063
commit 054a73d576
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"start": "umi dev", "start": "umi dev",
"build": "umi build", "build": "umi build",
"postinstall": "umi generate tmp", "postinstall": "node ./umi.cli.js generate tmp",
"test": "umi-test", "test": "umi-test",
"test:coverage": "umi-test --coverage" "test:coverage": "umi-test --coverage"
}, },

4
packages/app/umi.cli.js Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env node
require('v8-compile-cache');
require('umi/lib/cli');