-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-throttle-global-state
* main: (61 commits) Release: [email protected] (#4511) @uppy/aws-s3-multipart: fix the chunk size calculation (#4508) @uppy/aws-s3: add `shouldUseMultipart` option (#4299) @uppy/companion: switch from aws-sdk v2 to @aws-sdk/* (v3) (#4285) Migrate all lodash' per-method-packages usage to lodash. (#4274) @uppy/core: Don't set late (throttled) progress event on a file that is 100% complete (#4507) @uppy/companion: revert randomness from file names (#4509) Custom provider fixes (#4498) @uppy/transloadit: ensure `fields` is not nullish when there no uploaded files (#4487) When file is removed (or all are canceled), controller.abort queued requests (#4504) @uppy/provider-views: Fix range selection not resetting and computing correctly (#4415) meta: disallow use of `.only` in tests (#4494) @uppy/companion: fix 500 when file name contains non-ASCII chars (#4493) @uppy/locales: update `fr_FR.js` (#4499) Don't close socket while upload is still in progress (#4479) meta: bump `luxon` from 1.28.0 to 1.28.1 (#4497) @uppy/utils: rename `EventTracker` -> `EventManager` (#4481) meta: bump cookiejar from 2.1.3 to 2.1.4 (#4496) meta: make `pre-commit` use `corepack yarn` instead of `npm run` (#4495) meta: bump ua-parser-js from 0.7.31 to 0.7.35 (#4474) ...
- Loading branch information
Showing
224 changed files
with
7,810 additions
and
3,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/index.js b/index.js | ||
index a20646d922945004cb737918ef6b6d063bb3c2a4..a44863e9555abdaa569f309b1197fddc8dd244a5 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -147,7 +147,7 @@ Hook.prototype.log = function log(lines, exit) { | ||
* @api private | ||
*/ | ||
Hook.prototype.initialize = function initialize() { | ||
- ['git', 'npm'].forEach(function each(binary) { | ||
+ ['git', 'corepack'].forEach(function each(binary) { | ||
try { this[binary] = which.sync(binary); } | ||
catch (e) {} | ||
}, this); | ||
@@ -159,9 +159,9 @@ Hook.prototype.initialize = function initialize() { | ||
if (!this.npm) { | ||
try { | ||
process.env.PATH += path.delimiter + path.dirname(process.env._); | ||
- this.npm = which.sync('npm'); | ||
+ this.npm = which.sync('corepack'); | ||
} catch (e) { | ||
- return this.log(this.format(Hook.log.binary, 'npm'), 0); | ||
+ return this.log(this.format(Hook.log.binary, 'corepack'), 0); | ||
} | ||
} | ||
|
||
@@ -225,7 +225,7 @@ Hook.prototype.run = function runner() { | ||
// this doesn't have the required `isAtty` information that libraries use to | ||
// output colors resulting in script output that doesn't have any color. | ||
// | ||
- spawn(hooked.npm, ['run', script, '--silent'], { | ||
+ spawn(hooked.npm, ['yarn', script], { | ||
env: process.env, | ||
cwd: hooked.root, | ||
stdio: [0, 1, 2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.