Fix core/package-lock.json and add rebase script #4106
                
     Merged
            
            
          
  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.
  
    
  
    
Changelog Entry
core/package-lock.json, removedplayground/host, and added script to rebase URLs inpackage-lock.json, by @compulim, in PR #4106Description
Fix
core/package-lock.jsonso it is pointing to the correct package.Also added a tool script to rebase
resolvefield from NPMJS to Azure Artifacts temporarily.Design
We added a new tool, which can be used to modify any
package-lock.jsonfile. It will modify theresolvefield, which usually points to https://registry.npmjs.org/, to an arbitrary URL provided via the CLI argument.We have no plans to change our primary NPM registry. We will continue to use registry.npmjs.org. However, a new internal requirement requires us to use Azure Artifacts for packages when we build our project for publication. This will make sure all dependencies we used to build our final project can be controlled precisely.
Say, if a package become critically vulnerable, we can quickly reconfigure our Azure Artifacts to block the package and immediately prevent our build pipeline from emitting problematic code.
As a side effect, the tool will check if all the URLs in the
package-lock.jsonare valid, such as:Specific Changes
core/package-lock.json@babel/helper-split-export-declarationshould use the correct tarball, not from@babel/helper-hoist-variablepackage/playground/host/package/playgroundis already a package, it should not contain another packagescripts/rebasePackageLock.mjstool to rebaseresolvefield inpackage-lock.jsonI have added tests and executed them locallyCHANGELOG.mdI have updated documentationReview Checklist
Accessibility reviewed (tab order, content readability, alt text, color contrast)Browser and platform compatibilities reviewedCSS styles reviewed (minimal rules, noz-index)Documents reviewed (docs, samples, live demo)Internationalization reviewed (strings, unit formatting)package.jsonandpackage-lock.jsonreviewedTests reviewed (coverage, legitimacy)