Skip to content

Commit

Permalink
Merge pull request #7013 from blink1073/build-options
Browse files Browse the repository at this point in the history
Do not fail on deduplicate and ignore optional
  • Loading branch information
blink1073 committed Aug 16, 2019
2 parents dbf94a5 + 2c40631 commit 98f1a9a
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 @@ -39,7 +39,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 @@ -167,7 +167,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 98f1a9a

Please sign in to comment.