Skip to content

Conversation

maciej-ka
Copy link
Contributor

Add an error when the working directory doesn't exist (most probably when --cwd option points to the wrong directory)

As a side effect, this PR detects typo in one of the tests. Path "non-packages" should be "non-package". That test was passing because the yarn was creating target directory.

Test plan

yarn add bluebird --cwd /wrong-path
current behavior: creates /wrong-path directory
expected: Error message

@maciej-ka maciej-ka force-pushed the error-on-missing-workspace-directory branch from 5140586 to ceb4a82 Compare January 15, 2018 20:01
@arcanis
Copy link
Member

arcanis commented Jan 29, 2018

Thanks! 👍

@arcanis arcanis merged commit 06103bd into yarnpkg:master Jan 29, 2018
@maciej-ka maciej-ka deleted the error-on-missing-workspace-directory branch January 29, 2018 18:20
agoldis added a commit to agoldis/yarn that referenced this pull request Feb 2, 2018
…readdir_files

* upstream/master: (34 commits)
  feat(upgrade, add): Separately log added/upgraded dependencies (yarnpkg#5227)
  feat(publish): Publish command uses publishConfig.access in package.json (yarnpkg#5290)
  fix(CLI): Use process exit instead of exitCode for node < 4 (yarnpkg#5291)
  feat(cli): error on missing workspace directory (yarnpkg#5206) (yarnpkg#5222)
  feat: better error when package is not found (yarnpkg#5213)
  Allow scoped package as alias source (yarnpkg#5229)
  fix(cli): Use correct directory for upgrade-interactive (yarnpkg#5272)
  nohoist baseline implementation (yarnpkg#4979)
  1.4.1
  1.4.0
  Show current version, when new version is not supplied on "yarn publish" (yarnpkg#4947)
  fix(install): use node-gyp from homebrew npm (yarnpkg#4994)
  Fix transient symlinks overriding direct ones v2 (yarnpkg#5016)
  fix(auth): Fixes authentication conditions and logic with registries (yarnpkg#5216)
  chore(package): move devDeps to appropriate place (yarnpkg#5166)
  fix(resolution) Eliminate "missing peerDep" warning when dep exists at root level. (yarnpkg#5088)
  fix(cli): improve guessing of package names that contain a dot (yarnpkg#5102) (yarnpkg#5135)
  feat(cli): include notice with license when generating disclaimer (yarnpkg#5072) (yarnpkg#5111)
  feat(cli): group by license in licenses list (yarnpkg#5074) (yarnpkg#5110)
  feat(cli): improve error message when file resolver can't find file (yarnpkg#5134) (yarnpkg#5145)
  ...
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

Successfully merging this pull request may close these issues.

2 participants