File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @rc-component/father-plugin" ,
3
- "version" : " 2.0.4 " ,
3
+ "version" : " 2.0.5 " ,
4
4
"description" : " The father plugin for all react-component projects" ,
5
5
"keywords" : [],
6
6
"repository" : " https://github.com/react-component/father-plugin.git" ,
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ export default (api: IApi) => {
23
23
// Break if current project not install `@rc-component/np`
24
24
const packageJson = await fs . readJson ( path . join ( cwd , 'package.json' ) ) ;
25
25
26
- // Break if current project not install `@rc-component/np`
27
- if ( ! checkNpmPackageDependency ( packageJson , '@rc-component/np' ) ) {
26
+ if (
27
+ checkNpmPackageDependency ( packageJson , 'np' ) &&
28
+ ! checkNpmPackageDependency ( packageJson , '@rc-component/np' )
29
+ ) {
28
30
console . log ( 'Please install `@rc-component/np` instead of `np`.' ) ;
29
31
process . exit ( 1 ) ;
30
32
}
You can’t perform that action at this time.
0 commit comments