Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pkg): npm pkg get/set/remove #368

Closed
4 tasks
darcyclarke opened this issue Jun 11, 2021 · 0 comments
Closed
4 tasks

feat(pkg): npm pkg get/set/remove #368

darcyclarke opened this issue Jun 11, 2021 · 0 comments

Comments

@darcyclarke
Copy link
Contributor

darcyclarke commented Jun 11, 2021

Problem Statement

Developers want an easy & standarized way of getting & modifying the contents of package.json through the CLI

Exit Criteria

  • npm pkg get is implemented
  • npm pkg set is implemented
  • npm pkg remove is implemented
  • Add deprecation warning for npm set-script

Links & Resources

ruyadorno added a commit to ruyadorno/arborist that referenced this issue Jun 22, 2021
Removes lib/update-root-package-json.js in favor of using
@npmcli/package-json for reading and modifying package.json during
reify.

Relates to: npm/statusboard#368
ruyadorno added a commit to ruyadorno/cli that referenced this issue Jun 22, 2021
Refactor set-script and init to use @npmcli/package-json as a uniformed
way to update and save package.json files.

Relates to: npm/statusboard#368
ruyadorno added a commit to ruyadorno/cli that referenced this issue Jun 23, 2021
Refactor set-script and init to use @npmcli/package-json as a uniformed
way to update and save package.json files.

Fixes: npm#3234
Relates to: npm/statusboard#368
ruyadorno added a commit to ruyadorno/arborist that referenced this issue Jun 23, 2021
Removes lib/update-root-package-json.js in favor of using
@npmcli/package-json for reading and modifying package.json during
reify.

Relates to: npm/statusboard#368
ruyadorno added a commit to ruyadorno/cli that referenced this issue Jun 23, 2021
Refactor set-script and init to use @npmcli/package-json as a uniformed
way to update and save package.json files.

Fixes: npm#3234
Relates to: npm/statusboard#368
wraithgar pushed a commit to ruyadorno/cli that referenced this issue Jun 23, 2021
Refactor set-script and init to use @npmcli/package-json as a uniformed
way to update and save package.json files.

Fixes: npm#3234
Relates to: npm/statusboard#368

PR-URL: npm#3455
Credit: @ruyadorno
Close: npm#3455
Reviewed-by: @nlf
isaacs pushed a commit to npm/arborist that referenced this issue Jun 24, 2021
Removes lib/update-root-package-json.js in favor of using
@npmcli/package-json for reading and modifying package.json during
reify.

Relates to: npm/statusboard#368

PR-URL: #295
Credit: @ruyadorno
Close: #295
Reviewed-by: @wraithgar, @nlf
ruyadorno added a commit to npm/cli that referenced this issue Jul 2, 2021
Implements `npm pkg get|set|delete` support. It enables retrieving and
modifying values in a `package.json` file of any given project.

Included are the implementation based on npm/rfcs#402
along with extensive tests and user documentation.

Relates to: npm/rfcs#402
Fixes: npm/statusboard#368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant