mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
meta: upgrade all dev dependencies (#3903)
This commit is contained in:
parent
9724392cd4
commit
5044230bf1
45 changed files with 8257 additions and 9941 deletions
|
|
@ -1,79 +0,0 @@
|
|||
diff --git a/cli.js b/cli.js
|
||||
index 43b59bb85665ccff53a62c86162093dd1d64ba6d..40bf4d43317a2ffb1dad0c2f7e1f02f4421469a3 100755
|
||||
--- a/cli.js
|
||||
+++ b/cli.js
|
||||
@@ -1,45 +1,43 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
-const program = require('commander');
|
||||
-const { version } = require('./package.json');
|
||||
-var RegClient = require('npm-registry-client');
|
||||
-const fs = require('fs');
|
||||
+"use strict";
|
||||
+
|
||||
+const program = require("commander");
|
||||
+const { version } = require("./package.json");
|
||||
+var RegClient = require("npm-registry-client");
|
||||
var client = new RegClient();
|
||||
let args = process.argv;
|
||||
|
||||
if (args.length === 3) {
|
||||
- args = [args[0], args[1]].concat(args[2].split(' '));
|
||||
+ args = [args[0], args[1]].concat(args[2].split(" "));
|
||||
}
|
||||
|
||||
program
|
||||
.version(version)
|
||||
- .option('-u, --username <username>', 'username')
|
||||
- .option('-p, --password <password>', 'password')
|
||||
- .option('-e, --email <email>', 'email')
|
||||
- .option('-r, --registry <registry>', 'registry', 'https://registry.npmjs.org/')
|
||||
+ .option("-u, --username <username>", "username")
|
||||
+ .option("-p, --password <password>", "password")
|
||||
+ .option("-e, --email <email>", "email")
|
||||
+ .option(
|
||||
+ "-r, --registry <registry>",
|
||||
+ "registry",
|
||||
+ "https://registry.npmjs.org/"
|
||||
+ )
|
||||
.parse(args);
|
||||
|
||||
-const {
|
||||
- username,
|
||||
- password,
|
||||
- email,
|
||||
- registry
|
||||
-} = program;
|
||||
+const { username, password, email, registry } = program;
|
||||
|
||||
-client.adduser(registry, {
|
||||
- auth: {
|
||||
- username,
|
||||
- password,
|
||||
- email,
|
||||
- alwaysAuth: true
|
||||
- }
|
||||
-}, (err, res) => {
|
||||
- if (err) throw err;
|
||||
- const path = `${process.cwd()}/.npmrc`;
|
||||
- let base = registry.substr(registry.indexOf('/'), registry.length);
|
||||
- if (base.lastIndexOf('/') !== registry.length - 1) {
|
||||
- base += '/';
|
||||
+client.adduser(
|
||||
+ registry,
|
||||
+ {
|
||||
+ auth: {
|
||||
+ username,
|
||||
+ password,
|
||||
+ email,
|
||||
+ alwaysAuth: true,
|
||||
+ },
|
||||
+ },
|
||||
+ (err, res) => {
|
||||
+ if (err) throw err;
|
||||
+ console.log(res.token);
|
||||
}
|
||||
- fs.writeFileSync(path, `registry=${registry}\n${base}:_authToken=${res.token}`);
|
||||
- console.log('Done');
|
||||
-});
|
||||
+);
|
||||
12
.yarn/patches/preact-npm-10.10.0-dd04de05e8.patch
Normal file
12
.yarn/patches/preact-npm-10.10.0-dd04de05e8.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/package.json b/package.json
|
||||
index 60279c24a08b808ffbf7dc64a038272bddb6785d..71cb8aa038daeeb7edf43564ed78a219003a0c99 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -9,6 +9,7 @@
|
||||
"umd:main": "dist/preact.umd.js",
|
||||
"unpkg": "dist/preact.min.js",
|
||||
"source": "src/index.js",
|
||||
+ "type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.d.ts",
|
||||
Loading…
Add table
Add a link
Reference in a new issue