nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

ns clean doesnt respect package manager

Open offizium-berndstorath opened this issue 1 year ago • 1 comments

Issue Description

If I set pnpm as the ns package manager and run ns clean it tries to remove package-lock.json which obviously doesnt exist

Reproduction

  1. Use any ns project
  2. set pnpm as package manager
  3. run ns clean

Relevant log output (if applicable)

No response

Environment

echo 'y' | npx nativescript-envinfo Doesnt show pnpm version. So this makes no sense

Please accept these terms

offizium-berndstorath avatar Apr 18 '24 07:04 offizium-berndstorath

We will remove package-lock.json from ns clean by default in a future release. Users will still be able to configure additionalPathsToClean and add it back, or a different package-manager's lockfile.

Right now this is known/expected behavior, and the file is skipped if not found.

rigor789 avatar Apr 18 '24 15:04 rigor789