text: 'use strict';
  
  /**
   * When using the PNPM package manager, you can use pnpmfile.js to workaround
   * dependencies that have mistakes in their package.json file.  (This feature is
   * functionally similar to Yarn's "resolutions".)
   *
   * For details, see the PNPM documentation:
   * https://pnpm.js.org/docs/en/hooks.html
   *
   * IMPORTANT: SINCE THIS FILE CONTAINS EXECUTABLE CODE, MODIFYING IT IS LIKELY
   * TO INVALIDATE ANY CACHED DEPENDENCY ANALYSIS.  We recommend to run "rush update --full"
   * after any modification to pnpmfile.js.
   *
   */
  module.exports = {
    hooks: {
      readPackage
    }
  };
  
  /**
   * This hook is invoked during installation before a package's dependencies
   * are selected.
   * The `packageJson` parameter is the deserialized package.json
   * contents for the package that is about to be installed.
   * The `context` parameter provides a log() function.
   * The return value is the updated object.
   */
  function readPackage(packageJson, context) {
    
    // snap-shot-it takes a hard dependency on 10.2.0 but we want a fix in 10.2.1
    if (packageJson.name === "snap-shot-it" && packageJson.dependencies['snap-shot-core'] === "10.2.0") {
      packageJson.dependencies['snap-shot-core'] = "10.2.1"
    }
  
    return packageJson;
  }
  