message: copy package.json before npm install
diff: @@ -28,9 +28,14 @@ jobs:
  versionSpec: "14.x"
  displayName: "Install Node.js"
  + - task: CopyFiles@2
  + inputs:
  + SourceFolder: "$(Build.SourcesDirectory)/package.json"
  + TargetFolder: "$(Build.SourcesDirectory)/Temp/package.json"
  +
  - task: Cache@2
  inputs:
  - key: 'npm-cache-library | $(Build.SourcesDirectory)/package.json'
  + key: 'npm-cache-library | $(Build.SourcesDirectory)/Temp/package.json'
  path: $(Build.SourcesDirectory)/node_modules
  cacheHitVar: NPM_CACHE_RESTORED
  displayName: Cache NPMs
  @@ -74,9 +79,14 @@ jobs:
  versionSpec: "14.x"
  displayName: "Install Node.js"
  + - task: CopyFiles@2
  + inputs:
  + SourceFolder: "$(Build.SourcesDirectory)/package.json"
  + TargetFolder: "$(Build.SourcesDirectory)/Temp/package.json"
  +
  - task: Cache@2
  inputs:
  - key: 'npm-cache-library | $(Build.SourcesDirectory)/package.json'
  + key: 'npm-cache-library | $(Build.SourcesDirectory)/Temp/package.json'
  path: $(Build.SourcesDirectory)/node_modules
  cacheHitVar: NPM_CACHE_RESTORED
  displayName: Cache NPMs
  @@ -112,9 +122,14 @@ jobs:
  versionSpec: "14.x"
  displayName: "Install Node.js"
  + - task: CopyFiles@2
  + inputs:
  + SourceFolder: "$(Build.SourcesDirectory)/package.json"
  + TargetFolder: "$(Build.SourcesDirectory)/Temp/package.json"
  +
  - task: Cache@2
  inputs:
  - key: 'npm-cache-library | $(Build.SourcesDirectory)/package.json'
  + key: 'npm-cache-library | $(Build.SourcesDirectory)/Temp/package.json'
  path: $(Build.SourcesDirectory)/node_modules
  cacheHitVar: NPM_CACHE_RESTORED
  displayName: Cache NPMs
  