- 
                Notifications
    
You must be signed in to change notification settings  - Fork 471
 
Be more aware of the workspace during clean #7752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 32 commits
      Commits
    
    
            Show all changes
          
          
            49 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      776801c
              
                Be more aware of the workspace during clean
              
              
                nojaf dff32e7
              
                Only clean current package
              
              
                nojaf 119d553
              
                fmt
              
              
                nojaf 78bfd88
              
                Return is_child from packages make
              
              
                nojaf 81966e0
              
                Invert if
              
              
                nojaf 7b84cb4
              
                Introduce PackageMap to make things a bit more clear.
              
              
                nojaf 178a0ec
              
                Use workspace extension if there is a link, otherwise root_package.
              
              
                nojaf 5b2e427
              
                Add a TODO that we need to clean up some confusing bits.
              
              
                nojaf 08a146d
              
                Refactor using project_context
              
              
                nojaf 860e6e2
              
                A rescript.json with an unrelated parent can still be a monorepo.
              
              
                nojaf 8202315
              
                Remove all from format command.
              
              
                nojaf d29f977
              
                Merge branch 'master' into detect-root
              
              
                nojaf c2c9183
              
                get_rescript_legacy inside rescript repository.
              
              
                nojaf 50baa0b
              
                sigh
              
              
                nojaf c19670e
              
                StrippedVerbatimPath in before local dep check
              
              
                nojaf 2b8e412
              
                Use proper --version
              
              
                nojaf 43097c8
              
                Add playground to monorepo
              
              
                nojaf c740f4e
              
                Copilot nitpicks
              
              
                nojaf e5b723c
              
                Add test for only formatting the current project.
              
              
                nojaf 7b9b230
              
                Add clean single project test
              
              
                nojaf f76b55b
              
                Add test for compiler-args
              
              
                nojaf f993a71
              
                Get root config from project_context
              
              
                nojaf 21b2758
              
                Return Result for get_root_package
              
              
                nojaf 7892d7b
              
                Make a conscious split between dev and non-dev local dependencies for…
              
              
                nojaf 958fac3
              
                Add dev project to root of test-repo
              
              
                nojaf 66d62ec
              
                Try and add test for format --dev
              
              
                nojaf 8348342
              
                Respect --dev for packages::make in format
              
              
                nojaf c87fa26
              
                Improve success message
              
              
                nojaf 98cdcc2
              
                Add test to ensure we clean dev-dependency with --dev.
              
              
                nojaf 1ccc44c
              
                Pass in actual rescript.json
              
              
                nojaf f83fb38
              
                Ensure dependencies are cleaned as well.
              
              
                nojaf dc05c76
              
                restore instead of clean
              
              
                nojaf c8ebab8
              
                Address code review remarks of clean.rs
              
              
                nojaf 067e983
              
                Store path to config in Config struct
              
              
                nojaf 2606104
              
                Format
              
              
                nojaf c463e94
              
                Add with-ppx example
              
              
                nojaf 607b412
              
                Ensure parse arguments of source package are used.
              
              
                nojaf fec8b5d
              
                Add compiled file from with-ppx
              
              
                nojaf ccbd698
              
                Update snapshot because new test project.
              
              
                nojaf 1db7bbe
              
                Update suffix test.
              
              
                nojaf ad06c8b
              
                One more file to format
              
              
                nojaf db6883b
              
                Moar code review suggestions.
              
              
                nojaf e01de31
              
                Print if a package is local after checking.
              
              
                nojaf dbe85aa
              
                Remove debug log
              
              
                nojaf 70718a6
              
                Merge branch 'master' into detect-root
              
              
                nojaf ddb75e3
              
                Windows fix of the day
              
              
                nojaf e59a7f4
              
                Wait a bit more on watch file for Windows CI
              
              
                nojaf b014cd1
              
                Add changelog entry
              
              
                nojaf fc66c24
              
                Extract common data from enum.
              
              
                nojaf File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "name": "rescript", | ||
| "dependencies": ["@tests/gentype-react-example"] | ||
| "dependencies": ["@tests/gentype-react-example", "playground"] | ||
| } | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"playground"is part of the workspace, so I need to be listed here for rewatch to pick up the correctnode_modulesfolder.The
package.jsonhasrescript cleanin the commands.This will now accurately only clean the playground package.
But it needs that link to the parent rescript json.