angular-schule/angular-cli-ghpages

yarn installs incorrect version, because dist-tag is ignored

JohannesHoppe opened this issue · 1 comments

Just adding more info, this is what happens during the installation of angular-cli-ghpages under an Angular 13 project generated by @angular/cli:

yarn ng add angular-cli-ghpages
yarn run v1.22.17
$ ng add angular-cli-ghpages
 Using package manager: yarn✔ Found compatible package version: angular-cli-ghpages@0.6.2. Package information loaded.

The package angular-cli-ghpages@0.6.2 will be installed and executed.Would you like to proceed? Yes
 Package successfully installed.An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID  
See "C:\Users\euaar\AppData\Local\Temp\ng-WkWfhC\angular-errors.log" for further details.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Originally posted by @euaaron in #137 (comment)

This behaviour is well-known for yarn, see yarnpkg/yarn#2154 .

I will bump the official version to 1.0.0. This should fix the version resolution, so that everybody gets the latest version when doing ng add angular-cli-ghpages.

All breaking changes are now planned for v2.0.0.