Skip to content

Commit

Permalink
fix(core): fix init error when choose package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
cpselvis committed Nov 8, 2019
1 parent fc883d9 commit ad90a9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@feflow/cli",
"version": "0.16.0-beta.4",
"version": "0.16.0-beta.5",
"description": "A front-end flow tool.",
"main": "./lib/index.js",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ export default class Feflow {

checkUpdate() {
const { root, rootPkg, config, logger } = this;
const table = new Table();
if (!config) {
return;
}

const table = new Table();
const packageManager = config.packageManager;

return Promise.all(this.getInstalledPlugins().map(async (name: any) => {
const pluginPath = path.join(root, 'node_modules', name, 'package.json');
const content: any = fs.readFileSync(pluginPath);
Expand Down

0 comments on commit ad90a9d

Please sign in to comment.