Stop using `--no-lockfile` / `--no-shrinkwrap` by default? 🤔

Open
#597 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
testing, tooling

Research direction

Start by tracing how npm and Yarn scenario options receive their default --no-lockfile or --no-shrinkwrap values, then review the customization hook introduced in #409. Compare the current defaults with the proposed floating-dependencies scenario and determine the tests needed to verify lockfiles are used unless a scenario opts out.

Written by the indexing model from the issue text.

Description

question

I think it is about time that we considered removing the --no-lockfile/--no-shrinkwrap defaults for yarn and npm scenarios.

As of #409, it is possible to avoid if you'd like (that hook allows you to customize the options explicitly, with no default values) but the default of "ignoring lockfile" seems a bit wrong to me nowadays. I'd like to see us be able to have most scenarios use the lockfile and just bump the specific dependencies in the scenario. In my opinion that much more closely resembles what folks will actually do in practice.

For example, I would like to have ember-cli use ember-try scenarios for its floating dependencies test and have that scenario look like:

{
  name: 'floating-dependencies',
  npmOptions: ['--no-lockfile'],
}

Thoughts?

Dominant language
JavaScript
Stars
180
Forks
57
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ember-cli/ember-try

All issues in ember-cli/ember-try

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.