Commit bf9cc35e authored by chareice's avatar chareice
Browse files

fix: run dev

No related merge requests found
Showing with 368 additions and 231 deletions
+368 -231
import { getUmiConfig, resolveNocobasePackagesAlias } from '@nocobase/devtools/umiConfig';
import { umiConfig as UmiConfig } from '@nocobase/devtools';
const { getUmiConfig, resolveNocobasePackagesAlias } = UmiConfig;
import { defineConfig } from 'umi';
const umiConfig = getUmiConfig();
......
......@@ -3,7 +3,9 @@
"version": "0.8.0-alpha.1",
"license": "MIT",
"devDependencies": {
"@nocobase/client": "0.8.0-alpha.1"
"@nocobase/client": "0.8.0-alpha.1",
"@nocobase/devtools": "0.8.0-alpha.1",
"umi": "^3.2.20"
},
"repository": {
"type": "git",
......
......@@ -23,7 +23,8 @@
"serve": "^13.0.2",
"ts-node": "9.1.1",
"ts-node-dev": "1.1.8",
"typescript": "4.5.5"
"typescript": "4.5.5",
"umi": "3.5.20"
},
"devDependencies": {
"@nocobase/devtools": "0.8.0-alpha.1"
......
......@@ -55,7 +55,7 @@ exports.nodeCheck = () => {
exports.run = (command, argv, options = {}) => {
const binPath = resolve(__dirname, '../node_modules/.bin');
const bins = ['ts-node', 'ts-node-dev'];
const bins = ['ts-node', 'ts-node-dev', 'umi'];
return execa(bins.includes(command) ? resolve(binPath, command) : command, argv, {
shell: true,
......
......@@ -29,6 +29,7 @@
"file-saver": "^2.0.5",
"i18next": "^21.6.0",
"json-templates": "^4.2.0",
"lodash": "^4.17.21",
"marked": "^4.0.12",
"mathjs": "^10.6.0",
"react-beautiful-dnd": "^13.1.0",
......
const umiConfig = require('../umiConfig.js');
exports.umiConfig = umiConfig;
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment