fix(app): postinstall with umi.cli.js
This commit is contained in:
parent
6036189063
commit
054a73d576
@ -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
4
packages/app/umi.cli.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
require('v8-compile-cache');
|
||||||
|
require('umi/lib/cli');
|
Loading…
Reference in New Issue
Block a user