@parcel/create-react-app 2.12.1-canary.3353 → 2.12.1-canary.3354
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/cli.js +25 -12
- package/lib/emoji.js +0 -1
- package/package.json +5 -5
package/lib/cli.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = promiseFromProcess;
|
3
7
|
function _commander() {
|
4
8
|
const data = _interopRequireDefault(require("commander"));
|
5
9
|
_commander = function () {
|
@@ -50,9 +54,9 @@ function _commandExists() {
|
|
50
54
|
};
|
51
55
|
return data;
|
52
56
|
}
|
53
|
-
function
|
54
|
-
const data = _interopRequireDefault(require("
|
55
|
-
|
57
|
+
function _crossSpawn() {
|
58
|
+
const data = _interopRequireDefault(require("cross-spawn"));
|
59
|
+
_crossSpawn = function () {
|
56
60
|
return data;
|
57
61
|
};
|
58
62
|
return data;
|
@@ -80,8 +84,8 @@ function _chalk() {
|
|
80
84
|
}
|
81
85
|
var emoji = _interopRequireWildcard(require("./emoji"));
|
82
86
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
83
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
84
|
-
function _interopRequireDefault(
|
87
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
88
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
85
89
|
// flowlint-next-line untyped-import:off
|
86
90
|
// flowlint-next-line untyped-import:off
|
87
91
|
// flowlint-next-line untyped-import:off
|
@@ -156,14 +160,23 @@ async function installPackages(packageExpressions, opts) {
|
|
156
160
|
}
|
157
161
|
}
|
158
162
|
if (usesYarn) {
|
159
|
-
return
|
163
|
+
return promiseFromProcess((0, _crossSpawn().default)('yarn', ['add', opts.isDevDependency ? '--dev' : null, ...packageExpressions].filter(Boolean), {
|
164
|
+
cwd: opts.cwd
|
165
|
+
}));
|
160
166
|
}
|
161
|
-
return
|
167
|
+
return promiseFromProcess((0, _crossSpawn().default)('npm', ['install', opts.isDevDependency ? '--save-dev' : null, ...packageExpressions].filter(Boolean), {
|
168
|
+
cwd: opts.cwd
|
169
|
+
}));
|
162
170
|
}
|
163
|
-
function
|
164
|
-
return
|
165
|
-
|
166
|
-
|
167
|
-
|
171
|
+
function promiseFromProcess(childProcess) {
|
172
|
+
return new Promise((resolve, reject) => {
|
173
|
+
childProcess.on('error', reject);
|
174
|
+
childProcess.on('close', code => {
|
175
|
+
if (code !== 0) {
|
176
|
+
reject(new Error('Child process failed'));
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
resolve();
|
180
|
+
});
|
168
181
|
});
|
169
182
|
}
|
package/lib/emoji.js
CHANGED
@@ -10,7 +10,6 @@ function isUnicodeSupported() {
|
|
10
10
|
if (process.platform !== 'win32') {
|
11
11
|
return process.env.TERM !== 'linux'; // Linux console (kernel)
|
12
12
|
}
|
13
|
-
|
14
13
|
return Boolean(process.env.CI) || Boolean(process.env.WT_SESSION) ||
|
15
14
|
// Windows Terminal
|
16
15
|
process.env.ConEmuTask === '{cmd::Cmder}' ||
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/create-react-app",
|
3
|
-
"version": "2.12.1-canary.
|
3
|
+
"version": "2.12.1-canary.3354+6f68c78b1",
|
4
4
|
"bin": {
|
5
5
|
"parcel-create-react-app": "lib/bin.js"
|
6
6
|
},
|
@@ -20,10 +20,10 @@
|
|
20
20
|
"access": "public"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"
|
24
|
-
"chalk": "^2.4.2",
|
23
|
+
"chalk": "^4.1.2",
|
25
24
|
"command-exists": "^1.2.6",
|
26
|
-
"commander": "^
|
25
|
+
"commander": "^12.1.0",
|
26
|
+
"cross-spawn": "^7.0.3",
|
27
27
|
"ncp": "^2.0.0",
|
28
28
|
"rimraf": "^5.0.5",
|
29
29
|
"simple-git": "^3.21.0",
|
@@ -34,5 +34,5 @@
|
|
34
34
|
"@babel/core": "^7.22.11",
|
35
35
|
"@parcel/babel-register": "2.12.0"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "6f68c78b1fa2b9653e298fd893e43e875ff6bdb8"
|
38
38
|
}
|