@quilted/create 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/cjs/app.cjs +244 -525
- package/build/cjs/index.cjs +255 -996
- package/build/cjs/index3.cjs +1205 -577
- package/build/cjs/package-manager.cjs +207 -799
- package/build/cjs/package.cjs +326 -701
- package/build/cjs/parser-babel.cjs +3 -3
- package/build/cjs/parser-yaml.cjs +2 -2
- package/build/cjs/standalone.cjs +3 -3
- package/build/esm/app.mjs +249 -530
- package/build/esm/index.mjs +239 -978
- package/build/esm/index3.mjs +1205 -548
- package/build/esm/package-manager.mjs +208 -799
- package/build/esm/package.mjs +326 -701
- package/build/esm/parser-babel.mjs +1 -1
- package/build/esm/parser-yaml.mjs +1 -1
- package/build/esm/standalone.mjs +1 -1
- package/package.json +1 -1
- package/build/cjs/_commonjsHelpers.cjs +0 -10
- package/build/esm/_commonjsHelpers.mjs +0 -7
package/build/esm/index.mjs
CHANGED
|
@@ -5,442 +5,10 @@ import 'url';
|
|
|
5
5
|
import require$$0$1 from 'readline';
|
|
6
6
|
import require$$2 from 'events';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
if (!raw) {
|
|
10
|
-
raw = strings.slice(0);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
14
|
-
raw: {
|
|
15
|
-
value: Object.freeze(raw)
|
|
16
|
-
}
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
21
|
-
try {
|
|
22
|
-
var info = gen[key](arg);
|
|
23
|
-
var value = info.value;
|
|
24
|
-
} catch (error) {
|
|
25
|
-
reject(error);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
8
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
28
9
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} else {
|
|
32
|
-
Promise.resolve(value).then(_next, _throw);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _asyncToGenerator$5(fn) {
|
|
37
|
-
return function () {
|
|
38
|
-
var self = this,
|
|
39
|
-
args = arguments;
|
|
40
|
-
return new Promise(function (resolve, reject) {
|
|
41
|
-
var gen = fn.apply(self, args);
|
|
42
|
-
|
|
43
|
-
function _next(value) {
|
|
44
|
-
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _throw(err) {
|
|
48
|
-
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
_next(undefined);
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
57
|
-
|
|
58
|
-
var _typeof$1 = {exports: {}};
|
|
59
|
-
|
|
60
|
-
(function (module) {
|
|
61
|
-
function _typeof(obj) {
|
|
62
|
-
"@babel/helpers - typeof";
|
|
63
|
-
|
|
64
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
65
|
-
return typeof obj;
|
|
66
|
-
} : function (obj) {
|
|
67
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
68
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
72
|
-
}(_typeof$1));
|
|
73
|
-
|
|
74
|
-
(function (module) {
|
|
75
|
-
var _typeof = _typeof$1.exports["default"];
|
|
76
|
-
|
|
77
|
-
function _regeneratorRuntime() {
|
|
78
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
79
|
-
|
|
80
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
81
|
-
return exports;
|
|
82
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
83
|
-
var exports = {},
|
|
84
|
-
Op = Object.prototype,
|
|
85
|
-
hasOwn = Op.hasOwnProperty,
|
|
86
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
87
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
88
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
89
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
90
|
-
|
|
91
|
-
function define(obj, key, value) {
|
|
92
|
-
return Object.defineProperty(obj, key, {
|
|
93
|
-
value: value,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}), obj[key];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
define({}, "");
|
|
102
|
-
} catch (err) {
|
|
103
|
-
define = function define(obj, key, value) {
|
|
104
|
-
return obj[key] = value;
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
109
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
110
|
-
generator = Object.create(protoGenerator.prototype),
|
|
111
|
-
context = new Context(tryLocsList || []);
|
|
112
|
-
return generator._invoke = function (innerFn, self, context) {
|
|
113
|
-
var state = "suspendedStart";
|
|
114
|
-
return function (method, arg) {
|
|
115
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
116
|
-
|
|
117
|
-
if ("completed" === state) {
|
|
118
|
-
if ("throw" === method) throw arg;
|
|
119
|
-
return doneResult();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
for (context.method = method, context.arg = arg;;) {
|
|
123
|
-
var delegate = context.delegate;
|
|
124
|
-
|
|
125
|
-
if (delegate) {
|
|
126
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
127
|
-
|
|
128
|
-
if (delegateResult) {
|
|
129
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
130
|
-
return delegateResult;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
135
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
136
|
-
context.dispatchException(context.arg);
|
|
137
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
138
|
-
state = "executing";
|
|
139
|
-
var record = tryCatch(innerFn, self, context);
|
|
140
|
-
|
|
141
|
-
if ("normal" === record.type) {
|
|
142
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
143
|
-
return {
|
|
144
|
-
value: record.arg,
|
|
145
|
-
done: context.done
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
}(innerFn, self, context), generator;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function tryCatch(fn, obj, arg) {
|
|
156
|
-
try {
|
|
157
|
-
return {
|
|
158
|
-
type: "normal",
|
|
159
|
-
arg: fn.call(obj, arg)
|
|
160
|
-
};
|
|
161
|
-
} catch (err) {
|
|
162
|
-
return {
|
|
163
|
-
type: "throw",
|
|
164
|
-
arg: err
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
exports.wrap = wrap;
|
|
170
|
-
var ContinueSentinel = {};
|
|
171
|
-
|
|
172
|
-
function Generator() {}
|
|
173
|
-
|
|
174
|
-
function GeneratorFunction() {}
|
|
175
|
-
|
|
176
|
-
function GeneratorFunctionPrototype() {}
|
|
177
|
-
|
|
178
|
-
var IteratorPrototype = {};
|
|
179
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
180
|
-
return this;
|
|
181
|
-
});
|
|
182
|
-
var getProto = Object.getPrototypeOf,
|
|
183
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
184
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
185
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
186
|
-
|
|
187
|
-
function defineIteratorMethods(prototype) {
|
|
188
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
189
|
-
define(prototype, method, function (arg) {
|
|
190
|
-
return this._invoke(method, arg);
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
196
|
-
function invoke(method, arg, resolve, reject) {
|
|
197
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
198
|
-
|
|
199
|
-
if ("throw" !== record.type) {
|
|
200
|
-
var result = record.arg,
|
|
201
|
-
value = result.value;
|
|
202
|
-
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
203
|
-
invoke("next", value, resolve, reject);
|
|
204
|
-
}, function (err) {
|
|
205
|
-
invoke("throw", err, resolve, reject);
|
|
206
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
207
|
-
result.value = unwrapped, resolve(result);
|
|
208
|
-
}, function (error) {
|
|
209
|
-
return invoke("throw", error, resolve, reject);
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
reject(record.arg);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
var previousPromise;
|
|
217
|
-
|
|
218
|
-
this._invoke = function (method, arg) {
|
|
219
|
-
function callInvokeWithMethodAndArg() {
|
|
220
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
221
|
-
invoke(method, arg, resolve, reject);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
230
|
-
var method = delegate.iterator[context.method];
|
|
231
|
-
|
|
232
|
-
if (undefined === method) {
|
|
233
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
234
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
235
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
return ContinueSentinel;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
242
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
243
|
-
var info = record.arg;
|
|
244
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function pushTryEntry(locs) {
|
|
248
|
-
var entry = {
|
|
249
|
-
tryLoc: locs[0]
|
|
250
|
-
};
|
|
251
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
function resetTryEntry(entry) {
|
|
255
|
-
var record = entry.completion || {};
|
|
256
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
function Context(tryLocsList) {
|
|
260
|
-
this.tryEntries = [{
|
|
261
|
-
tryLoc: "root"
|
|
262
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
function values(iterable) {
|
|
266
|
-
if (iterable) {
|
|
267
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
268
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
269
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
270
|
-
|
|
271
|
-
if (!isNaN(iterable.length)) {
|
|
272
|
-
var i = -1,
|
|
273
|
-
next = function next() {
|
|
274
|
-
for (; ++i < iterable.length;) {
|
|
275
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
return next.value = undefined, next.done = !0, next;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
return next.next = next;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
return {
|
|
286
|
-
next: doneResult
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
function doneResult() {
|
|
291
|
-
return {
|
|
292
|
-
value: undefined,
|
|
293
|
-
done: !0
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
298
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
299
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
300
|
-
}, exports.mark = function (genFun) {
|
|
301
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
302
|
-
}, exports.awrap = function (arg) {
|
|
303
|
-
return {
|
|
304
|
-
__await: arg
|
|
305
|
-
};
|
|
306
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
307
|
-
return this;
|
|
308
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
309
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
310
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
311
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
312
|
-
return result.done ? result.value : iter.next();
|
|
313
|
-
});
|
|
314
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
315
|
-
return this;
|
|
316
|
-
}), define(Gp, "toString", function () {
|
|
317
|
-
return "[object Generator]";
|
|
318
|
-
}), exports.keys = function (object) {
|
|
319
|
-
var keys = [];
|
|
320
|
-
|
|
321
|
-
for (var key in object) {
|
|
322
|
-
keys.push(key);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
return keys.reverse(), function next() {
|
|
326
|
-
for (; keys.length;) {
|
|
327
|
-
var key = keys.pop();
|
|
328
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
return next.done = !0, next;
|
|
332
|
-
};
|
|
333
|
-
}, exports.values = values, Context.prototype = {
|
|
334
|
-
constructor: Context,
|
|
335
|
-
reset: function reset(skipTempReset) {
|
|
336
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
337
|
-
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
stop: function stop() {
|
|
341
|
-
this.done = !0;
|
|
342
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
343
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
344
|
-
return this.rval;
|
|
345
|
-
},
|
|
346
|
-
dispatchException: function dispatchException(exception) {
|
|
347
|
-
if (this.done) throw exception;
|
|
348
|
-
var context = this;
|
|
349
|
-
|
|
350
|
-
function handle(loc, caught) {
|
|
351
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
355
|
-
var entry = this.tryEntries[i],
|
|
356
|
-
record = entry.completion;
|
|
357
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
358
|
-
|
|
359
|
-
if (entry.tryLoc <= this.prev) {
|
|
360
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
361
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
362
|
-
|
|
363
|
-
if (hasCatch && hasFinally) {
|
|
364
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
365
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
366
|
-
} else if (hasCatch) {
|
|
367
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
368
|
-
} else {
|
|
369
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
370
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
abrupt: function abrupt(type, arg) {
|
|
376
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
377
|
-
var entry = this.tryEntries[i];
|
|
378
|
-
|
|
379
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
380
|
-
var finallyEntry = entry;
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
386
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
387
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
388
|
-
},
|
|
389
|
-
complete: function complete(record, afterLoc) {
|
|
390
|
-
if ("throw" === record.type) throw record.arg;
|
|
391
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
392
|
-
},
|
|
393
|
-
finish: function finish(finallyLoc) {
|
|
394
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
395
|
-
var entry = this.tryEntries[i];
|
|
396
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
"catch": function _catch(tryLoc) {
|
|
400
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
401
|
-
var entry = this.tryEntries[i];
|
|
402
|
-
|
|
403
|
-
if (entry.tryLoc === tryLoc) {
|
|
404
|
-
var record = entry.completion;
|
|
405
|
-
|
|
406
|
-
if ("throw" === record.type) {
|
|
407
|
-
var thrown = record.arg;
|
|
408
|
-
resetTryEntry(entry);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
return thrown;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
throw new Error("illegal catch attempt");
|
|
416
|
-
},
|
|
417
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
418
|
-
return this.delegate = {
|
|
419
|
-
iterator: values(iterable),
|
|
420
|
-
resultName: resultName,
|
|
421
|
-
nextLoc: nextLoc
|
|
422
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
423
|
-
}
|
|
424
|
-
}, exports;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
428
|
-
}(regeneratorRuntime$1));
|
|
429
|
-
|
|
430
|
-
// TODO(Babel 8): Remove this file.
|
|
431
|
-
|
|
432
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
433
|
-
var regenerator = runtime;
|
|
434
|
-
|
|
435
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
436
|
-
try {
|
|
437
|
-
regeneratorRuntime = runtime;
|
|
438
|
-
} catch (accidentalStrictMode) {
|
|
439
|
-
if (typeof globalThis === "object") {
|
|
440
|
-
globalThis.regeneratorRuntime = runtime;
|
|
441
|
-
} else {
|
|
442
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
443
|
-
}
|
|
10
|
+
function getDefaultExportFromCjs (x) {
|
|
11
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
444
12
|
}
|
|
445
13
|
|
|
446
14
|
const flagSymbol = Symbol('arg flag');
|
|
@@ -855,13 +423,13 @@ colorette.whiteBright = whiteBright;
|
|
|
855
423
|
colorette.yellow = yellow;
|
|
856
424
|
colorette.yellowBright = yellowBright;
|
|
857
425
|
|
|
858
|
-
var _createClass
|
|
426
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
859
427
|
|
|
860
|
-
var _templateObject
|
|
428
|
+
var _templateObject = _taggedTemplateLiteral(['', ''], ['', '']);
|
|
861
429
|
|
|
862
430
|
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
863
431
|
|
|
864
|
-
function _classCallCheck
|
|
432
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
865
433
|
|
|
866
434
|
/**
|
|
867
435
|
* @class TemplateTag
|
|
@@ -881,7 +449,7 @@ var TemplateTag = function () {
|
|
|
881
449
|
transformers[_key] = arguments[_key];
|
|
882
450
|
}
|
|
883
451
|
|
|
884
|
-
_classCallCheck
|
|
452
|
+
_classCallCheck(this, TemplateTag);
|
|
885
453
|
|
|
886
454
|
this.tag = function (strings) {
|
|
887
455
|
for (var _len2 = arguments.length, expressions = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -929,7 +497,7 @@ var TemplateTag = function () {
|
|
|
929
497
|
*/
|
|
930
498
|
|
|
931
499
|
|
|
932
|
-
_createClass
|
|
500
|
+
_createClass(TemplateTag, [{
|
|
933
501
|
key: 'interimTag',
|
|
934
502
|
|
|
935
503
|
|
|
@@ -946,7 +514,7 @@ var TemplateTag = function () {
|
|
|
946
514
|
substitutions[_key3 - 2] = arguments[_key3];
|
|
947
515
|
}
|
|
948
516
|
|
|
949
|
-
return this.tag(_templateObject
|
|
517
|
+
return this.tag(_templateObject, previousTag.apply(undefined, [template].concat(substitutions)));
|
|
950
518
|
}
|
|
951
519
|
|
|
952
520
|
/**
|
|
@@ -1216,7 +784,10 @@ var stripIndent = new TemplateTag(stripIndentTransformer, trimResultTransformer)
|
|
|
1216
784
|
|
|
1217
785
|
new TemplateTag(stripIndentTransformer('all'), trimResultTransformer);
|
|
1218
786
|
|
|
1219
|
-
|
|
787
|
+
var defineProperty = {exports: {}};
|
|
788
|
+
|
|
789
|
+
(function (module) {
|
|
790
|
+
function _defineProperty(obj, key, value) {
|
|
1220
791
|
if (key in obj) {
|
|
1221
792
|
Object.defineProperty(obj, key, {
|
|
1222
793
|
value: value,
|
|
@@ -1231,217 +802,101 @@ function _defineProperty$1(obj, key, value) {
|
|
|
1231
802
|
return obj;
|
|
1232
803
|
}
|
|
1233
804
|
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
805
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
806
|
+
}(defineProperty));
|
|
1239
807
|
|
|
1240
|
-
|
|
1241
|
-
for (var i = 0; i < props.length; i++) {
|
|
1242
|
-
var descriptor = props[i];
|
|
1243
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
1244
|
-
descriptor.configurable = true;
|
|
1245
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
1246
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
1251
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1252
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1253
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
1254
|
-
writable: false
|
|
1255
|
-
});
|
|
1256
|
-
return Constructor;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
function _assertThisInitialized(self) {
|
|
1260
|
-
if (self === void 0) {
|
|
1261
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
return self;
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
function _getPrototypeOf(o) {
|
|
1268
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1269
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1270
|
-
};
|
|
1271
|
-
return _getPrototypeOf(o);
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
function _setPrototypeOf(o, p) {
|
|
1275
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1276
|
-
o.__proto__ = p;
|
|
1277
|
-
return o;
|
|
1278
|
-
};
|
|
1279
|
-
return _setPrototypeOf(o, p);
|
|
1280
|
-
}
|
|
808
|
+
var _defineProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(defineProperty.exports);
|
|
1281
809
|
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
810
|
+
class AbortError extends Error {
|
|
811
|
+
static test(error) {
|
|
812
|
+
return error != null && error.code === 'ABORT_ERR';
|
|
1285
813
|
}
|
|
1286
814
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
value: subClass,
|
|
1290
|
-
writable: true,
|
|
1291
|
-
configurable: true
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
Object.defineProperty(subClass, "prototype", {
|
|
1295
|
-
writable: false
|
|
1296
|
-
});
|
|
1297
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
function _typeof(obj) {
|
|
1301
|
-
"@babel/helpers - typeof";
|
|
815
|
+
constructor(message = 'The operation was aborted') {
|
|
816
|
+
super(message);
|
|
1302
817
|
|
|
1303
|
-
|
|
1304
|
-
return typeof obj;
|
|
1305
|
-
} : function (obj) {
|
|
1306
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1307
|
-
}, _typeof(obj);
|
|
1308
|
-
}
|
|
818
|
+
_defineProperty$1(this, "code", 'ABORT_ERR');
|
|
1309
819
|
|
|
1310
|
-
|
|
1311
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
1312
|
-
return call;
|
|
1313
|
-
} else if (call !== void 0) {
|
|
1314
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
820
|
+
_defineProperty$1(this, "name", 'AbortError');
|
|
1315
821
|
}
|
|
1316
822
|
|
|
1317
|
-
return _assertThisInitialized(self);
|
|
1318
823
|
}
|
|
1319
824
|
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
825
|
+
let _$1 = t => t,
|
|
826
|
+
_t$1,
|
|
827
|
+
_t2,
|
|
828
|
+
_t3,
|
|
829
|
+
_t4;
|
|
830
|
+
function printHelp({
|
|
831
|
+
kind,
|
|
832
|
+
options: customOptions,
|
|
833
|
+
packageManager
|
|
834
|
+
}) {
|
|
835
|
+
const command = createCommand(packageManager);
|
|
836
|
+
const usage = stripIndent(_t$1 || (_t$1 = _$1`
|
|
837
|
+
${0} ${0} ${0} ${0} ${0}
|
|
838
|
+
`), bold_1('Usage:'), command, kind ? magenta_1(kind) : magenta_1('[kind]'), green_1('[name]'), cyan_1('[options]'));
|
|
839
|
+
console.log(usage);
|
|
840
|
+
const example = stripIndent(_t2 || (_t2 = _$1`
|
|
841
|
+
${0} ${0} ${0} ${0} ${0}
|
|
842
|
+
`), bold_1('Example:'), command, magenta_1(kind !== null && kind !== void 0 ? kind : 'app'), green_1(`my-${kind !== null && kind !== void 0 ? kind : 'app'}`), cyan_1('--install'));
|
|
843
|
+
console.log(dim_1(example));
|
|
1323
844
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
if (typeof Proxy === "function") return true;
|
|
845
|
+
if (!kind) {
|
|
846
|
+
const kindSection = stripIndent(_t3 || (_t3 = _$1`
|
|
847
|
+
${0} can be one of the following project types:
|
|
1328
848
|
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
return true;
|
|
1332
|
-
} catch (e) {
|
|
1333
|
-
return false;
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
849
|
+
- ${0}, a web application
|
|
850
|
+
- ${0}, a shared library of code
|
|
1336
851
|
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
_construct = function _construct(Parent, args, Class) {
|
|
1342
|
-
var a = [null];
|
|
1343
|
-
a.push.apply(a, args);
|
|
1344
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
1345
|
-
var instance = new Constructor();
|
|
1346
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
1347
|
-
return instance;
|
|
1348
|
-
};
|
|
852
|
+
You’ll be asked a few additional questions based on the kind you choose.
|
|
853
|
+
`), bold_1(magenta_1('kind')), magenta_1('app'), magenta_1('package'));
|
|
854
|
+
console.log();
|
|
855
|
+
console.log(kindSection);
|
|
1349
856
|
}
|
|
1350
857
|
|
|
1351
|
-
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
1358
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
1359
|
-
|
|
1360
|
-
if (typeof Class !== "function") {
|
|
1361
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
if (typeof _cache !== "undefined") {
|
|
1365
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
1366
|
-
|
|
1367
|
-
_cache.set(Class, Wrapper);
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
function Wrapper() {
|
|
1371
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
1375
|
-
constructor: {
|
|
1376
|
-
value: Wrapper,
|
|
1377
|
-
enumerable: false,
|
|
1378
|
-
writable: true,
|
|
1379
|
-
configurable: true
|
|
1380
|
-
}
|
|
1381
|
-
});
|
|
1382
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
return _wrapNativeSuper(Class);
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1389
|
-
|
|
1390
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1391
|
-
|
|
1392
|
-
var AbortError = /*#__PURE__*/function (_Error) {
|
|
1393
|
-
_inherits(AbortError, _Error);
|
|
1394
|
-
|
|
1395
|
-
var _super2 = _createSuper(AbortError);
|
|
1396
|
-
|
|
1397
|
-
function AbortError() {
|
|
1398
|
-
var _this2;
|
|
1399
|
-
|
|
1400
|
-
var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'The operation was aborted';
|
|
1401
|
-
|
|
1402
|
-
_classCallCheck(this, AbortError);
|
|
858
|
+
const optionsSection = stripIndent(_t4 || (_t4 = _$1`
|
|
859
|
+
${0}
|
|
860
|
+
The name of the project. When creating a package, you should use the public name you
|
|
861
|
+
want for the package, including any scope you want to use (example: ${0}).
|
|
862
|
+
If you don’t provide a name with this flag, this command will ask you for one later.
|
|
1403
863
|
|
|
1404
|
-
|
|
864
|
+
${0}
|
|
865
|
+
The directory to create the project in. If you don’t provide this flag, Quilt will pick
|
|
866
|
+
a default directory based on the kind of the project and the name you provided.
|
|
1405
867
|
|
|
1406
|
-
|
|
868
|
+
${0}, ${0}
|
|
869
|
+
If you aren’t already in a monorepo, this flag will create your new project with some
|
|
870
|
+
additional structure that allows it to be a monorepo — that is, you will be able to add
|
|
871
|
+
multiple projects to a single repository.
|
|
1407
872
|
|
|
1408
|
-
|
|
873
|
+
${0}, ${0}
|
|
874
|
+
Whether to install dependencies in the newly created project. If you do not provide this
|
|
875
|
+
flag, Quilt will ask you about it later.
|
|
1409
876
|
|
|
1410
|
-
|
|
1411
|
-
|
|
877
|
+
${0}
|
|
878
|
+
The package manager to use for your new project. This choice will be used to populate
|
|
879
|
+
some commands, and will be used to install dependencies if the ${0} flag is set.
|
|
1412
880
|
|
|
1413
|
-
|
|
1414
|
-
key: "test",
|
|
1415
|
-
value: function test(error) {
|
|
1416
|
-
return error != null && error.code === 'ABORT_ERR';
|
|
1417
|
-
}
|
|
1418
|
-
}]);
|
|
881
|
+
Must be one of the following: ${0}, ${0}, or ${0}.
|
|
1419
882
|
|
|
1420
|
-
|
|
1421
|
-
|
|
883
|
+
${0}, ${0}
|
|
884
|
+
Extra developer tools to configure when creating your new project. This option only
|
|
885
|
+
applies when creating a brand new project, not when adding a project to an existing
|
|
886
|
+
workspace. You can include this flag multiple times to add multiple tools. You can
|
|
887
|
+
enable any of the following tools:
|
|
1422
888
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
1426
|
-
kind = _ref.kind,
|
|
1427
|
-
customOptions = _ref.options,
|
|
1428
|
-
packageManager = _ref.packageManager;
|
|
889
|
+
- ${0}, which adds a continuous integration (CI) GitHub Action to your project.
|
|
890
|
+
- ${0}, which adds some basic VSCode settings to your project.
|
|
1429
891
|
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
console.log(usage);
|
|
1433
|
-
var example = stripIndent(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral$1(["\n ", " ", " ", " ", " ", "\n "])), bold_1('Example:'), command, magenta_1(kind !== null && kind !== void 0 ? kind : 'app'), green_1("my-".concat(kind !== null && kind !== void 0 ? kind : 'app')), cyan_1('--install'));
|
|
1434
|
-
console.log(dim_1(example));
|
|
1435
|
-
|
|
1436
|
-
if (!kind) {
|
|
1437
|
-
var kindSection = stripIndent(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral$1(["\n ", " can be one of the following project types:\n\n - ", ", a web application\n - ", ", a shared library of code\n\n You\u2019ll be asked a few additional questions based on the kind you choose.\n "])), bold_1(magenta_1('kind')), magenta_1('app'), magenta_1('package'));
|
|
1438
|
-
console.log();
|
|
1439
|
-
console.log(kindSection);
|
|
1440
|
-
}
|
|
892
|
+
${0}, ${0}
|
|
893
|
+
Answers “yes” to any question this command would have asked.
|
|
1441
894
|
|
|
1442
|
-
|
|
895
|
+
${0}, ${0}
|
|
896
|
+
Prints this help documentation.
|
|
897
|
+
`), cyan_1('--name'), bold_1('@my-org/my-package'), cyan_1('--directory'), cyan_1(`--monorepo`), cyan_1(`--no-monorepo`), cyan_1(`--install`), cyan_1(`--no-install`), cyan_1('--package-manager'), cyan_1('--install'), bold_1('pnpm'), bold_1('npm'), bold_1('yarn'), cyan_1(`--extras`), cyan_1(`--no-extras`), bold_1('github'), bold_1('vscode'), cyan_1('--yes'), cyan_1('-y'), cyan_1('--help'), cyan_1('-h'));
|
|
1443
898
|
console.log();
|
|
1444
|
-
console.log(
|
|
899
|
+
console.log(`${bold_1(cyan_1('options'))} can include any of these flags:`);
|
|
1445
900
|
|
|
1446
901
|
if (customOptions) {
|
|
1447
902
|
console.log();
|
|
@@ -1453,16 +908,14 @@ function printHelp() {
|
|
|
1453
908
|
}
|
|
1454
909
|
|
|
1455
910
|
function printOptionsSection(section) {
|
|
1456
|
-
return section.split('\n').map(
|
|
1457
|
-
return line.length > 0 ? " ".concat(line) : line;
|
|
1458
|
-
}).join('\n');
|
|
911
|
+
return section.split('\n').map(line => line.length > 0 ? ` ${line}` : line).join('\n');
|
|
1459
912
|
}
|
|
1460
913
|
|
|
1461
914
|
function createCommand(explicitPackageManager) {
|
|
1462
915
|
var _process$env$npm_conf;
|
|
1463
916
|
|
|
1464
|
-
|
|
1465
|
-
|
|
917
|
+
let packageManager;
|
|
918
|
+
const npmUserAgent = (_process$env$npm_conf = process.env['npm_config_user_agent']) !== null && _process$env$npm_conf !== void 0 ? _process$env$npm_conf : 'npm';
|
|
1466
919
|
|
|
1467
920
|
if (npmUserAgent.includes('pnpm') || explicitPackageManager === 'pnpm') {
|
|
1468
921
|
packageManager = 'pnpm';
|
|
@@ -1472,7 +925,7 @@ function createCommand(explicitPackageManager) {
|
|
|
1472
925
|
packageManager = 'npm';
|
|
1473
926
|
}
|
|
1474
927
|
|
|
1475
|
-
return
|
|
928
|
+
return `${packageManager} create @quilted`;
|
|
1476
929
|
}
|
|
1477
930
|
|
|
1478
931
|
var prompts$4 = {};
|
|
@@ -4376,9 +3829,9 @@ $.autocomplete = args => {
|
|
|
4376
3829
|
};
|
|
4377
3830
|
}(prompts$4));
|
|
4378
3831
|
|
|
4379
|
-
function ownKeys
|
|
3832
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
4380
3833
|
|
|
4381
|
-
function _objectSpread
|
|
3834
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4382
3835
|
|
|
4383
3836
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4384
3837
|
|
|
@@ -4407,11 +3860,11 @@ const noop$1 = () => {};
|
|
|
4407
3860
|
|
|
4408
3861
|
|
|
4409
3862
|
function prompt$3() {
|
|
4410
|
-
return _prompt
|
|
3863
|
+
return _prompt.apply(this, arguments);
|
|
4411
3864
|
}
|
|
4412
3865
|
|
|
4413
|
-
function _prompt
|
|
4414
|
-
_prompt
|
|
3866
|
+
function _prompt() {
|
|
3867
|
+
_prompt = _asyncToGenerator(function* (questions = [], {
|
|
4415
3868
|
onSubmit = noop$1,
|
|
4416
3869
|
onCancel = noop$1
|
|
4417
3870
|
} = {}) {
|
|
@@ -4446,7 +3899,7 @@ function _prompt$1() {
|
|
|
4446
3899
|
|
|
4447
3900
|
// evaluate type first and skip if type is a falsy value
|
|
4448
3901
|
if (typeof type === 'function') {
|
|
4449
|
-
type = yield type(answer, _objectSpread
|
|
3902
|
+
type = yield type(answer, _objectSpread({}, answers), question);
|
|
4450
3903
|
question['type'] = type;
|
|
4451
3904
|
}
|
|
4452
3905
|
|
|
@@ -4455,7 +3908,7 @@ function _prompt$1() {
|
|
|
4455
3908
|
for (let key in question) {
|
|
4456
3909
|
if (passOn$1.includes(key)) continue;
|
|
4457
3910
|
let value = question[key];
|
|
4458
|
-
question[key] = typeof value === 'function' ? yield value(answer, _objectSpread
|
|
3911
|
+
question[key] = typeof value === 'function' ? yield value(answer, _objectSpread({}, answers), lastPrompt) : value;
|
|
4459
3912
|
}
|
|
4460
3913
|
|
|
4461
3914
|
lastPrompt = question;
|
|
@@ -4501,7 +3954,7 @@ function _prompt$1() {
|
|
|
4501
3954
|
|
|
4502
3955
|
return answers;
|
|
4503
3956
|
});
|
|
4504
|
-
return _prompt
|
|
3957
|
+
return _prompt.apply(this, arguments);
|
|
4505
3958
|
}
|
|
4506
3959
|
|
|
4507
3960
|
function getInjectedAnswer$1(injected, deafultValue) {
|
|
@@ -7158,369 +6611,177 @@ var prompts =
|
|
|
7158
6611
|
? dist
|
|
7159
6612
|
: lib;
|
|
7160
6613
|
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
_prompt = _asyncToGenerator$5( /*#__PURE__*/regenerator.mark(function _callee(prompt) {
|
|
7170
|
-
var result;
|
|
7171
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
7172
|
-
while (1) {
|
|
7173
|
-
switch (_context.prev = _context.next) {
|
|
7174
|
-
case 0:
|
|
7175
|
-
_context.next = 2;
|
|
7176
|
-
return prompts(_objectSpread({
|
|
7177
|
-
name: 'value'
|
|
7178
|
-
}, prompt), {
|
|
7179
|
-
onCancel: function onCancel() {
|
|
7180
|
-
throw new AbortError();
|
|
7181
|
-
}
|
|
7182
|
-
});
|
|
7183
|
-
|
|
7184
|
-
case 2:
|
|
7185
|
-
result = _context.sent;
|
|
7186
|
-
return _context.abrupt("return", result.value);
|
|
7187
|
-
|
|
7188
|
-
case 4:
|
|
7189
|
-
case "end":
|
|
7190
|
-
return _context.stop();
|
|
7191
|
-
}
|
|
7192
|
-
}
|
|
7193
|
-
}, _callee);
|
|
7194
|
-
}));
|
|
7195
|
-
return _prompt.apply(this, arguments);
|
|
7196
|
-
}
|
|
6614
|
+
async function prompt(prompt) {
|
|
6615
|
+
const result = await prompts({
|
|
6616
|
+
name: 'value',
|
|
6617
|
+
...prompt
|
|
6618
|
+
}, {
|
|
6619
|
+
onCancel() {
|
|
6620
|
+
throw new AbortError();
|
|
6621
|
+
}
|
|
7197
6622
|
|
|
7198
|
-
|
|
7199
|
-
return
|
|
6623
|
+
});
|
|
6624
|
+
return result.value;
|
|
7200
6625
|
}
|
|
6626
|
+
async function getCreateAsMonorepo(argv) {
|
|
6627
|
+
let createAsMonorepo;
|
|
7201
6628
|
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
createAsMonorepo = true;
|
|
7215
|
-
_context2.next = 11;
|
|
7216
|
-
break;
|
|
7217
|
-
|
|
7218
|
-
case 4:
|
|
7219
|
-
if (!argv['--no-monorepo']) {
|
|
7220
|
-
_context2.next = 8;
|
|
7221
|
-
break;
|
|
7222
|
-
}
|
|
7223
|
-
|
|
7224
|
-
createAsMonorepo = false;
|
|
7225
|
-
_context2.next = 11;
|
|
7226
|
-
break;
|
|
7227
|
-
|
|
7228
|
-
case 8:
|
|
7229
|
-
_context2.next = 10;
|
|
7230
|
-
return prompt({
|
|
7231
|
-
type: 'confirm',
|
|
7232
|
-
message: 'Do you want to create this app as a monorepo, with room for more projects?',
|
|
7233
|
-
initial: true
|
|
7234
|
-
});
|
|
7235
|
-
|
|
7236
|
-
case 10:
|
|
7237
|
-
createAsMonorepo = _context2.sent;
|
|
7238
|
-
|
|
7239
|
-
case 11:
|
|
7240
|
-
return _context2.abrupt("return", createAsMonorepo);
|
|
7241
|
-
|
|
7242
|
-
case 12:
|
|
7243
|
-
case "end":
|
|
7244
|
-
return _context2.stop();
|
|
7245
|
-
}
|
|
7246
|
-
}
|
|
7247
|
-
}, _callee2);
|
|
7248
|
-
}));
|
|
7249
|
-
return _getCreateAsMonorepo.apply(this, arguments);
|
|
7250
|
-
}
|
|
6629
|
+
if (argv['--monorepo' ]) {
|
|
6630
|
+
createAsMonorepo = true;
|
|
6631
|
+
} else if (argv['--no-monorepo']) {
|
|
6632
|
+
createAsMonorepo = false;
|
|
6633
|
+
} else {
|
|
6634
|
+
createAsMonorepo = await prompt({
|
|
6635
|
+
type: 'confirm',
|
|
6636
|
+
message: 'Do you want to create this app as a monorepo, with room for more projects?',
|
|
6637
|
+
initial: true
|
|
6638
|
+
});
|
|
6639
|
+
}
|
|
7251
6640
|
|
|
7252
|
-
|
|
7253
|
-
return _getShouldInstall.apply(this, arguments);
|
|
6641
|
+
return createAsMonorepo;
|
|
7254
6642
|
}
|
|
6643
|
+
async function getShouldInstall(argv) {
|
|
6644
|
+
let shouldInstall;
|
|
7255
6645
|
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
shouldInstall = true;
|
|
7269
|
-
_context3.next = 11;
|
|
7270
|
-
break;
|
|
7271
|
-
|
|
7272
|
-
case 4:
|
|
7273
|
-
if (!argv['--no-install']) {
|
|
7274
|
-
_context3.next = 8;
|
|
7275
|
-
break;
|
|
7276
|
-
}
|
|
7277
|
-
|
|
7278
|
-
shouldInstall = false;
|
|
7279
|
-
_context3.next = 11;
|
|
7280
|
-
break;
|
|
7281
|
-
|
|
7282
|
-
case 8:
|
|
7283
|
-
_context3.next = 10;
|
|
7284
|
-
return prompt({
|
|
7285
|
-
type: 'confirm',
|
|
7286
|
-
message: 'Do you want to install dependencies for this app after creating it?',
|
|
7287
|
-
initial: true
|
|
7288
|
-
});
|
|
7289
|
-
|
|
7290
|
-
case 10:
|
|
7291
|
-
shouldInstall = _context3.sent;
|
|
7292
|
-
|
|
7293
|
-
case 11:
|
|
7294
|
-
return _context3.abrupt("return", shouldInstall);
|
|
7295
|
-
|
|
7296
|
-
case 12:
|
|
7297
|
-
case "end":
|
|
7298
|
-
return _context3.stop();
|
|
7299
|
-
}
|
|
7300
|
-
}
|
|
7301
|
-
}, _callee3);
|
|
7302
|
-
}));
|
|
7303
|
-
return _getShouldInstall.apply(this, arguments);
|
|
7304
|
-
}
|
|
6646
|
+
if (argv['--install'] || argv['--yes']) {
|
|
6647
|
+
shouldInstall = true;
|
|
6648
|
+
} else if (argv['--no-install']) {
|
|
6649
|
+
shouldInstall = false;
|
|
6650
|
+
} else {
|
|
6651
|
+
shouldInstall = await prompt({
|
|
6652
|
+
type: 'confirm',
|
|
6653
|
+
message: 'Do you want to install dependencies for this app after creating it?',
|
|
6654
|
+
initial: true
|
|
6655
|
+
});
|
|
6656
|
+
}
|
|
7305
6657
|
|
|
7306
|
-
|
|
7307
|
-
function getPackageManager(_x4) {
|
|
7308
|
-
return _getPackageManager.apply(this, arguments);
|
|
6658
|
+
return shouldInstall;
|
|
7309
6659
|
}
|
|
6660
|
+
const VALID_PACKAGE_MANAGERS = new Set(['pnpm', 'npm', 'yarn']);
|
|
6661
|
+
async function getPackageManager(argv) {
|
|
6662
|
+
let packageManager;
|
|
7310
6663
|
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
while (1) {
|
|
7317
|
-
switch (_context4.prev = _context4.next) {
|
|
7318
|
-
case 0:
|
|
7319
|
-
if (argv['--package-manager']) {
|
|
7320
|
-
explicitPackageManager = argv['--package-manager'].toLocaleLowerCase();
|
|
7321
|
-
packageManager = VALID_PACKAGE_MANAGERS.has(explicitPackageManager) ? explicitPackageManager : 'npm';
|
|
7322
|
-
} else {
|
|
7323
|
-
npmUserAgent = (_process$env$npm_conf = process.env['npm_config_user_agent']) !== null && _process$env$npm_conf !== void 0 ? _process$env$npm_conf : 'npm';
|
|
7324
|
-
|
|
7325
|
-
if (npmUserAgent.includes('pnpm') || fs.existsSync('pnpm-lock.yaml')) {
|
|
7326
|
-
packageManager = 'pnpm';
|
|
7327
|
-
} else if (npmUserAgent.includes('yarn') || fs.existsSync('yarn.lock')) {
|
|
7328
|
-
packageManager = 'yarn';
|
|
7329
|
-
} else {
|
|
7330
|
-
packageManager = 'npm';
|
|
7331
|
-
}
|
|
7332
|
-
}
|
|
6664
|
+
if (argv['--package-manager']) {
|
|
6665
|
+
const explicitPackageManager = argv['--package-manager'].toLocaleLowerCase();
|
|
6666
|
+
packageManager = VALID_PACKAGE_MANAGERS.has(explicitPackageManager) ? explicitPackageManager : 'npm';
|
|
6667
|
+
} else {
|
|
6668
|
+
var _process$env$npm_conf;
|
|
7333
6669
|
|
|
7334
|
-
|
|
6670
|
+
const npmUserAgent = (_process$env$npm_conf = process.env['npm_config_user_agent']) !== null && _process$env$npm_conf !== void 0 ? _process$env$npm_conf : 'npm';
|
|
7335
6671
|
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
}
|
|
6672
|
+
if (npmUserAgent.includes('pnpm') || fs.existsSync('pnpm-lock.yaml')) {
|
|
6673
|
+
packageManager = 'pnpm';
|
|
6674
|
+
} else if (npmUserAgent.includes('yarn') || fs.existsSync('yarn.lock')) {
|
|
6675
|
+
packageManager = 'yarn';
|
|
6676
|
+
} else {
|
|
6677
|
+
packageManager = 'npm';
|
|
6678
|
+
}
|
|
6679
|
+
}
|
|
7345
6680
|
|
|
7346
|
-
|
|
7347
|
-
function getExtrasToSetup(_x5, _x6) {
|
|
7348
|
-
return _getExtrasToSetup.apply(this, arguments);
|
|
6681
|
+
return packageManager;
|
|
7349
6682
|
}
|
|
7350
|
-
|
|
7351
|
-
function
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
return VALID_EXTRAS.has(extra);
|
|
7375
|
-
})));
|
|
7376
|
-
|
|
7377
|
-
case 5:
|
|
7378
|
-
_context5.next = 7;
|
|
7379
|
-
return prompt({
|
|
7380
|
-
type: 'multiselect',
|
|
7381
|
-
message: 'Which additional tools would you like to configure?',
|
|
7382
|
-
instructions: dim_1("\n Use ".concat(bold_1('space'), " to select, ").concat(bold_1('a'), " to select all, ").concat(bold_1('return'), " to submit")),
|
|
7383
|
-
choices: [{
|
|
7384
|
-
title: 'VSCode',
|
|
7385
|
-
value: 'vscode'
|
|
7386
|
-
}, {
|
|
7387
|
-
title: 'GitHub',
|
|
7388
|
-
value: 'github'
|
|
7389
|
-
}]
|
|
7390
|
-
});
|
|
7391
|
-
|
|
7392
|
-
case 7:
|
|
7393
|
-
setupExtras = _context5.sent;
|
|
7394
|
-
extrasToSetup = new Set(setupExtras);
|
|
7395
|
-
return _context5.abrupt("return", extrasToSetup);
|
|
7396
|
-
|
|
7397
|
-
case 10:
|
|
7398
|
-
case "end":
|
|
7399
|
-
return _context5.stop();
|
|
7400
|
-
}
|
|
7401
|
-
}
|
|
7402
|
-
}, _callee5);
|
|
7403
|
-
}));
|
|
7404
|
-
return _getExtrasToSetup.apply(this, arguments);
|
|
6683
|
+
const VALID_EXTRAS = new Set(['github', 'vscode']);
|
|
6684
|
+
async function getExtrasToSetup(argv, {
|
|
6685
|
+
inWorkspace
|
|
6686
|
+
}) {
|
|
6687
|
+
if (inWorkspace || argv['--no-extras']) return new Set();
|
|
6688
|
+
|
|
6689
|
+
if (argv['--extras']) {
|
|
6690
|
+
return new Set(argv['--extras'].filter(extra => VALID_EXTRAS.has(extra)));
|
|
6691
|
+
}
|
|
6692
|
+
|
|
6693
|
+
const setupExtras = await prompt({
|
|
6694
|
+
type: 'multiselect',
|
|
6695
|
+
message: 'Which additional tools would you like to configure?',
|
|
6696
|
+
instructions: dim_1(`\n Use ${bold_1('space')} to select, ${bold_1('a')} to select all, ${bold_1('return')} to submit`),
|
|
6697
|
+
choices: [{
|
|
6698
|
+
title: 'VSCode',
|
|
6699
|
+
value: 'vscode'
|
|
6700
|
+
}, {
|
|
6701
|
+
title: 'GitHub',
|
|
6702
|
+
value: 'github'
|
|
6703
|
+
}]
|
|
6704
|
+
});
|
|
6705
|
+
const extrasToSetup = new Set(setupExtras);
|
|
6706
|
+
return extrasToSetup;
|
|
7405
6707
|
}
|
|
7406
6708
|
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
6709
|
+
let _ = t => t,
|
|
6710
|
+
_t;
|
|
6711
|
+
const VALID_PROJECT_KINDS = new Set(['app', 'package']);
|
|
6712
|
+
run().catch(error => {
|
|
7410
6713
|
if (AbortError.test(error)) return;
|
|
7411
6714
|
console.error(error);
|
|
7412
6715
|
process.exitCode = 1;
|
|
7413
6716
|
});
|
|
7414
6717
|
|
|
7415
|
-
function run() {
|
|
7416
|
-
|
|
7417
|
-
}
|
|
6718
|
+
async function run() {
|
|
6719
|
+
var _permissiveArgs$_$;
|
|
7418
6720
|
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
switch (_context.prev = _context.next) {
|
|
7428
|
-
case 0:
|
|
7429
|
-
permissiveArgs = arg_1({
|
|
7430
|
-
'--help': Boolean,
|
|
7431
|
-
'-h': '--help',
|
|
7432
|
-
'--package-manager': String
|
|
7433
|
-
}, {
|
|
7434
|
-
permissive: true
|
|
7435
|
-
});
|
|
7436
|
-
firstArgument = (_permissiveArgs$_$ = permissiveArgs._[0]) === null || _permissiveArgs$_$ === void 0 ? void 0 : _permissiveArgs$_$.toLowerCase();
|
|
7437
|
-
|
|
7438
|
-
if (!(firstArgument != null && !firstArgument.startsWith('-') && !VALID_PROJECT_KINDS.has(firstArgument))) {
|
|
7439
|
-
_context.next = 5;
|
|
7440
|
-
break;
|
|
7441
|
-
}
|
|
6721
|
+
const permissiveArgs = arg_1({
|
|
6722
|
+
'--help': Boolean,
|
|
6723
|
+
'-h': '--help',
|
|
6724
|
+
'--package-manager': String
|
|
6725
|
+
}, {
|
|
6726
|
+
permissive: true
|
|
6727
|
+
});
|
|
6728
|
+
const firstArgument = (_permissiveArgs$_$ = permissiveArgs._[0]) === null || _permissiveArgs$_$ === void 0 ? void 0 : _permissiveArgs$_$.toLowerCase();
|
|
7442
6729
|
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
6730
|
+
if (firstArgument != null && !firstArgument.startsWith('-') && !VALID_PROJECT_KINDS.has(firstArgument)) {
|
|
6731
|
+
// TODO: show help with error message
|
|
6732
|
+
process.exitCode = 1;
|
|
6733
|
+
return;
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6736
|
+
let kind = firstArgument == null || !VALID_PROJECT_KINDS.has(firstArgument) ? undefined : firstArgument;
|
|
6737
|
+
const header = stripIndent(_t || (_t = _`
|
|
6738
|
+
🧵 ${0}
|
|
6739
|
+
`), bold_1('quilt create'));
|
|
6740
|
+
console.log(header);
|
|
6741
|
+
console.log();
|
|
7446
6742
|
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
header = stripIndent(_templateObject || (_templateObject = _taggedTemplateLiteral$1(["\n \uD83E\uDDF5 ", "\n "])), bold_1('quilt create'));
|
|
7450
|
-
console.log(header);
|
|
7451
|
-
console.log();
|
|
6743
|
+
if (permissiveArgs['--help'] && !kind) {
|
|
6744
|
+
var _permissiveArgs$Pac;
|
|
7452
6745
|
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
6746
|
+
printHelp({
|
|
6747
|
+
packageManager: (_permissiveArgs$Pac = permissiveArgs['--package-manager']) === null || _permissiveArgs$Pac === void 0 ? void 0 : _permissiveArgs$Pac.toLowerCase()
|
|
6748
|
+
});
|
|
6749
|
+
return;
|
|
6750
|
+
}
|
|
7457
6751
|
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
6752
|
+
if (kind == null) {
|
|
6753
|
+
kind = await prompt({
|
|
6754
|
+
type: 'select',
|
|
6755
|
+
message: 'What kind of project would you like to create?',
|
|
6756
|
+
choices: [{
|
|
6757
|
+
title: 'App',
|
|
6758
|
+
value: 'app'
|
|
6759
|
+
}, {
|
|
6760
|
+
title: 'Package',
|
|
6761
|
+
value: 'package'
|
|
6762
|
+
}]
|
|
6763
|
+
});
|
|
6764
|
+
}
|
|
7462
6765
|
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
6766
|
+
switch (kind) {
|
|
6767
|
+
case 'app':
|
|
6768
|
+
{
|
|
6769
|
+
const {
|
|
6770
|
+
createApp
|
|
6771
|
+
} = await import('./app.mjs');
|
|
6772
|
+
await createApp();
|
|
6773
|
+
break;
|
|
6774
|
+
}
|
|
7468
6775
|
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
}, {
|
|
7477
|
-
title: 'Package',
|
|
7478
|
-
value: 'package'
|
|
7479
|
-
}]
|
|
7480
|
-
});
|
|
7481
|
-
|
|
7482
|
-
case 15:
|
|
7483
|
-
kind = _context.sent;
|
|
7484
|
-
|
|
7485
|
-
case 16:
|
|
7486
|
-
_context.t0 = kind;
|
|
7487
|
-
_context.next = _context.t0 === 'app' ? 19 : _context.t0 === 'package' ? 26 : 33;
|
|
7488
|
-
break;
|
|
7489
|
-
|
|
7490
|
-
case 19:
|
|
7491
|
-
_context.next = 21;
|
|
7492
|
-
return import('./app.mjs');
|
|
7493
|
-
|
|
7494
|
-
case 21:
|
|
7495
|
-
_yield$import = _context.sent;
|
|
7496
|
-
createApp = _yield$import.createApp;
|
|
7497
|
-
_context.next = 25;
|
|
7498
|
-
return createApp();
|
|
7499
|
-
|
|
7500
|
-
case 25:
|
|
7501
|
-
return _context.abrupt("break", 33);
|
|
7502
|
-
|
|
7503
|
-
case 26:
|
|
7504
|
-
_context.next = 28;
|
|
7505
|
-
return import('./package.mjs');
|
|
7506
|
-
|
|
7507
|
-
case 28:
|
|
7508
|
-
_yield$import2 = _context.sent;
|
|
7509
|
-
createProject = _yield$import2.createProject;
|
|
7510
|
-
_context.next = 32;
|
|
7511
|
-
return createProject();
|
|
7512
|
-
|
|
7513
|
-
case 32:
|
|
7514
|
-
return _context.abrupt("break", 33);
|
|
7515
|
-
|
|
7516
|
-
case 33:
|
|
7517
|
-
case "end":
|
|
7518
|
-
return _context.stop();
|
|
7519
|
-
}
|
|
6776
|
+
case 'package':
|
|
6777
|
+
{
|
|
6778
|
+
const {
|
|
6779
|
+
createProject
|
|
6780
|
+
} = await import('./package.mjs');
|
|
6781
|
+
await createProject();
|
|
6782
|
+
break;
|
|
7520
6783
|
}
|
|
7521
|
-
|
|
7522
|
-
}));
|
|
7523
|
-
return _run.apply(this, arguments);
|
|
6784
|
+
}
|
|
7524
6785
|
}
|
|
7525
6786
|
|
|
7526
|
-
export {
|
|
6787
|
+
export { getShouldInstall as a, bold_1 as b, cyan_1 as c, getPackageManager as d, getExtrasToSetup as e, dim_1 as f, getCreateAsMonorepo as g, arg_1 as h, prompt as i, getDefaultExportFromCjs as j, commonjsGlobal as k, magenta_1 as m, printHelp as p, stripIndent as s, underline_1 as u };
|