Skip to content

Commit

Permalink
fix(type): The fix type declaration file is not a release package. #154
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 19, 2020
1 parent 3576db9 commit 4ed63fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/bin/mocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import color from 'colors-cli/safe';
import express from 'express';
import minimist from 'minimist';
import apiMocker, { MockerOption } from '../';
import { version } from '../../package.json';

interface MockerConfig extends MockerOption {
host: string;
Expand Down Expand Up @@ -40,6 +39,8 @@ const DEFAULT_CONFIG: MockerConfig = {
console.log('\n');
return;
}
// Fix type errors
const { version } = require('../../package.json');

if (argvs.v || argvs.version) {
console.log(version);
Expand Down

0 comments on commit 4ed63fc

Please sign in to comment.