@valbuild/init 0.64.0 → 0.65.2
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "../../dist/declarations/src/main";
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
export * from "../../dist/declarations/src/main.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtaW5pdC1tYWluLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL21haW4uZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -128,7 +128,7 @@ function _regeneratorRuntime() {
|
|
|
128
128
|
function makeInvokeMethod(e, r, n) {
|
|
129
129
|
var o = h;
|
|
130
130
|
return function (i, a) {
|
|
131
|
-
if (o === f) throw
|
|
131
|
+
if (o === f) throw Error("Generator is already running");
|
|
132
132
|
if (o === s) {
|
|
133
133
|
if ("throw" === i) throw a;
|
|
134
134
|
return {
|
|
@@ -270,7 +270,7 @@ function _regeneratorRuntime() {
|
|
|
270
270
|
} else if (c) {
|
|
271
271
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
272
272
|
} else {
|
|
273
|
-
if (!u) throw
|
|
273
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
274
274
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -310,7 +310,7 @@ function _regeneratorRuntime() {
|
|
|
310
310
|
return o;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
throw
|
|
313
|
+
throw Error("illegal catch attempt");
|
|
314
314
|
},
|
|
315
315
|
delegateYield: function (e, r, n) {
|
|
316
316
|
return this.delegate = {
|
|
@@ -332,39 +332,34 @@ function _typeof(o) {
|
|
|
332
332
|
}, _typeof(o);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
function asyncGeneratorStep(
|
|
335
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
336
336
|
try {
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
} catch (
|
|
340
|
-
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
if (info.done) {
|
|
344
|
-
resolve(value);
|
|
345
|
-
} else {
|
|
346
|
-
Promise.resolve(value).then(_next, _throw);
|
|
337
|
+
var i = n[a](c),
|
|
338
|
+
u = i.value;
|
|
339
|
+
} catch (n) {
|
|
340
|
+
return void e(n);
|
|
347
341
|
}
|
|
342
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
348
343
|
}
|
|
349
|
-
function _asyncToGenerator(
|
|
344
|
+
function _asyncToGenerator(n) {
|
|
350
345
|
return function () {
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
return new Promise(function (
|
|
354
|
-
var
|
|
355
|
-
function _next(
|
|
356
|
-
asyncGeneratorStep(
|
|
346
|
+
var t = this,
|
|
347
|
+
e = arguments;
|
|
348
|
+
return new Promise(function (r, o) {
|
|
349
|
+
var a = n.apply(t, e);
|
|
350
|
+
function _next(n) {
|
|
351
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
357
352
|
}
|
|
358
|
-
function _throw(
|
|
359
|
-
asyncGeneratorStep(
|
|
353
|
+
function _throw(n) {
|
|
354
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
360
355
|
}
|
|
361
|
-
_next(
|
|
356
|
+
_next(void 0);
|
|
362
357
|
});
|
|
363
358
|
};
|
|
364
359
|
}
|
|
365
360
|
|
|
366
|
-
function _arrayWithHoles(
|
|
367
|
-
if (Array.isArray(
|
|
361
|
+
function _arrayWithHoles(r) {
|
|
362
|
+
if (Array.isArray(r)) return r;
|
|
368
363
|
}
|
|
369
364
|
|
|
370
365
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -395,30 +390,29 @@ function _iterableToArrayLimit(r, l) {
|
|
|
395
390
|
}
|
|
396
391
|
}
|
|
397
392
|
|
|
398
|
-
function _arrayLikeToArray(
|
|
399
|
-
|
|
400
|
-
for (var
|
|
401
|
-
return
|
|
393
|
+
function _arrayLikeToArray(r, a) {
|
|
394
|
+
(null == a || a > r.length) && (a = r.length);
|
|
395
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
396
|
+
return n;
|
|
402
397
|
}
|
|
403
398
|
|
|
404
|
-
function _unsupportedIterableToArray(
|
|
405
|
-
if (
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
399
|
+
function _unsupportedIterableToArray(r, a) {
|
|
400
|
+
if (r) {
|
|
401
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
402
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
403
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
404
|
+
}
|
|
411
405
|
}
|
|
412
406
|
|
|
413
407
|
function _nonIterableRest() {
|
|
414
408
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
415
409
|
}
|
|
416
410
|
|
|
417
|
-
function _slicedToArray(
|
|
418
|
-
return _arrayWithHoles(
|
|
411
|
+
function _slicedToArray(r, e) {
|
|
412
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
419
413
|
}
|
|
420
414
|
|
|
421
|
-
function
|
|
415
|
+
function _toPrimitive(t, r) {
|
|
422
416
|
if ("object" != typeof t || !t) return t;
|
|
423
417
|
var e = t[Symbol.toPrimitive];
|
|
424
418
|
if (void 0 !== e) {
|
|
@@ -429,24 +423,18 @@ function toPrimitive(t, r) {
|
|
|
429
423
|
return ("string" === r ? String : Number)(t);
|
|
430
424
|
}
|
|
431
425
|
|
|
432
|
-
function
|
|
433
|
-
var i =
|
|
434
|
-
return "symbol" == typeof i ? i :
|
|
426
|
+
function _toPropertyKey(t) {
|
|
427
|
+
var i = _toPrimitive(t, "string");
|
|
428
|
+
return "symbol" == typeof i ? i : i + "";
|
|
435
429
|
}
|
|
436
430
|
|
|
437
|
-
function _defineProperty(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
writable: true
|
|
445
|
-
});
|
|
446
|
-
} else {
|
|
447
|
-
obj[key] = value;
|
|
448
|
-
}
|
|
449
|
-
return obj;
|
|
431
|
+
function _defineProperty(e, r, t) {
|
|
432
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
433
|
+
value: t,
|
|
434
|
+
enumerable: !0,
|
|
435
|
+
configurable: !0,
|
|
436
|
+
writable: !0
|
|
437
|
+
}) : e[r] = t, e;
|
|
450
438
|
}
|
|
451
439
|
|
|
452
440
|
function ownKeys(e, r) {
|
|
@@ -516,7 +504,7 @@ function transformNextAppRouterValProvider(fileInfo, api, options) {
|
|
|
516
504
|
|
|
517
505
|
var packageJson = {
|
|
518
506
|
name: "@valbuild/init",
|
|
519
|
-
version: "0.
|
|
507
|
+
version: "0.65.2",
|
|
520
508
|
description: "Initialize a new val.build project",
|
|
521
509
|
exports: {
|
|
522
510
|
"./main": {
|
|
@@ -620,7 +608,7 @@ function init() {
|
|
|
620
608
|
return _init.apply(this, arguments);
|
|
621
609
|
}
|
|
622
610
|
function _init() {
|
|
623
|
-
_init = _asyncToGenerator(
|
|
611
|
+
_init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
624
612
|
var root,
|
|
625
613
|
_ref,
|
|
626
614
|
defaultAnswers,
|
|
@@ -678,7 +666,7 @@ function walk(dir) {
|
|
|
678
666
|
}, []);
|
|
679
667
|
}
|
|
680
668
|
var analyze = /*#__PURE__*/function () {
|
|
681
|
-
var _ref2 = _asyncToGenerator(
|
|
669
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(root, files) {
|
|
682
670
|
var analysis, packageJsonPath, packageJsonText, _packageJson, _semver$minVersion, minNextVersion, _semver$minVersion2, minValVersion, _semver$minVersion3, _minValVersion, pagesRouterAppPath, appRouterLayoutPath, git, gitStatus, gitRemoteOrigin, parts, owner, repo, gitIgnorePath;
|
|
683
671
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
684
672
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -834,7 +822,7 @@ function plan(_x3) {
|
|
|
834
822
|
return _plan.apply(this, arguments);
|
|
835
823
|
}
|
|
836
824
|
function _plan() {
|
|
837
|
-
_plan = _asyncToGenerator(
|
|
825
|
+
_plan = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(analysis) {
|
|
838
826
|
var defaultAnswers,
|
|
839
827
|
plan,
|
|
840
828
|
answer,
|
|
@@ -1621,7 +1609,7 @@ function execute(_x4) {
|
|
|
1621
1609
|
return _execute.apply(this, arguments);
|
|
1622
1610
|
}
|
|
1623
1611
|
function _execute() {
|
|
1624
|
-
_execute = _asyncToGenerator(
|
|
1612
|
+
_execute = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(plan) {
|
|
1625
1613
|
var _i, _Object$entries, _Object$entries$_i, key, maybeFileOp;
|
|
1626
1614
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1627
1615
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -1693,7 +1681,7 @@ function main() {
|
|
|
1693
1681
|
return _main.apply(this, arguments);
|
|
1694
1682
|
}
|
|
1695
1683
|
function _main() {
|
|
1696
|
-
_main = _asyncToGenerator(
|
|
1684
|
+
_main = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1697
1685
|
var _meow, flags;
|
|
1698
1686
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1699
1687
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -128,7 +128,7 @@ function _regeneratorRuntime() {
|
|
|
128
128
|
function makeInvokeMethod(e, r, n) {
|
|
129
129
|
var o = h;
|
|
130
130
|
return function (i, a) {
|
|
131
|
-
if (o === f) throw
|
|
131
|
+
if (o === f) throw Error("Generator is already running");
|
|
132
132
|
if (o === s) {
|
|
133
133
|
if ("throw" === i) throw a;
|
|
134
134
|
return {
|
|
@@ -270,7 +270,7 @@ function _regeneratorRuntime() {
|
|
|
270
270
|
} else if (c) {
|
|
271
271
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
272
272
|
} else {
|
|
273
|
-
if (!u) throw
|
|
273
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
274
274
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -310,7 +310,7 @@ function _regeneratorRuntime() {
|
|
|
310
310
|
return o;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
throw
|
|
313
|
+
throw Error("illegal catch attempt");
|
|
314
314
|
},
|
|
315
315
|
delegateYield: function (e, r, n) {
|
|
316
316
|
return this.delegate = {
|
|
@@ -332,39 +332,34 @@ function _typeof(o) {
|
|
|
332
332
|
}, _typeof(o);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
function asyncGeneratorStep(
|
|
335
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
336
336
|
try {
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
} catch (
|
|
340
|
-
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
if (info.done) {
|
|
344
|
-
resolve(value);
|
|
345
|
-
} else {
|
|
346
|
-
Promise.resolve(value).then(_next, _throw);
|
|
337
|
+
var i = n[a](c),
|
|
338
|
+
u = i.value;
|
|
339
|
+
} catch (n) {
|
|
340
|
+
return void e(n);
|
|
347
341
|
}
|
|
342
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
348
343
|
}
|
|
349
|
-
function _asyncToGenerator(
|
|
344
|
+
function _asyncToGenerator(n) {
|
|
350
345
|
return function () {
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
return new Promise(function (
|
|
354
|
-
var
|
|
355
|
-
function _next(
|
|
356
|
-
asyncGeneratorStep(
|
|
346
|
+
var t = this,
|
|
347
|
+
e = arguments;
|
|
348
|
+
return new Promise(function (r, o) {
|
|
349
|
+
var a = n.apply(t, e);
|
|
350
|
+
function _next(n) {
|
|
351
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
357
352
|
}
|
|
358
|
-
function _throw(
|
|
359
|
-
asyncGeneratorStep(
|
|
353
|
+
function _throw(n) {
|
|
354
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
360
355
|
}
|
|
361
|
-
_next(
|
|
356
|
+
_next(void 0);
|
|
362
357
|
});
|
|
363
358
|
};
|
|
364
359
|
}
|
|
365
360
|
|
|
366
|
-
function _arrayWithHoles(
|
|
367
|
-
if (Array.isArray(
|
|
361
|
+
function _arrayWithHoles(r) {
|
|
362
|
+
if (Array.isArray(r)) return r;
|
|
368
363
|
}
|
|
369
364
|
|
|
370
365
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -395,30 +390,29 @@ function _iterableToArrayLimit(r, l) {
|
|
|
395
390
|
}
|
|
396
391
|
}
|
|
397
392
|
|
|
398
|
-
function _arrayLikeToArray(
|
|
399
|
-
|
|
400
|
-
for (var
|
|
401
|
-
return
|
|
393
|
+
function _arrayLikeToArray(r, a) {
|
|
394
|
+
(null == a || a > r.length) && (a = r.length);
|
|
395
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
396
|
+
return n;
|
|
402
397
|
}
|
|
403
398
|
|
|
404
|
-
function _unsupportedIterableToArray(
|
|
405
|
-
if (
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
399
|
+
function _unsupportedIterableToArray(r, a) {
|
|
400
|
+
if (r) {
|
|
401
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
402
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
403
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
404
|
+
}
|
|
411
405
|
}
|
|
412
406
|
|
|
413
407
|
function _nonIterableRest() {
|
|
414
408
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
415
409
|
}
|
|
416
410
|
|
|
417
|
-
function _slicedToArray(
|
|
418
|
-
return _arrayWithHoles(
|
|
411
|
+
function _slicedToArray(r, e) {
|
|
412
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
419
413
|
}
|
|
420
414
|
|
|
421
|
-
function
|
|
415
|
+
function _toPrimitive(t, r) {
|
|
422
416
|
if ("object" != typeof t || !t) return t;
|
|
423
417
|
var e = t[Symbol.toPrimitive];
|
|
424
418
|
if (void 0 !== e) {
|
|
@@ -429,24 +423,18 @@ function toPrimitive(t, r) {
|
|
|
429
423
|
return ("string" === r ? String : Number)(t);
|
|
430
424
|
}
|
|
431
425
|
|
|
432
|
-
function
|
|
433
|
-
var i =
|
|
434
|
-
return "symbol" == typeof i ? i :
|
|
426
|
+
function _toPropertyKey(t) {
|
|
427
|
+
var i = _toPrimitive(t, "string");
|
|
428
|
+
return "symbol" == typeof i ? i : i + "";
|
|
435
429
|
}
|
|
436
430
|
|
|
437
|
-
function _defineProperty(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
writable: true
|
|
445
|
-
});
|
|
446
|
-
} else {
|
|
447
|
-
obj[key] = value;
|
|
448
|
-
}
|
|
449
|
-
return obj;
|
|
431
|
+
function _defineProperty(e, r, t) {
|
|
432
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
433
|
+
value: t,
|
|
434
|
+
enumerable: !0,
|
|
435
|
+
configurable: !0,
|
|
436
|
+
writable: !0
|
|
437
|
+
}) : e[r] = t, e;
|
|
450
438
|
}
|
|
451
439
|
|
|
452
440
|
function ownKeys(e, r) {
|
|
@@ -516,7 +504,7 @@ function transformNextAppRouterValProvider(fileInfo, api, options) {
|
|
|
516
504
|
|
|
517
505
|
var packageJson = {
|
|
518
506
|
name: "@valbuild/init",
|
|
519
|
-
version: "0.
|
|
507
|
+
version: "0.65.2",
|
|
520
508
|
description: "Initialize a new val.build project",
|
|
521
509
|
exports: {
|
|
522
510
|
"./main": {
|
|
@@ -620,7 +608,7 @@ function init() {
|
|
|
620
608
|
return _init.apply(this, arguments);
|
|
621
609
|
}
|
|
622
610
|
function _init() {
|
|
623
|
-
_init = _asyncToGenerator(
|
|
611
|
+
_init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
624
612
|
var root,
|
|
625
613
|
_ref,
|
|
626
614
|
defaultAnswers,
|
|
@@ -678,7 +666,7 @@ function walk(dir) {
|
|
|
678
666
|
}, []);
|
|
679
667
|
}
|
|
680
668
|
var analyze = /*#__PURE__*/function () {
|
|
681
|
-
var _ref2 = _asyncToGenerator(
|
|
669
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(root, files) {
|
|
682
670
|
var analysis, packageJsonPath, packageJsonText, _packageJson, _semver$minVersion, minNextVersion, _semver$minVersion2, minValVersion, _semver$minVersion3, _minValVersion, pagesRouterAppPath, appRouterLayoutPath, git, gitStatus, gitRemoteOrigin, parts, owner, repo, gitIgnorePath;
|
|
683
671
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
684
672
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -834,7 +822,7 @@ function plan(_x3) {
|
|
|
834
822
|
return _plan.apply(this, arguments);
|
|
835
823
|
}
|
|
836
824
|
function _plan() {
|
|
837
|
-
_plan = _asyncToGenerator(
|
|
825
|
+
_plan = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(analysis) {
|
|
838
826
|
var defaultAnswers,
|
|
839
827
|
plan,
|
|
840
828
|
answer,
|
|
@@ -1621,7 +1609,7 @@ function execute(_x4) {
|
|
|
1621
1609
|
return _execute.apply(this, arguments);
|
|
1622
1610
|
}
|
|
1623
1611
|
function _execute() {
|
|
1624
|
-
_execute = _asyncToGenerator(
|
|
1612
|
+
_execute = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(plan) {
|
|
1625
1613
|
var _i, _Object$entries, _Object$entries$_i, key, maybeFileOp;
|
|
1626
1614
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1627
1615
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -1693,7 +1681,7 @@ function main() {
|
|
|
1693
1681
|
return _main.apply(this, arguments);
|
|
1694
1682
|
}
|
|
1695
1683
|
function _main() {
|
|
1696
|
-
_main = _asyncToGenerator(
|
|
1684
|
+
_main = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1697
1685
|
var _meow, flags;
|
|
1698
1686
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1699
1687
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -116,7 +116,7 @@ function _regeneratorRuntime() {
|
|
|
116
116
|
function makeInvokeMethod(e, r, n) {
|
|
117
117
|
var o = h;
|
|
118
118
|
return function (i, a) {
|
|
119
|
-
if (o === f) throw
|
|
119
|
+
if (o === f) throw Error("Generator is already running");
|
|
120
120
|
if (o === s) {
|
|
121
121
|
if ("throw" === i) throw a;
|
|
122
122
|
return {
|
|
@@ -258,7 +258,7 @@ function _regeneratorRuntime() {
|
|
|
258
258
|
} else if (c) {
|
|
259
259
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
260
260
|
} else {
|
|
261
|
-
if (!u) throw
|
|
261
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
262
262
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -298,7 +298,7 @@ function _regeneratorRuntime() {
|
|
|
298
298
|
return o;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
throw
|
|
301
|
+
throw Error("illegal catch attempt");
|
|
302
302
|
},
|
|
303
303
|
delegateYield: function (e, r, n) {
|
|
304
304
|
return this.delegate = {
|
|
@@ -320,39 +320,34 @@ function _typeof(o) {
|
|
|
320
320
|
}, _typeof(o);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
function asyncGeneratorStep(
|
|
323
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
324
324
|
try {
|
|
325
|
-
var
|
|
326
|
-
|
|
327
|
-
} catch (
|
|
328
|
-
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
if (info.done) {
|
|
332
|
-
resolve(value);
|
|
333
|
-
} else {
|
|
334
|
-
Promise.resolve(value).then(_next, _throw);
|
|
325
|
+
var i = n[a](c),
|
|
326
|
+
u = i.value;
|
|
327
|
+
} catch (n) {
|
|
328
|
+
return void e(n);
|
|
335
329
|
}
|
|
330
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
336
331
|
}
|
|
337
|
-
function _asyncToGenerator(
|
|
332
|
+
function _asyncToGenerator(n) {
|
|
338
333
|
return function () {
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
return new Promise(function (
|
|
342
|
-
var
|
|
343
|
-
function _next(
|
|
344
|
-
asyncGeneratorStep(
|
|
334
|
+
var t = this,
|
|
335
|
+
e = arguments;
|
|
336
|
+
return new Promise(function (r, o) {
|
|
337
|
+
var a = n.apply(t, e);
|
|
338
|
+
function _next(n) {
|
|
339
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
345
340
|
}
|
|
346
|
-
function _throw(
|
|
347
|
-
asyncGeneratorStep(
|
|
341
|
+
function _throw(n) {
|
|
342
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
348
343
|
}
|
|
349
|
-
_next(
|
|
344
|
+
_next(void 0);
|
|
350
345
|
});
|
|
351
346
|
};
|
|
352
347
|
}
|
|
353
348
|
|
|
354
|
-
function _arrayWithHoles(
|
|
355
|
-
if (Array.isArray(
|
|
349
|
+
function _arrayWithHoles(r) {
|
|
350
|
+
if (Array.isArray(r)) return r;
|
|
356
351
|
}
|
|
357
352
|
|
|
358
353
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -383,30 +378,29 @@ function _iterableToArrayLimit(r, l) {
|
|
|
383
378
|
}
|
|
384
379
|
}
|
|
385
380
|
|
|
386
|
-
function _arrayLikeToArray(
|
|
387
|
-
|
|
388
|
-
for (var
|
|
389
|
-
return
|
|
381
|
+
function _arrayLikeToArray(r, a) {
|
|
382
|
+
(null == a || a > r.length) && (a = r.length);
|
|
383
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
384
|
+
return n;
|
|
390
385
|
}
|
|
391
386
|
|
|
392
|
-
function _unsupportedIterableToArray(
|
|
393
|
-
if (
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
387
|
+
function _unsupportedIterableToArray(r, a) {
|
|
388
|
+
if (r) {
|
|
389
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
390
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
391
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
392
|
+
}
|
|
399
393
|
}
|
|
400
394
|
|
|
401
395
|
function _nonIterableRest() {
|
|
402
396
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
403
397
|
}
|
|
404
398
|
|
|
405
|
-
function _slicedToArray(
|
|
406
|
-
return _arrayWithHoles(
|
|
399
|
+
function _slicedToArray(r, e) {
|
|
400
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
407
401
|
}
|
|
408
402
|
|
|
409
|
-
function
|
|
403
|
+
function _toPrimitive(t, r) {
|
|
410
404
|
if ("object" != typeof t || !t) return t;
|
|
411
405
|
var e = t[Symbol.toPrimitive];
|
|
412
406
|
if (void 0 !== e) {
|
|
@@ -417,24 +411,18 @@ function toPrimitive(t, r) {
|
|
|
417
411
|
return ("string" === r ? String : Number)(t);
|
|
418
412
|
}
|
|
419
413
|
|
|
420
|
-
function
|
|
421
|
-
var i =
|
|
422
|
-
return "symbol" == typeof i ? i :
|
|
414
|
+
function _toPropertyKey(t) {
|
|
415
|
+
var i = _toPrimitive(t, "string");
|
|
416
|
+
return "symbol" == typeof i ? i : i + "";
|
|
423
417
|
}
|
|
424
418
|
|
|
425
|
-
function _defineProperty(
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
writable: true
|
|
433
|
-
});
|
|
434
|
-
} else {
|
|
435
|
-
obj[key] = value;
|
|
436
|
-
}
|
|
437
|
-
return obj;
|
|
419
|
+
function _defineProperty(e, r, t) {
|
|
420
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
421
|
+
value: t,
|
|
422
|
+
enumerable: !0,
|
|
423
|
+
configurable: !0,
|
|
424
|
+
writable: !0
|
|
425
|
+
}) : e[r] = t, e;
|
|
438
426
|
}
|
|
439
427
|
|
|
440
428
|
function ownKeys(e, r) {
|
|
@@ -504,7 +492,7 @@ function transformNextAppRouterValProvider(fileInfo, api, options) {
|
|
|
504
492
|
|
|
505
493
|
var packageJson = {
|
|
506
494
|
name: "@valbuild/init",
|
|
507
|
-
version: "0.
|
|
495
|
+
version: "0.65.2",
|
|
508
496
|
description: "Initialize a new val.build project",
|
|
509
497
|
exports: {
|
|
510
498
|
"./main": {
|
|
@@ -608,7 +596,7 @@ function init() {
|
|
|
608
596
|
return _init.apply(this, arguments);
|
|
609
597
|
}
|
|
610
598
|
function _init() {
|
|
611
|
-
_init = _asyncToGenerator(
|
|
599
|
+
_init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
612
600
|
var root,
|
|
613
601
|
_ref,
|
|
614
602
|
defaultAnswers,
|
|
@@ -666,7 +654,7 @@ function walk(dir) {
|
|
|
666
654
|
}, []);
|
|
667
655
|
}
|
|
668
656
|
var analyze = /*#__PURE__*/function () {
|
|
669
|
-
var _ref2 = _asyncToGenerator(
|
|
657
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(root, files) {
|
|
670
658
|
var analysis, packageJsonPath, packageJsonText, _packageJson, _semver$minVersion, minNextVersion, _semver$minVersion2, minValVersion, _semver$minVersion3, _minValVersion, pagesRouterAppPath, appRouterLayoutPath, git, gitStatus, gitRemoteOrigin, parts, owner, repo, gitIgnorePath;
|
|
671
659
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
672
660
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -822,7 +810,7 @@ function plan(_x3) {
|
|
|
822
810
|
return _plan.apply(this, arguments);
|
|
823
811
|
}
|
|
824
812
|
function _plan() {
|
|
825
|
-
_plan = _asyncToGenerator(
|
|
813
|
+
_plan = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(analysis) {
|
|
826
814
|
var defaultAnswers,
|
|
827
815
|
plan,
|
|
828
816
|
answer,
|
|
@@ -1609,7 +1597,7 @@ function execute(_x4) {
|
|
|
1609
1597
|
return _execute.apply(this, arguments);
|
|
1610
1598
|
}
|
|
1611
1599
|
function _execute() {
|
|
1612
|
-
_execute = _asyncToGenerator(
|
|
1600
|
+
_execute = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(plan) {
|
|
1613
1601
|
var _i, _Object$entries, _Object$entries$_i, key, maybeFileOp;
|
|
1614
1602
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1615
1603
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -1681,7 +1669,7 @@ function main() {
|
|
|
1681
1669
|
return _main.apply(this, arguments);
|
|
1682
1670
|
}
|
|
1683
1671
|
function _main() {
|
|
1684
|
-
_main = _asyncToGenerator(
|
|
1672
|
+
_main = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1685
1673
|
var _meow, flags;
|
|
1686
1674
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1687
1675
|
while (1) switch (_context.prev = _context.next) {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valbuild-init-main.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/main.d.ts"],"names":[],"mappings":"AAAA"}
|