Skip to content

Commit 5cbd216

Browse files
committed
feat(vcs-host): stopped passing the project language to the vcs-host scaffolders
BREAKING CHANGE: the vcs-host plugin scaffolder no longer recieves `projectType` (project language), which wasnt used by any official plugins anyway
1 parent f51baaa commit 5cbd216

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ __object__:
165165
returned from the `prompt` function
166166
* `projectRoot`: __string__ path of the working directory where the CLI
167167
command was executed
168-
* `projectType`:
169-
* __string__ primary language for the project
170-
* _deprecated_ will be removed with the next major version
171168
* `description`: __string__ brief summary of the project
172169
* `homepage`: __string__ url of the project homepage
173170
* `public`: __boolean__ (_optional_) whether this host should be presented

src/scaffolder.js

-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ export async function scaffold(options) {
6161
const vcsHostResults = vcs && await scaffoldVcsHost(vcsHosts, {
6262
...vcs,
6363
projectRoot,
64-
/**
65-
* @deprecated vcs-host plugins should no longer expect `projectType` to be provided.
66-
* will be removed with the next major version
67-
*/
68-
projectType: projectLanguage,
6964
description,
7065
visibility,
7166
...language && {

src/scaffolder.test.js

-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ describe('project scaffolder', () => {
107107
{
108108
...vcs,
109109
projectRoot: projectPath,
110-
projectType: projectLanguage,
111110
description,
112111
visibility,
113112
homepage: undefined,
@@ -294,7 +293,6 @@ describe('project scaffolder', () => {
294293
{
295294
...vcs,
296295
projectRoot: projectPath,
297-
projectType: projectLanguage,
298296
description,
299297
homepage,
300298
visibility,

0 commit comments

Comments
 (0)