Skip to content

Support devDependencies in templates - #8838

Merged
mrmckeb merged 1 commit into
masterfrom
feature/devdeps-template
May 4, 2020
Merged

Support devDependencies in templates#8838
mrmckeb merged 1 commit into
masterfrom
feature/devdeps-template

Conversation

@mrmckeb

Copy link
Copy Markdown
Contributor

This PR adds support for templates to defined devDependencies alongside dependencies.

It also adds a deprecation warning for templates using the previous syntax.

@mrmckeb
mrmckebforce-pushed the feature/devdeps-template branch from ff255a5 to 68d0187CompareApril 15, 2020 18:39
@mrmckebmrmckeb added this to the 3.5 milestone Apr 16, 2020
@ianschmitzianschmitz modified the milestones: 3.5, 4.0May 3, 2020

const templatePackage = templateJson.package || {};

// TODO: Deprecate support for root-level `dependencies` and `scripts` in v4.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say v5 then?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this, and fix in the next PR (which is about deprecations) - thanks!

@mrmckeb
mrmckeb merged commit 2473a73 into masterMay 4, 2020
@mrmckeb
mrmckeb deleted the feature/devdeps-template branch May 4, 2020 15:16
@locklockBot locked and limited conversation to collaborators May 20, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mrmckeb@ianschmitz@facebook-github-bot