Skip to content

Commit

Permalink
fix(vcs-hosts): deprecated the use of projectType as expected prope…
Browse files Browse the repository at this point in the history
…rty provided to the scaffolder
  • Loading branch information
travi committed Jul 6, 2023
1 parent 6cbc532 commit efc9243
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ __object__:
returned from the `prompt` function
* `projectRoot`: __string__ path of the working directory where the CLI
command was executed
* `projectType`: __string__ primary language for the project
* `projectType`:
* __string__ primary language for the project
* _deprecated_ will be removed with the next major version
* `description`: __string__ brief summary of the project
* `homepage`: __string__ url of the project homepage
* `public`: __boolean__ (_optional_) whether this host should be presented
Expand Down
4 changes: 4 additions & 0 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export async function scaffold(options) {
const vcsHostResults = vcs && await scaffoldVcsHost(vcsHosts, {
...vcs,
projectRoot,
/**
* @deprecated vcs-host plugins should no longer expect `projectType` to be provided.
* will be removed with the next major version
*/
projectType: projectLanguage,
description,
visibility,
Expand Down

0 comments on commit efc9243

Please sign in to comment.