File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ module.exports = {
4141        const  ast  =  parse ( ...args ) ; 
4242
4343        if  ( rePkg . test ( filepath ) )  { 
44-           const  {  properties }  =  ast ; 
45-           ast . properties  =  format ( properties ) ; 
44+           const  {  properties,  node  }  =  ast ; 
45+           ast . properties  =  format ( properties   ||   node . properties ) ; 
4646        } 
4747
4848        return  ast ; 
Original file line number Diff line number Diff line change 11{
22  "name" : " prettier-plugin-package" 
3-   "version" : " 1.3 .0" 
3+   "version" : " 1.4 .0" 
44  "description" : " An opinionated package.json formatter plugin for Prettier" 
55  "license" : " MPL-2.0" 
66  "repository" : " shellscape/prettier-plugin-package" 
3636    " prettier" 
3737  ],
3838  "peerDependencies" : {
39-     "prettier" : " ^2.0.0" 
39+     "prettier" : " ^2.0.0 || ^3.0.0 " 
4040  },
4141  "devDependencies" : {
4242    "@commitlint/cli" : " ^17.6.5" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments