Skip to content

[feat] yarn add-script #6025

@alexkrolick

Description

@alexkrolick

Proposal:

Add a CLI command to add scripts to package.json without opening a text editor

Reason:

This would make it easier to write install instructions that can be copy-pasted into a shell

Example:

> yarn add babel-cli babel-preset-react-app
> yarn add-script build "babel --presets=react-app/dev src -d lib"
> yarn build

(e.g. reactjs/react.dev#992)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions