Skip to content

Commit

Permalink
Backport PR jupyterlab#7013: Do not fail on deduplicate and ignore op…
Browse files Browse the repository at this point in the history
…tional
  • Loading branch information
blink1073 authored and MeeseeksDev[bot] committed Aug 16, 2019
1 parent 00ca5ea commit ea8811b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildutils/src/update-core-mode.ts
Expand Up @@ -36,7 +36,7 @@ utils.writePackageData(path.join(staging, 'package.json'), data);
fs.removeSync(path.join(staging, 'yarn.lock'));
utils.run('jlpm', { cwd: staging });
try {
utils.run('jlpm yarn-deduplicate -s fewer --fail', { cwd: staging });
utils.run('jlpm yarn-deduplicate -s fewer', { cwd: staging });
} catch {
// re-run install if we deduped packages!
utils.run('jlpm', { cwd: staging });
Expand Down
2 changes: 1 addition & 1 deletion jupyterlab/commands.py
Expand Up @@ -163,7 +163,7 @@ def dedupe_yarn(path, logger=None):
pins above, for example, known-bad versions
"""
had_dupes = ProgressProcess(
['node', YARN_PATH, 'yarn-deduplicate', '-s', 'fewer', '--fail'],
['node', YARN_PATH, 'yarn-deduplicate', '-s', 'fewer'],
cwd=path, logger=logger
).wait() != 0

Expand Down
1 change: 1 addition & 0 deletions jupyterlab/staging/.yarnrc
@@ -1 +1,2 @@
yarn-path "./yarn.js"
ignore-optional true
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -50,7 +50,7 @@
"create:package": "node buildutils/lib/create-package.js",
"create:test": "node buildutils/lib/create-test-package.js",
"create:theme": "node buildutils/lib/create-theme.js",
"deduplicate": "jlpm yarn-deduplicate -s fewer --fail",
"deduplicate": "jlpm yarn-deduplicate -s fewer",
"docs": "lerna run docs",
"eslint": "eslint --fix .",
"eslint:check": "eslint .",
Expand Down

0 comments on commit ea8811b

Please sign in to comment.