create-cloudflare 2.13.0 → 2.13.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.
- package/dist/cli.js +350 -235
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/templates/nuxt/c3.ts +36 -4
- package/templates/nuxt/templates/env.d.ts +14 -0
- package/templates/nuxt/templates/worker-configuration.d.ts +3 -0
- package/templates/solid/c3.ts +54 -12
- package/templates/solid/js/vite.config.js +0 -12
- package/templates/solid/ts/vite.config.ts +0 -12
package/dist/cli.js
CHANGED
|
@@ -3814,7 +3814,7 @@ var init_args = __esm({
|
|
|
3814
3814
|
var version, devDependencies;
|
|
3815
3815
|
var init_package = __esm({
|
|
3816
3816
|
"package.json"() {
|
|
3817
|
-
version = "2.13.
|
|
3817
|
+
version = "2.13.2";
|
|
3818
3818
|
devDependencies = {
|
|
3819
3819
|
"@babel/parser": "^7.21.3",
|
|
3820
3820
|
"@babel/types": "^7.21.4",
|
|
@@ -10597,7 +10597,7 @@ var require_symbols2 = __commonJS({
|
|
|
10597
10597
|
var require_webidl = __commonJS({
|
|
10598
10598
|
"../../node_modules/.pnpm/undici@5.28.3/node_modules/undici/lib/fetch/webidl.js"(exports2, module2) {
|
|
10599
10599
|
"use strict";
|
|
10600
|
-
var { types:
|
|
10600
|
+
var { types: types6 } = require("util");
|
|
10601
10601
|
var { hasOwn, toUSVString } = require_util2();
|
|
10602
10602
|
var webidl = {};
|
|
10603
10603
|
webidl.converters = {};
|
|
@@ -10762,7 +10762,7 @@ var require_webidl = __commonJS({
|
|
|
10762
10762
|
});
|
|
10763
10763
|
}
|
|
10764
10764
|
const result = {};
|
|
10765
|
-
if (!
|
|
10765
|
+
if (!types6.isProxy(O2)) {
|
|
10766
10766
|
const keys2 = Object.keys(O2);
|
|
10767
10767
|
for (const key of keys2) {
|
|
10768
10768
|
const typedKey = keyConverter(key);
|
|
@@ -10888,14 +10888,14 @@ var require_webidl = __commonJS({
|
|
|
10888
10888
|
return x2;
|
|
10889
10889
|
};
|
|
10890
10890
|
webidl.converters.ArrayBuffer = function(V2, opts = {}) {
|
|
10891
|
-
if (webidl.util.Type(V2) !== "Object" || !
|
|
10891
|
+
if (webidl.util.Type(V2) !== "Object" || !types6.isAnyArrayBuffer(V2)) {
|
|
10892
10892
|
throw webidl.errors.conversionFailed({
|
|
10893
10893
|
prefix: `${V2}`,
|
|
10894
10894
|
argument: `${V2}`,
|
|
10895
10895
|
types: ["ArrayBuffer"]
|
|
10896
10896
|
});
|
|
10897
10897
|
}
|
|
10898
|
-
if (opts.allowShared === false &&
|
|
10898
|
+
if (opts.allowShared === false && types6.isSharedArrayBuffer(V2)) {
|
|
10899
10899
|
throw webidl.errors.exception({
|
|
10900
10900
|
header: "ArrayBuffer",
|
|
10901
10901
|
message: "SharedArrayBuffer is not allowed."
|
|
@@ -10904,14 +10904,14 @@ var require_webidl = __commonJS({
|
|
|
10904
10904
|
return V2;
|
|
10905
10905
|
};
|
|
10906
10906
|
webidl.converters.TypedArray = function(V2, T2, opts = {}) {
|
|
10907
|
-
if (webidl.util.Type(V2) !== "Object" || !
|
|
10907
|
+
if (webidl.util.Type(V2) !== "Object" || !types6.isTypedArray(V2) || V2.constructor.name !== T2.name) {
|
|
10908
10908
|
throw webidl.errors.conversionFailed({
|
|
10909
10909
|
prefix: `${T2.name}`,
|
|
10910
10910
|
argument: `${V2}`,
|
|
10911
10911
|
types: [T2.name]
|
|
10912
10912
|
});
|
|
10913
10913
|
}
|
|
10914
|
-
if (opts.allowShared === false &&
|
|
10914
|
+
if (opts.allowShared === false && types6.isSharedArrayBuffer(V2.buffer)) {
|
|
10915
10915
|
throw webidl.errors.exception({
|
|
10916
10916
|
header: "ArrayBuffer",
|
|
10917
10917
|
message: "SharedArrayBuffer is not allowed."
|
|
@@ -10920,13 +10920,13 @@ var require_webidl = __commonJS({
|
|
|
10920
10920
|
return V2;
|
|
10921
10921
|
};
|
|
10922
10922
|
webidl.converters.DataView = function(V2, opts = {}) {
|
|
10923
|
-
if (webidl.util.Type(V2) !== "Object" || !
|
|
10923
|
+
if (webidl.util.Type(V2) !== "Object" || !types6.isDataView(V2)) {
|
|
10924
10924
|
throw webidl.errors.exception({
|
|
10925
10925
|
header: "DataView",
|
|
10926
10926
|
message: "Object is not a DataView."
|
|
10927
10927
|
});
|
|
10928
10928
|
}
|
|
10929
|
-
if (opts.allowShared === false &&
|
|
10929
|
+
if (opts.allowShared === false && types6.isSharedArrayBuffer(V2.buffer)) {
|
|
10930
10930
|
throw webidl.errors.exception({
|
|
10931
10931
|
header: "ArrayBuffer",
|
|
10932
10932
|
message: "SharedArrayBuffer is not allowed."
|
|
@@ -10935,13 +10935,13 @@ var require_webidl = __commonJS({
|
|
|
10935
10935
|
return V2;
|
|
10936
10936
|
};
|
|
10937
10937
|
webidl.converters.BufferSource = function(V2, opts = {}) {
|
|
10938
|
-
if (
|
|
10938
|
+
if (types6.isAnyArrayBuffer(V2)) {
|
|
10939
10939
|
return webidl.converters.ArrayBuffer(V2, opts);
|
|
10940
10940
|
}
|
|
10941
|
-
if (
|
|
10941
|
+
if (types6.isTypedArray(V2)) {
|
|
10942
10942
|
return webidl.converters.TypedArray(V2, V2.constructor);
|
|
10943
10943
|
}
|
|
10944
|
-
if (
|
|
10944
|
+
if (types6.isDataView(V2)) {
|
|
10945
10945
|
return webidl.converters.DataView(V2, opts);
|
|
10946
10946
|
}
|
|
10947
10947
|
throw new TypeError(`Could not convert ${V2} to a BufferSource.`);
|
|
@@ -11256,7 +11256,7 @@ var require_file = __commonJS({
|
|
|
11256
11256
|
"../../node_modules/.pnpm/undici@5.28.3/node_modules/undici/lib/fetch/file.js"(exports2, module2) {
|
|
11257
11257
|
"use strict";
|
|
11258
11258
|
var { Blob: Blob2, File: NativeFile } = require("buffer");
|
|
11259
|
-
var { types:
|
|
11259
|
+
var { types: types6 } = require("util");
|
|
11260
11260
|
var { kState } = require_symbols2();
|
|
11261
11261
|
var { isBlobLike } = require_util2();
|
|
11262
11262
|
var { webidl } = require_webidl();
|
|
@@ -11365,7 +11365,7 @@ var require_file = __commonJS({
|
|
|
11365
11365
|
if (isBlobLike(V2)) {
|
|
11366
11366
|
return webidl.converters.Blob(V2, { strict: false });
|
|
11367
11367
|
}
|
|
11368
|
-
if (ArrayBuffer.isView(V2) ||
|
|
11368
|
+
if (ArrayBuffer.isView(V2) || types6.isAnyArrayBuffer(V2)) {
|
|
11369
11369
|
return webidl.converters.BufferSource(V2, opts);
|
|
11370
11370
|
}
|
|
11371
11371
|
}
|
|
@@ -11409,7 +11409,7 @@ var require_file = __commonJS({
|
|
|
11409
11409
|
s = convertLineEndingsNative(s);
|
|
11410
11410
|
}
|
|
11411
11411
|
bytes.push(encoder.encode(s));
|
|
11412
|
-
} else if (
|
|
11412
|
+
} else if (types6.isAnyArrayBuffer(element) || types6.isTypedArray(element)) {
|
|
11413
11413
|
if (!element.buffer) {
|
|
11414
11414
|
bytes.push(new Uint8Array(element));
|
|
11415
11415
|
} else {
|
|
@@ -18298,7 +18298,7 @@ var require_response = __commonJS({
|
|
|
18298
18298
|
var { URLSerializer } = require_dataURL();
|
|
18299
18299
|
var { kHeadersList, kConstruct } = require_symbols();
|
|
18300
18300
|
var assert = require("assert");
|
|
18301
|
-
var { types:
|
|
18301
|
+
var { types: types6 } = require("util");
|
|
18302
18302
|
var ReadableStream = globalThis.ReadableStream || require("stream/web").ReadableStream;
|
|
18303
18303
|
var textEncoder = new TextEncoder("utf-8");
|
|
18304
18304
|
var Response = class {
|
|
@@ -18601,7 +18601,7 @@ var require_response = __commonJS({
|
|
|
18601
18601
|
if (isBlobLike(V2)) {
|
|
18602
18602
|
return webidl.converters.Blob(V2, { strict: false });
|
|
18603
18603
|
}
|
|
18604
|
-
if (
|
|
18604
|
+
if (types6.isArrayBuffer(V2) || types6.isTypedArray(V2) || types6.isDataView(V2)) {
|
|
18605
18605
|
return webidl.converters.BufferSource(V2);
|
|
18606
18606
|
}
|
|
18607
18607
|
if (util.isFormDataLike(V2)) {
|
|
@@ -20707,7 +20707,7 @@ var require_util4 = __commonJS({
|
|
|
20707
20707
|
var { getEncoding } = require_encoding();
|
|
20708
20708
|
var { DOMException: DOMException2 } = require_constants2();
|
|
20709
20709
|
var { serializeAMimeType, parseMIMEType } = require_dataURL();
|
|
20710
|
-
var { types:
|
|
20710
|
+
var { types: types6 } = require("util");
|
|
20711
20711
|
var { StringDecoder } = require("string_decoder");
|
|
20712
20712
|
var { btoa: btoa2 } = require("buffer");
|
|
20713
20713
|
var staticPropertyDescriptors = {
|
|
@@ -20737,7 +20737,7 @@ var require_util4 = __commonJS({
|
|
|
20737
20737
|
});
|
|
20738
20738
|
}
|
|
20739
20739
|
isFirstChunk = false;
|
|
20740
|
-
if (!done &&
|
|
20740
|
+
if (!done && types6.isUint8Array(value)) {
|
|
20741
20741
|
bytes.push(value);
|
|
20742
20742
|
if ((fr[kLastProgressEventFired] === void 0 || Date.now() - fr[kLastProgressEventFired] >= 50) && !fr[kAborted]) {
|
|
20743
20743
|
fr[kLastProgressEventFired] = Date.now();
|
|
@@ -23119,7 +23119,7 @@ var require_websocket = __commonJS({
|
|
|
23119
23119
|
var { ByteParser } = require_receiver();
|
|
23120
23120
|
var { kEnumerableProperty, isBlobLike } = require_util();
|
|
23121
23121
|
var { getGlobalDispatcher } = require_global2();
|
|
23122
|
-
var { types:
|
|
23122
|
+
var { types: types6 } = require("util");
|
|
23123
23123
|
var experimentalWarned = false;
|
|
23124
23124
|
var WebSocket = class extends EventTarget {
|
|
23125
23125
|
#events = {
|
|
@@ -23266,7 +23266,7 @@ var require_websocket = __commonJS({
|
|
|
23266
23266
|
socket.write(buffer, () => {
|
|
23267
23267
|
this.#bufferedAmount -= value.byteLength;
|
|
23268
23268
|
});
|
|
23269
|
-
} else if (
|
|
23269
|
+
} else if (types6.isArrayBuffer(data)) {
|
|
23270
23270
|
const value = Buffer.from(data);
|
|
23271
23271
|
const frame = new WebsocketFrameSend(value);
|
|
23272
23272
|
const buffer = frame.createFrame(opcodes.BINARY);
|
|
@@ -23488,7 +23488,7 @@ var require_websocket = __commonJS({
|
|
|
23488
23488
|
if (isBlobLike(V2)) {
|
|
23489
23489
|
return webidl.converters.Blob(V2, { strict: false });
|
|
23490
23490
|
}
|
|
23491
|
-
if (ArrayBuffer.isView(V2) ||
|
|
23491
|
+
if (ArrayBuffer.isView(V2) || types6.isAnyArrayBuffer(V2)) {
|
|
23492
23492
|
return webidl.converters.BufferSource(V2);
|
|
23493
23493
|
}
|
|
23494
23494
|
}
|
|
@@ -24217,14 +24217,14 @@ var init_package2 = __esm({
|
|
|
24217
24217
|
],
|
|
24218
24218
|
dependencies: {
|
|
24219
24219
|
"create-astro": "4.7.3",
|
|
24220
|
-
"@angular/create": "17.2.
|
|
24220
|
+
"@angular/create": "17.2.3",
|
|
24221
24221
|
"create-docusaurus": "3.1.1",
|
|
24222
|
-
"create-hono": "0.
|
|
24222
|
+
"create-hono": "0.5.0",
|
|
24223
24223
|
"create-next-app": "14.1.0",
|
|
24224
24224
|
"create-qwik": "1.4.5",
|
|
24225
24225
|
"create-react-app": "5.0.1",
|
|
24226
|
-
"create-remix": "2.
|
|
24227
|
-
"create-solid": "0.
|
|
24226
|
+
"create-remix": "2.8.0",
|
|
24227
|
+
"create-solid": "0.5.3",
|
|
24228
24228
|
"create-svelte": "6.0.9",
|
|
24229
24229
|
"create-vue": "3.9.2",
|
|
24230
24230
|
gatsby: "5.13.3",
|
|
@@ -24297,7 +24297,8 @@ var init_packages = __esm({
|
|
|
24297
24297
|
import_which_pm_runs = __toESM(require_which_pm_runs());
|
|
24298
24298
|
init_package();
|
|
24299
24299
|
detectPackageManager = () => {
|
|
24300
|
-
|
|
24300
|
+
const pmInfo = (0, import_which_pm_runs.default)();
|
|
24301
|
+
let { name: name2, version: version3 } = pmInfo ?? { name: "npm", version: "0.0.0" };
|
|
24301
24302
|
if (process.env.TEST_PM) {
|
|
24302
24303
|
switch (process.env.TEST_PM) {
|
|
24303
24304
|
case "pnpm":
|
|
@@ -25811,7 +25812,7 @@ var init_poll = __esm({
|
|
|
25811
25812
|
var version2;
|
|
25812
25813
|
var init_package3 = __esm({
|
|
25813
25814
|
"../wrangler/package.json"() {
|
|
25814
|
-
version2 = "3.
|
|
25815
|
+
version2 = "3.32.0";
|
|
25815
25816
|
}
|
|
25816
25817
|
});
|
|
25817
25818
|
|
|
@@ -27872,7 +27873,7 @@ var require_toml = __commonJS({
|
|
|
27872
27873
|
});
|
|
27873
27874
|
|
|
27874
27875
|
// src/helpers/files.ts
|
|
27875
|
-
var import_fs5, import_path5, import_toml, copyFile, writeFile2, readFile, readJSON, writeJSON, probePaths, usesTypescript, eslintRcExts, usesEslint, compatDateFlag;
|
|
27876
|
+
var import_fs5, import_path5, import_toml, copyFile, writeFile2, appendFile, readFile, directoryExists, readJSON, writeJSON, probePaths, usesTypescript, eslintRcExts, usesEslint, compatDateFlag;
|
|
27876
27877
|
var init_files = __esm({
|
|
27877
27878
|
"src/helpers/files.ts"() {
|
|
27878
27879
|
import_fs5 = __toESM(require("fs"));
|
|
@@ -27894,6 +27895,13 @@ var init_files = __esm({
|
|
|
27894
27895
|
crash(error2);
|
|
27895
27896
|
}
|
|
27896
27897
|
};
|
|
27898
|
+
appendFile = (path3, content) => {
|
|
27899
|
+
try {
|
|
27900
|
+
import_fs5.default.appendFileSync(path3, content);
|
|
27901
|
+
} catch (error2) {
|
|
27902
|
+
crash(error2);
|
|
27903
|
+
}
|
|
27904
|
+
};
|
|
27897
27905
|
readFile = (path3) => {
|
|
27898
27906
|
try {
|
|
27899
27907
|
return import_fs5.default.readFileSync(path3, "utf-8");
|
|
@@ -27901,6 +27909,17 @@ var init_files = __esm({
|
|
|
27901
27909
|
return crash(error2);
|
|
27902
27910
|
}
|
|
27903
27911
|
};
|
|
27912
|
+
directoryExists = (path3) => {
|
|
27913
|
+
try {
|
|
27914
|
+
const stat = (0, import_fs5.statSync)(path3);
|
|
27915
|
+
return stat.isDirectory();
|
|
27916
|
+
} catch (error2) {
|
|
27917
|
+
if (error2.code === "ENOENT") {
|
|
27918
|
+
return false;
|
|
27919
|
+
}
|
|
27920
|
+
return crash(error2);
|
|
27921
|
+
}
|
|
27922
|
+
};
|
|
27904
27923
|
readJSON = (path3) => {
|
|
27905
27924
|
const contents = readFile(path3);
|
|
27906
27925
|
return contents ? JSON.parse(contents) : contents;
|
|
@@ -32656,7 +32675,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
32656
32675
|
}
|
|
32657
32676
|
}
|
|
32658
32677
|
};
|
|
32659
|
-
var
|
|
32678
|
+
var types6 = createCommonjsModule(function(module3, exports3) {
|
|
32660
32679
|
exports3.name = /* @__PURE__ */ new Map([
|
|
32661
32680
|
["0", "File"],
|
|
32662
32681
|
// same as File
|
|
@@ -32910,14 +32929,14 @@ var require_index_688c5d50 = __commonJS({
|
|
|
32910
32929
|
}
|
|
32911
32930
|
}
|
|
32912
32931
|
get type() {
|
|
32913
|
-
return
|
|
32932
|
+
return types6.name.get(this[TYPE]) || this[TYPE];
|
|
32914
32933
|
}
|
|
32915
32934
|
get typeKey() {
|
|
32916
32935
|
return this[TYPE];
|
|
32917
32936
|
}
|
|
32918
32937
|
set type(type) {
|
|
32919
|
-
if (
|
|
32920
|
-
this[TYPE] =
|
|
32938
|
+
if (types6.code.has(type))
|
|
32939
|
+
this[TYPE] = types6.code.get(type);
|
|
32921
32940
|
else
|
|
32922
32941
|
this[TYPE] = type;
|
|
32923
32942
|
}
|
|
@@ -36029,7 +36048,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
36029
36048
|
exports3.WriteEntry = writeEntry;
|
|
36030
36049
|
exports3.Header = header;
|
|
36031
36050
|
exports3.Pax = pax;
|
|
36032
|
-
exports3.types =
|
|
36051
|
+
exports3.types = types6;
|
|
36033
36052
|
});
|
|
36034
36053
|
var colorName = {
|
|
36035
36054
|
"aliceblue": [240, 248, 255],
|
|
@@ -37987,8 +38006,8 @@ var require_index_688c5d50 = __commonJS({
|
|
|
37987
38006
|
}
|
|
37988
38007
|
var fs$appendFile = fs3.appendFile;
|
|
37989
38008
|
if (fs$appendFile)
|
|
37990
|
-
fs3.appendFile =
|
|
37991
|
-
function
|
|
38009
|
+
fs3.appendFile = appendFile2;
|
|
38010
|
+
function appendFile2(path4, data, options, cb) {
|
|
37992
38011
|
if (typeof options === "function")
|
|
37993
38012
|
cb = options, options = null;
|
|
37994
38013
|
return go$appendFile(path4, data, options, cb);
|
|
@@ -42985,9 +43004,9 @@ var require_types = __commonJS({
|
|
|
42985
43004
|
/** @class */
|
|
42986
43005
|
function(_super) {
|
|
42987
43006
|
(0, tslib_1.__extends)(OrType2, _super);
|
|
42988
|
-
function OrType2(
|
|
43007
|
+
function OrType2(types6) {
|
|
42989
43008
|
var _this = _super.call(this) || this;
|
|
42990
|
-
_this.types =
|
|
43009
|
+
_this.types = types6;
|
|
42991
43010
|
_this.kind = "OrType";
|
|
42992
43011
|
return _this;
|
|
42993
43012
|
}
|
|
@@ -43132,11 +43151,11 @@ var require_types = __commonJS({
|
|
|
43132
43151
|
function typesPlugin(_fork) {
|
|
43133
43152
|
var Type = {
|
|
43134
43153
|
or: function() {
|
|
43135
|
-
var
|
|
43154
|
+
var types6 = [];
|
|
43136
43155
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
43137
|
-
|
|
43156
|
+
types6[_i] = arguments[_i];
|
|
43138
43157
|
}
|
|
43139
|
-
return new OrType(
|
|
43158
|
+
return new OrType(types6.map(function(type) {
|
|
43140
43159
|
return Type.from(type);
|
|
43141
43160
|
}));
|
|
43142
43161
|
},
|
|
@@ -43585,9 +43604,9 @@ var require_path = __commonJS({
|
|
|
43585
43604
|
var Op = Object.prototype;
|
|
43586
43605
|
var hasOwn = Op.hasOwnProperty;
|
|
43587
43606
|
function pathPlugin(fork) {
|
|
43588
|
-
var
|
|
43589
|
-
var isArray =
|
|
43590
|
-
var isNumber =
|
|
43607
|
+
var types6 = fork.use(types_1.default);
|
|
43608
|
+
var isArray = types6.builtInTypes.array;
|
|
43609
|
+
var isNumber = types6.builtInTypes.number;
|
|
43591
43610
|
var Path = function Path2(value, parentPath, name2) {
|
|
43592
43611
|
if (!(this instanceof Path2)) {
|
|
43593
43612
|
throw new Error("Path constructor cannot be invoked without 'new'");
|
|
@@ -43887,13 +43906,13 @@ var require_scope = __commonJS({
|
|
|
43887
43906
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
43888
43907
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
43889
43908
|
function scopePlugin(fork) {
|
|
43890
|
-
var
|
|
43891
|
-
var Type =
|
|
43892
|
-
var namedTypes =
|
|
43909
|
+
var types6 = fork.use(types_1.default);
|
|
43910
|
+
var Type = types6.Type;
|
|
43911
|
+
var namedTypes = types6.namedTypes;
|
|
43893
43912
|
var Node = namedTypes.Node;
|
|
43894
43913
|
var Expression = namedTypes.Expression;
|
|
43895
|
-
var isArray =
|
|
43896
|
-
var b2 =
|
|
43914
|
+
var isArray = types6.builtInTypes.array;
|
|
43915
|
+
var b2 = types6.builders;
|
|
43897
43916
|
var Scope = function Scope2(path3, parentScope) {
|
|
43898
43917
|
if (!(this instanceof Scope2)) {
|
|
43899
43918
|
throw new Error("Scope constructor cannot be invoked without 'new'");
|
|
@@ -43961,7 +43980,7 @@ var require_scope = __commonJS({
|
|
|
43961
43980
|
++index;
|
|
43962
43981
|
}
|
|
43963
43982
|
var name2 = prefix + index;
|
|
43964
|
-
return this.bindings[name2] =
|
|
43983
|
+
return this.bindings[name2] = types6.builders.identifier(name2);
|
|
43965
43984
|
};
|
|
43966
43985
|
Sp.injectTemporary = function(identifier, init) {
|
|
43967
43986
|
identifier || (identifier = this.declareTemporary());
|
|
@@ -44041,7 +44060,7 @@ var require_scope = __commonJS({
|
|
|
44041
44060
|
bindings
|
|
44042
44061
|
);
|
|
44043
44062
|
} else if (Node.check(node) && !Expression.check(node)) {
|
|
44044
|
-
|
|
44063
|
+
types6.eachField(node, function(name2, child) {
|
|
44045
44064
|
var childPath = path3.get(name2);
|
|
44046
44065
|
if (!pathHasValue(childPath, child)) {
|
|
44047
44066
|
throw new Error("");
|
|
@@ -44120,24 +44139,24 @@ var require_scope = __commonJS({
|
|
|
44120
44139
|
addPattern(patternPath.get("argument"), bindings);
|
|
44121
44140
|
}
|
|
44122
44141
|
}
|
|
44123
|
-
function addTypePattern(patternPath,
|
|
44142
|
+
function addTypePattern(patternPath, types7) {
|
|
44124
44143
|
var pattern = patternPath.value;
|
|
44125
44144
|
namedTypes.Pattern.assert(pattern);
|
|
44126
44145
|
if (namedTypes.Identifier.check(pattern)) {
|
|
44127
|
-
if (hasOwn.call(
|
|
44128
|
-
|
|
44146
|
+
if (hasOwn.call(types7, pattern.name)) {
|
|
44147
|
+
types7[pattern.name].push(patternPath);
|
|
44129
44148
|
} else {
|
|
44130
|
-
|
|
44149
|
+
types7[pattern.name] = [patternPath];
|
|
44131
44150
|
}
|
|
44132
44151
|
}
|
|
44133
44152
|
}
|
|
44134
|
-
function addTypeParameter(parameterPath,
|
|
44153
|
+
function addTypeParameter(parameterPath, types7) {
|
|
44135
44154
|
var parameter = parameterPath.value;
|
|
44136
44155
|
FlowOrTSTypeParameterType.assert(parameter);
|
|
44137
|
-
if (hasOwn.call(
|
|
44138
|
-
|
|
44156
|
+
if (hasOwn.call(types7, parameter.name)) {
|
|
44157
|
+
types7[parameter.name].push(parameterPath);
|
|
44139
44158
|
} else {
|
|
44140
|
-
|
|
44159
|
+
types7[parameter.name] = [parameterPath];
|
|
44141
44160
|
}
|
|
44142
44161
|
}
|
|
44143
44162
|
Sp.lookup = function(name2) {
|
|
@@ -44175,11 +44194,11 @@ var require_node_path = __commonJS({
|
|
|
44175
44194
|
var path_1 = (0, tslib_1.__importDefault)(require_path());
|
|
44176
44195
|
var scope_1 = (0, tslib_1.__importDefault)(require_scope());
|
|
44177
44196
|
function nodePathPlugin(fork) {
|
|
44178
|
-
var
|
|
44179
|
-
var n2 =
|
|
44180
|
-
var b2 =
|
|
44181
|
-
var isNumber =
|
|
44182
|
-
var isArray =
|
|
44197
|
+
var types6 = fork.use(types_1.default);
|
|
44198
|
+
var n2 = types6.namedTypes;
|
|
44199
|
+
var b2 = types6.builders;
|
|
44200
|
+
var isNumber = types6.builtInTypes.number;
|
|
44201
|
+
var isArray = types6.builtInTypes.array;
|
|
44183
44202
|
var Path = fork.use(path_1.default);
|
|
44184
44203
|
var Scope = fork.use(scope_1.default);
|
|
44185
44204
|
var NodePath = function NodePath2(value, parentPath, name2) {
|
|
@@ -44270,7 +44289,7 @@ var require_node_path = __commonJS({
|
|
|
44270
44289
|
return scope || null;
|
|
44271
44290
|
};
|
|
44272
44291
|
NPp.getValueProperty = function(name2) {
|
|
44273
|
-
return
|
|
44292
|
+
return types6.getFieldValue(this.value, name2);
|
|
44274
44293
|
};
|
|
44275
44294
|
NPp.needsParens = function(assumeExpressionContext) {
|
|
44276
44295
|
var pp = this.parentPath;
|
|
@@ -44412,7 +44431,7 @@ var require_node_path = __commonJS({
|
|
|
44412
44431
|
return node.some(containsCallExpression);
|
|
44413
44432
|
}
|
|
44414
44433
|
if (n2.Node.check(node)) {
|
|
44415
|
-
return
|
|
44434
|
+
return types6.someField(node, function(_name, child) {
|
|
44416
44435
|
return containsCallExpression(child);
|
|
44417
44436
|
});
|
|
44418
44437
|
}
|
|
@@ -44530,11 +44549,11 @@ var require_path_visitor = __commonJS({
|
|
|
44530
44549
|
var node_path_1 = (0, tslib_1.__importDefault)(require_node_path());
|
|
44531
44550
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
44532
44551
|
function pathVisitorPlugin(fork) {
|
|
44533
|
-
var
|
|
44552
|
+
var types6 = fork.use(types_1.default);
|
|
44534
44553
|
var NodePath = fork.use(node_path_1.default);
|
|
44535
|
-
var isArray =
|
|
44536
|
-
var isObject2 =
|
|
44537
|
-
var isFunction2 =
|
|
44554
|
+
var isArray = types6.builtInTypes.array;
|
|
44555
|
+
var isObject2 = types6.builtInTypes.object;
|
|
44556
|
+
var isFunction2 = types6.builtInTypes.function;
|
|
44538
44557
|
var undefined2;
|
|
44539
44558
|
var PathVisitor = function PathVisitor2() {
|
|
44540
44559
|
if (!(this instanceof PathVisitor2)) {
|
|
@@ -44554,7 +44573,7 @@ var require_path_visitor = __commonJS({
|
|
|
44554
44573
|
typeNames[methodName.slice("visit".length)] = true;
|
|
44555
44574
|
}
|
|
44556
44575
|
}
|
|
44557
|
-
var supertypeTable =
|
|
44576
|
+
var supertypeTable = types6.computeSupertypeLookupTable(typeNames);
|
|
44558
44577
|
var methodNameTable = /* @__PURE__ */ Object.create(null);
|
|
44559
44578
|
var typeNameKeys = Object.keys(supertypeTable);
|
|
44560
44579
|
var typeNameCount = typeNameKeys.length;
|
|
@@ -44673,7 +44692,7 @@ var require_path_visitor = __commonJS({
|
|
|
44673
44692
|
path3.each(visitor.visitWithoutReset, visitor);
|
|
44674
44693
|
} else if (!isObject2.check(value)) {
|
|
44675
44694
|
} else {
|
|
44676
|
-
var childNames =
|
|
44695
|
+
var childNames = types6.getFieldNames(value);
|
|
44677
44696
|
if (visitor._shouldVisitComments && value.comments && childNames.indexOf("comments") < 0) {
|
|
44678
44697
|
childNames.push("comments");
|
|
44679
44698
|
}
|
|
@@ -44682,7 +44701,7 @@ var require_path_visitor = __commonJS({
|
|
|
44682
44701
|
for (var i = 0; i < childCount; ++i) {
|
|
44683
44702
|
var childName = childNames[i];
|
|
44684
44703
|
if (!hasOwn.call(value, childName)) {
|
|
44685
|
-
value[childName] =
|
|
44704
|
+
value[childName] = types6.getFieldValue(value, childName);
|
|
44686
44705
|
}
|
|
44687
44706
|
childPaths.push(path3.get(childName));
|
|
44688
44707
|
}
|
|
@@ -44822,13 +44841,13 @@ var require_equiv = __commonJS({
|
|
|
44822
44841
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
44823
44842
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
44824
44843
|
function default_1(fork) {
|
|
44825
|
-
var
|
|
44826
|
-
var getFieldNames =
|
|
44827
|
-
var getFieldValue =
|
|
44828
|
-
var isArray =
|
|
44829
|
-
var isObject2 =
|
|
44830
|
-
var isDate =
|
|
44831
|
-
var isRegExp =
|
|
44844
|
+
var types6 = fork.use(types_1.default);
|
|
44845
|
+
var getFieldNames = types6.getFieldNames;
|
|
44846
|
+
var getFieldValue = types6.getFieldValue;
|
|
44847
|
+
var isArray = types6.builtInTypes.array;
|
|
44848
|
+
var isObject2 = types6.builtInTypes.object;
|
|
44849
|
+
var isDate = types6.builtInTypes.Date;
|
|
44850
|
+
var isRegExp = types6.builtInTypes.RegExp;
|
|
44832
44851
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
44833
44852
|
function astNodesAreEquivalent(a, b2, problemPath) {
|
|
44834
44853
|
if (isArray.check(problemPath)) {
|
|
@@ -44978,24 +44997,24 @@ var require_fork = __commonJS({
|
|
|
44978
44997
|
var node_path_1 = (0, tslib_1.__importDefault)(require_node_path());
|
|
44979
44998
|
function default_1(plugins) {
|
|
44980
44999
|
var fork = createFork();
|
|
44981
|
-
var
|
|
45000
|
+
var types6 = fork.use(types_1.default);
|
|
44982
45001
|
plugins.forEach(fork.use);
|
|
44983
|
-
|
|
45002
|
+
types6.finalize();
|
|
44984
45003
|
var PathVisitor = fork.use(path_visitor_1.default);
|
|
44985
45004
|
return {
|
|
44986
|
-
Type:
|
|
44987
|
-
builtInTypes:
|
|
44988
|
-
namedTypes:
|
|
44989
|
-
builders:
|
|
44990
|
-
defineMethod:
|
|
44991
|
-
getFieldNames:
|
|
44992
|
-
getFieldValue:
|
|
44993
|
-
eachField:
|
|
44994
|
-
someField:
|
|
44995
|
-
getSupertypeNames:
|
|
44996
|
-
getBuilderName:
|
|
45005
|
+
Type: types6.Type,
|
|
45006
|
+
builtInTypes: types6.builtInTypes,
|
|
45007
|
+
namedTypes: types6.namedTypes,
|
|
45008
|
+
builders: types6.builders,
|
|
45009
|
+
defineMethod: types6.defineMethod,
|
|
45010
|
+
getFieldNames: types6.getFieldNames,
|
|
45011
|
+
getFieldValue: types6.getFieldValue,
|
|
45012
|
+
eachField: types6.eachField,
|
|
45013
|
+
someField: types6.someField,
|
|
45014
|
+
getSupertypeNames: types6.getSupertypeNames,
|
|
45015
|
+
getBuilderName: types6.getBuilderName,
|
|
44997
45016
|
astNodesAreEquivalent: fork.use(equiv_1.default),
|
|
44998
|
-
finalize:
|
|
45017
|
+
finalize: types6.finalize,
|
|
44999
45018
|
Path: fork.use(path_1.default),
|
|
45000
45019
|
NodePath: fork.use(node_path_1.default),
|
|
45001
45020
|
PathVisitor,
|
|
@@ -45031,9 +45050,9 @@ var require_shared = __commonJS({
|
|
|
45031
45050
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
45032
45051
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
45033
45052
|
function default_1(fork) {
|
|
45034
|
-
var
|
|
45035
|
-
var Type =
|
|
45036
|
-
var builtin =
|
|
45053
|
+
var types6 = fork.use(types_1.default);
|
|
45054
|
+
var Type = types6.Type;
|
|
45055
|
+
var builtin = types6.builtInTypes;
|
|
45037
45056
|
var isNumber = builtin.number;
|
|
45038
45057
|
function geq(than) {
|
|
45039
45058
|
return Type.from(function(value) {
|
|
@@ -45212,8 +45231,8 @@ var require_core2 = __commonJS({
|
|
|
45212
45231
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
45213
45232
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45214
45233
|
function default_1(fork) {
|
|
45215
|
-
var
|
|
45216
|
-
var Type =
|
|
45234
|
+
var types6 = fork.use(types_1.default);
|
|
45235
|
+
var Type = types6.Type;
|
|
45217
45236
|
var def = Type.def;
|
|
45218
45237
|
var or = Type.or;
|
|
45219
45238
|
var shared = fork.use(shared_1.default);
|
|
@@ -45303,9 +45322,9 @@ var require_es6 = __commonJS({
|
|
|
45303
45322
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45304
45323
|
function default_1(fork) {
|
|
45305
45324
|
fork.use(core_1.default);
|
|
45306
|
-
var
|
|
45307
|
-
var def =
|
|
45308
|
-
var or =
|
|
45325
|
+
var types6 = fork.use(types_1.default);
|
|
45326
|
+
var def = types6.Type.def;
|
|
45327
|
+
var or = types6.Type.or;
|
|
45309
45328
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45310
45329
|
def("Function").field("generator", Boolean, defaults["false"]).field("expression", Boolean, defaults["false"]).field("defaults", [or(def("Expression"), null)], defaults.emptyArray).field("rest", or(def("Identifier"), null), defaults["null"]);
|
|
45311
45330
|
def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
|
|
@@ -45391,8 +45410,8 @@ var require_es2017 = __commonJS({
|
|
|
45391
45410
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45392
45411
|
function default_1(fork) {
|
|
45393
45412
|
fork.use(es2016_1.default);
|
|
45394
|
-
var
|
|
45395
|
-
var def =
|
|
45413
|
+
var types6 = fork.use(types_1.default);
|
|
45414
|
+
var def = types6.Type.def;
|
|
45396
45415
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45397
45416
|
def("Function").field("async", Boolean, defaults["false"]);
|
|
45398
45417
|
def("AwaitExpression").bases("Expression").build("argument").field("argument", def("Expression"));
|
|
@@ -45413,9 +45432,9 @@ var require_es2018 = __commonJS({
|
|
|
45413
45432
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45414
45433
|
function default_1(fork) {
|
|
45415
45434
|
fork.use(es2017_1.default);
|
|
45416
|
-
var
|
|
45417
|
-
var def =
|
|
45418
|
-
var or =
|
|
45435
|
+
var types6 = fork.use(types_1.default);
|
|
45436
|
+
var def = types6.Type.def;
|
|
45437
|
+
var or = types6.Type.or;
|
|
45419
45438
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45420
45439
|
def("ForOfStatement").field("await", Boolean, defaults["false"]);
|
|
45421
45440
|
def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
|
|
@@ -45445,9 +45464,9 @@ var require_es2019 = __commonJS({
|
|
|
45445
45464
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45446
45465
|
function default_1(fork) {
|
|
45447
45466
|
fork.use(es2018_1.default);
|
|
45448
|
-
var
|
|
45449
|
-
var def =
|
|
45450
|
-
var or =
|
|
45467
|
+
var types6 = fork.use(types_1.default);
|
|
45468
|
+
var def = types6.Type.def;
|
|
45469
|
+
var or = types6.Type.or;
|
|
45451
45470
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45452
45471
|
def("CatchClause").field("param", or(def("Pattern"), null), defaults["null"]);
|
|
45453
45472
|
}
|
|
@@ -45469,9 +45488,9 @@ var require_es20202 = __commonJS({
|
|
|
45469
45488
|
function default_1(fork) {
|
|
45470
45489
|
fork.use(es2020_1.default);
|
|
45471
45490
|
fork.use(es2019_1.default);
|
|
45472
|
-
var
|
|
45473
|
-
var def =
|
|
45474
|
-
var or =
|
|
45491
|
+
var types6 = fork.use(types_1.default);
|
|
45492
|
+
var def = types6.Type.def;
|
|
45493
|
+
var or = types6.Type.or;
|
|
45475
45494
|
var shared = fork.use(shared_1.default);
|
|
45476
45495
|
var defaults = shared.defaults;
|
|
45477
45496
|
def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
|
|
@@ -45515,8 +45534,8 @@ var require_es2022 = __commonJS({
|
|
|
45515
45534
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
45516
45535
|
function default_1(fork) {
|
|
45517
45536
|
fork.use(es2021_1.default);
|
|
45518
|
-
var
|
|
45519
|
-
var def =
|
|
45537
|
+
var types6 = fork.use(types_1.default);
|
|
45538
|
+
var def = types6.Type.def;
|
|
45520
45539
|
def("StaticBlock").bases("Declaration").build("body").field("body", [def("Statement")]);
|
|
45521
45540
|
}
|
|
45522
45541
|
exports2.default = default_1;
|
|
@@ -45535,9 +45554,9 @@ var require_es_proposals = __commonJS({
|
|
|
45535
45554
|
var es2022_1 = (0, tslib_1.__importDefault)(require_es2022());
|
|
45536
45555
|
function default_1(fork) {
|
|
45537
45556
|
fork.use(es2022_1.default);
|
|
45538
|
-
var
|
|
45539
|
-
var Type =
|
|
45540
|
-
var def =
|
|
45557
|
+
var types6 = fork.use(types_1.default);
|
|
45558
|
+
var Type = types6.Type;
|
|
45559
|
+
var def = types6.Type.def;
|
|
45541
45560
|
var or = Type.or;
|
|
45542
45561
|
var shared = fork.use(shared_1.default);
|
|
45543
45562
|
var defaults = shared.defaults;
|
|
@@ -45575,9 +45594,9 @@ var require_jsx = __commonJS({
|
|
|
45575
45594
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45576
45595
|
function default_1(fork) {
|
|
45577
45596
|
fork.use(es_proposals_1.default);
|
|
45578
|
-
var
|
|
45579
|
-
var def =
|
|
45580
|
-
var or =
|
|
45597
|
+
var types6 = fork.use(types_1.default);
|
|
45598
|
+
var def = types6.Type.def;
|
|
45599
|
+
var or = types6.Type.or;
|
|
45581
45600
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45582
45601
|
def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
|
|
45583
45602
|
def("Literal"),
|
|
@@ -45639,9 +45658,9 @@ var require_type_annotations = __commonJS({
|
|
|
45639
45658
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
45640
45659
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45641
45660
|
function default_1(fork) {
|
|
45642
|
-
var
|
|
45643
|
-
var def =
|
|
45644
|
-
var or =
|
|
45661
|
+
var types6 = fork.use(types_1.default);
|
|
45662
|
+
var def = types6.Type.def;
|
|
45663
|
+
var or = types6.Type.or;
|
|
45645
45664
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45646
45665
|
var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
|
|
45647
45666
|
var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
|
|
@@ -45674,9 +45693,9 @@ var require_flow = __commonJS({
|
|
|
45674
45693
|
function default_1(fork) {
|
|
45675
45694
|
fork.use(es_proposals_1.default);
|
|
45676
45695
|
fork.use(type_annotations_1.default);
|
|
45677
|
-
var
|
|
45678
|
-
var def =
|
|
45679
|
-
var or =
|
|
45696
|
+
var types6 = fork.use(types_1.default);
|
|
45697
|
+
var def = types6.Type.def;
|
|
45698
|
+
var or = types6.Type.or;
|
|
45680
45699
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45681
45700
|
def("Flow").bases("Node");
|
|
45682
45701
|
def("FlowType").bases("Flow");
|
|
@@ -45791,10 +45810,10 @@ var require_esprima = __commonJS({
|
|
|
45791
45810
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
45792
45811
|
function default_1(fork) {
|
|
45793
45812
|
fork.use(es_proposals_1.default);
|
|
45794
|
-
var
|
|
45813
|
+
var types6 = fork.use(types_1.default);
|
|
45795
45814
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45796
|
-
var def =
|
|
45797
|
-
var or =
|
|
45815
|
+
var def = types6.Type.def;
|
|
45816
|
+
var or = types6.Type.or;
|
|
45798
45817
|
def("VariableDeclaration").field("declarations", [or(
|
|
45799
45818
|
def("VariableDeclarator"),
|
|
45800
45819
|
def("Identifier")
|
|
@@ -45851,11 +45870,11 @@ var require_babel_core = __commonJS({
|
|
|
45851
45870
|
function default_1(fork) {
|
|
45852
45871
|
var _a2, _b2, _c2, _d, _e;
|
|
45853
45872
|
fork.use(es_proposals_1.default);
|
|
45854
|
-
var
|
|
45873
|
+
var types6 = fork.use(types_1.default);
|
|
45855
45874
|
var defaults = fork.use(shared_1.default).defaults;
|
|
45856
|
-
var def =
|
|
45857
|
-
var or =
|
|
45858
|
-
var isUndefined =
|
|
45875
|
+
var def = types6.Type.def;
|
|
45876
|
+
var or = types6.Type.or;
|
|
45877
|
+
var isUndefined = types6.builtInTypes.undefined;
|
|
45859
45878
|
def("Noop").bases("Statement").build();
|
|
45860
45879
|
def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
|
|
45861
45880
|
def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
|
|
@@ -45890,7 +45909,7 @@ var require_babel_core = __commonJS({
|
|
|
45890
45909
|
raw: String
|
|
45891
45910
|
},
|
|
45892
45911
|
function getDefault() {
|
|
45893
|
-
var value =
|
|
45912
|
+
var value = types6.getFieldValue(this, "value");
|
|
45894
45913
|
return {
|
|
45895
45914
|
rawValue: value,
|
|
45896
45915
|
raw: toRaw ? toRaw(value) : String(value)
|
|
@@ -45981,8 +46000,8 @@ var require_babel = __commonJS({
|
|
|
45981
46000
|
var babel_core_1 = (0, tslib_1.__importDefault)(require_babel_core());
|
|
45982
46001
|
var flow_1 = (0, tslib_1.__importDefault)(require_flow());
|
|
45983
46002
|
function default_1(fork) {
|
|
45984
|
-
var
|
|
45985
|
-
var def =
|
|
46003
|
+
var types6 = fork.use(types_1.default);
|
|
46004
|
+
var def = types6.Type.def;
|
|
45986
46005
|
fork.use(babel_core_1.default);
|
|
45987
46006
|
fork.use(flow_1.default);
|
|
45988
46007
|
def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String);
|
|
@@ -46006,12 +46025,12 @@ var require_typescript = __commonJS({
|
|
|
46006
46025
|
function default_1(fork) {
|
|
46007
46026
|
fork.use(babel_core_1.default);
|
|
46008
46027
|
fork.use(type_annotations_1.default);
|
|
46009
|
-
var
|
|
46010
|
-
var n2 =
|
|
46011
|
-
var def =
|
|
46012
|
-
var or =
|
|
46028
|
+
var types6 = fork.use(types_1.default);
|
|
46029
|
+
var n2 = types6.namedTypes;
|
|
46030
|
+
var def = types6.Type.def;
|
|
46031
|
+
var or = types6.Type.or;
|
|
46013
46032
|
var defaults = fork.use(shared_1.default).defaults;
|
|
46014
|
-
var StringLiteral =
|
|
46033
|
+
var StringLiteral = types6.Type.from(function(value, deep) {
|
|
46015
46034
|
if (n2.StringLiteral && n2.StringLiteral.check(value, deep)) {
|
|
46016
46035
|
return true;
|
|
46017
46036
|
}
|
|
@@ -47989,8 +48008,8 @@ var require_util9 = __commonJS({
|
|
|
47989
48008
|
exports2.isTrailingCommaEnabled = exports2.getParentExportDeclaration = exports2.isExportDeclaration = exports2.fixFaultyLocations = exports2.getTrueLoc = exports2.composeSourceMaps = exports2.copyPos = exports2.comparePos = exports2.getUnionOfKeys = exports2.getOption = exports2.isBrowser = exports2.getLineTerminator = void 0;
|
|
47990
48009
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
47991
48010
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
47992
|
-
var
|
|
47993
|
-
var n2 =
|
|
48011
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
48012
|
+
var n2 = types6.namedTypes;
|
|
47994
48013
|
var source_map_1 = tslib_1.__importDefault(require_source_map());
|
|
47995
48014
|
var SourceMapConsumer = source_map_1.default.SourceMapConsumer;
|
|
47996
48015
|
var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
|
|
@@ -55403,10 +55422,10 @@ var require_comments = __commonJS({
|
|
|
55403
55422
|
exports2.printComments = exports2.attach = void 0;
|
|
55404
55423
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
55405
55424
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
55406
|
-
var
|
|
55407
|
-
var n2 =
|
|
55408
|
-
var isArray =
|
|
55409
|
-
var isObject2 =
|
|
55425
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
55426
|
+
var n2 = types6.namedTypes;
|
|
55427
|
+
var isArray = types6.builtInTypes.array;
|
|
55428
|
+
var isObject2 = types6.builtInTypes.object;
|
|
55410
55429
|
var lines_1 = require_lines();
|
|
55411
55430
|
var util_1 = require_util9();
|
|
55412
55431
|
var childNodesCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -55437,7 +55456,7 @@ var require_comments = __commonJS({
|
|
|
55437
55456
|
if (isArray.check(node)) {
|
|
55438
55457
|
names = Object.keys(node);
|
|
55439
55458
|
} else if (isObject2.check(node)) {
|
|
55440
|
-
names =
|
|
55459
|
+
names = types6.getFieldNames(node);
|
|
55441
55460
|
} else {
|
|
55442
55461
|
return resultArray;
|
|
55443
55462
|
}
|
|
@@ -55617,7 +55636,7 @@ var require_comments = __commonJS({
|
|
|
55617
55636
|
function printComments(path3, print2) {
|
|
55618
55637
|
var value = path3.getValue();
|
|
55619
55638
|
var innerLines = print2(path3);
|
|
55620
|
-
var comments = n2.Node.check(value) &&
|
|
55639
|
+
var comments = n2.Node.check(value) && types6.getFieldValue(value, "comments");
|
|
55621
55640
|
if (!comments || comments.length === 0) {
|
|
55622
55641
|
return innerLines;
|
|
55623
55642
|
}
|
|
@@ -55625,8 +55644,8 @@ var require_comments = __commonJS({
|
|
|
55625
55644
|
var trailingParts = [innerLines];
|
|
55626
55645
|
path3.each(function(commentPath) {
|
|
55627
55646
|
var comment = commentPath.getValue();
|
|
55628
|
-
var leading =
|
|
55629
|
-
var trailing =
|
|
55647
|
+
var leading = types6.getFieldValue(comment, "leading");
|
|
55648
|
+
var trailing = types6.getFieldValue(comment, "trailing");
|
|
55630
55649
|
if (leading || trailing && !(n2.Statement.check(value) || comment.type === "Block" || comment.type === "CommentBlock")) {
|
|
55631
55650
|
leadingParts.push(printLeadingComment(commentPath, print2));
|
|
55632
55651
|
} else if (trailing) {
|
|
@@ -55648,10 +55667,10 @@ var require_parser2 = __commonJS({
|
|
|
55648
55667
|
exports2.parse = void 0;
|
|
55649
55668
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
55650
55669
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
55651
|
-
var
|
|
55652
|
-
var b2 =
|
|
55653
|
-
var isObject2 =
|
|
55654
|
-
var isArray =
|
|
55670
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
55671
|
+
var b2 = types6.builders;
|
|
55672
|
+
var isObject2 = types6.builtInTypes.object;
|
|
55673
|
+
var isArray = types6.builtInTypes.array;
|
|
55655
55674
|
var options_1 = require_options();
|
|
55656
55675
|
var lines_1 = require_lines();
|
|
55657
55676
|
var comments_1 = require_comments();
|
|
@@ -55838,11 +55857,11 @@ var require_fast_path = __commonJS({
|
|
|
55838
55857
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55839
55858
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
55840
55859
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
55841
|
-
var
|
|
55860
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
55842
55861
|
var util = tslib_1.__importStar(require_util9());
|
|
55843
|
-
var n2 =
|
|
55844
|
-
var isArray =
|
|
55845
|
-
var isNumber =
|
|
55862
|
+
var n2 = types6.namedTypes;
|
|
55863
|
+
var isArray = types6.builtInTypes.array;
|
|
55864
|
+
var isNumber = types6.builtInTypes.number;
|
|
55846
55865
|
var PRECEDENCE = {};
|
|
55847
55866
|
[
|
|
55848
55867
|
["??"],
|
|
@@ -55871,7 +55890,7 @@ var require_fast_path = __commonJS({
|
|
|
55871
55890
|
if (obj instanceof FastPath) {
|
|
55872
55891
|
return obj.copy();
|
|
55873
55892
|
}
|
|
55874
|
-
if (obj instanceof
|
|
55893
|
+
if (obj instanceof types6.NodePath) {
|
|
55875
55894
|
var copy = Object.create(FastPath.prototype);
|
|
55876
55895
|
var stack = [obj.value];
|
|
55877
55896
|
for (var pp = void 0; pp = obj.parentPath; obj = pp)
|
|
@@ -56182,7 +56201,7 @@ var require_fast_path = __commonJS({
|
|
|
56182
56201
|
return node.some(containsCallExpression);
|
|
56183
56202
|
}
|
|
56184
56203
|
if (n2.Node.check(node)) {
|
|
56185
|
-
return
|
|
56204
|
+
return types6.someField(node, function(_name, child) {
|
|
56186
56205
|
return containsCallExpression(child);
|
|
56187
56206
|
});
|
|
56188
56207
|
}
|
|
@@ -56272,16 +56291,16 @@ var require_patcher = __commonJS({
|
|
|
56272
56291
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
56273
56292
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
56274
56293
|
var linesModule = tslib_1.__importStar(require_lines());
|
|
56275
|
-
var
|
|
56276
|
-
var Printable =
|
|
56277
|
-
var Expression =
|
|
56278
|
-
var ReturnStatement =
|
|
56279
|
-
var SourceLocation =
|
|
56294
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
56295
|
+
var Printable = types6.namedTypes.Printable;
|
|
56296
|
+
var Expression = types6.namedTypes.Expression;
|
|
56297
|
+
var ReturnStatement = types6.namedTypes.ReturnStatement;
|
|
56298
|
+
var SourceLocation = types6.namedTypes.SourceLocation;
|
|
56280
56299
|
var util_1 = require_util9();
|
|
56281
56300
|
var fast_path_1 = tslib_1.__importDefault(require_fast_path());
|
|
56282
|
-
var isObject2 =
|
|
56283
|
-
var isArray =
|
|
56284
|
-
var isString =
|
|
56301
|
+
var isObject2 = types6.builtInTypes.object;
|
|
56302
|
+
var isArray = types6.builtInTypes.array;
|
|
56303
|
+
var isString = types6.builtInTypes.string;
|
|
56285
56304
|
var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
|
|
56286
56305
|
var Patcher = function Patcher2(lines) {
|
|
56287
56306
|
assert_1.default.ok(this instanceof Patcher2);
|
|
@@ -56560,8 +56579,8 @@ var require_patcher = __commonJS({
|
|
|
56560
56579
|
if (k2.charAt(0) === "_") {
|
|
56561
56580
|
continue;
|
|
56562
56581
|
}
|
|
56563
|
-
newPath.stack.push(k2,
|
|
56564
|
-
oldPath.stack.push(k2,
|
|
56582
|
+
newPath.stack.push(k2, types6.getFieldValue(newNode, k2));
|
|
56583
|
+
oldPath.stack.push(k2, types6.getFieldValue(oldNode, k2));
|
|
56565
56584
|
var canReprint = findAnyReprints(newPath, oldPath, reprints);
|
|
56566
56585
|
newPath.stack.length -= 2;
|
|
56567
56586
|
oldPath.stack.length -= 2;
|
|
@@ -56589,10 +56608,10 @@ var require_printer = __commonJS({
|
|
|
56589
56608
|
var lines_1 = require_lines();
|
|
56590
56609
|
var options_1 = require_options();
|
|
56591
56610
|
var patcher_1 = require_patcher();
|
|
56592
|
-
var
|
|
56593
|
-
var namedTypes =
|
|
56594
|
-
var isString =
|
|
56595
|
-
var isObject2 =
|
|
56611
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
56612
|
+
var namedTypes = types6.namedTypes;
|
|
56613
|
+
var isString = types6.builtInTypes.string;
|
|
56614
|
+
var isObject2 = types6.builtInTypes.object;
|
|
56596
56615
|
var fast_path_1 = tslib_1.__importDefault(require_fast_path());
|
|
56597
56616
|
var util = tslib_1.__importStar(require_util9());
|
|
56598
56617
|
var PrintResult = function PrintResult2(code, sourceMap) {
|
|
@@ -56766,7 +56785,7 @@ var require_printer = __commonJS({
|
|
|
56766
56785
|
case "OptionalMemberExpression": {
|
|
56767
56786
|
parts.push(path3.call(print2, "object"));
|
|
56768
56787
|
var property = path3.call(print2, "property");
|
|
56769
|
-
var optional =
|
|
56788
|
+
var optional = types6.getFieldValue(n2, "optional");
|
|
56770
56789
|
if (n2.computed) {
|
|
56771
56790
|
parts.push(optional ? "?.[" : "[", property, "]");
|
|
56772
56791
|
} else {
|
|
@@ -57037,7 +57056,7 @@ var require_printer = __commonJS({
|
|
|
57037
57056
|
if (n2.typeArguments) {
|
|
57038
57057
|
parts.push(path3.call(print2, "typeArguments"));
|
|
57039
57058
|
}
|
|
57040
|
-
if (
|
|
57059
|
+
if (types6.getFieldValue(n2, "optional")) {
|
|
57041
57060
|
parts.push("?.");
|
|
57042
57061
|
}
|
|
57043
57062
|
parts.push(printArgumentsList(path3, options, print2));
|
|
@@ -58669,8 +58688,8 @@ var require_printer = __commonJS({
|
|
|
58669
58688
|
});
|
|
58670
58689
|
}
|
|
58671
58690
|
function getPossibleRaw(node) {
|
|
58672
|
-
var value =
|
|
58673
|
-
var extra =
|
|
58691
|
+
var value = types6.getFieldValue(node, "value");
|
|
58692
|
+
var extra = types6.getFieldValue(node, "extra");
|
|
58674
58693
|
if (extra && typeof extra.raw === "string" && value == extra.rawValue) {
|
|
58675
58694
|
return extra.raw;
|
|
58676
58695
|
}
|
|
@@ -58718,8 +58737,8 @@ var require_main3 = __commonJS({
|
|
|
58718
58737
|
exports2.run = exports2.prettyPrint = exports2.print = exports2.visit = exports2.types = exports2.parse = void 0;
|
|
58719
58738
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
58720
58739
|
var fs_1 = tslib_1.__importDefault(require("fs"));
|
|
58721
|
-
var
|
|
58722
|
-
exports2.types =
|
|
58740
|
+
var types6 = tslib_1.__importStar(require_main2());
|
|
58741
|
+
exports2.types = types6;
|
|
58723
58742
|
var parser_1 = require_parser2();
|
|
58724
58743
|
Object.defineProperty(exports2, "parse", { enumerable: true, get: function() {
|
|
58725
58744
|
return parser_1.parse;
|
|
@@ -59583,14 +59602,14 @@ var require_lib = __commonJS({
|
|
|
59583
59602
|
this.preserveSpace = !!preserveSpace;
|
|
59584
59603
|
}
|
|
59585
59604
|
};
|
|
59586
|
-
var
|
|
59605
|
+
var types6 = {
|
|
59587
59606
|
brace: new TokContext("{"),
|
|
59588
59607
|
j_oTag: new TokContext("<tag"),
|
|
59589
59608
|
j_cTag: new TokContext("</tag"),
|
|
59590
59609
|
j_expr: new TokContext("<tag>...</tag>", true)
|
|
59591
59610
|
};
|
|
59592
59611
|
{
|
|
59593
|
-
|
|
59612
|
+
types6.template = new TokContext("`", true);
|
|
59594
59613
|
}
|
|
59595
59614
|
var beforeExpr = true;
|
|
59596
59615
|
var startsExpr = true;
|
|
@@ -60122,17 +60141,17 @@ var require_lib = __commonJS({
|
|
|
60122
60141
|
context.pop();
|
|
60123
60142
|
};
|
|
60124
60143
|
tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = (context) => {
|
|
60125
|
-
context.push(
|
|
60144
|
+
context.push(types6.brace);
|
|
60126
60145
|
};
|
|
60127
60146
|
tokenTypes[22].updateContext = (context) => {
|
|
60128
|
-
if (context[context.length - 1] ===
|
|
60147
|
+
if (context[context.length - 1] === types6.template) {
|
|
60129
60148
|
context.pop();
|
|
60130
60149
|
} else {
|
|
60131
|
-
context.push(
|
|
60150
|
+
context.push(types6.template);
|
|
60132
60151
|
}
|
|
60133
60152
|
};
|
|
60134
60153
|
tokenTypes[140].updateContext = (context) => {
|
|
60135
|
-
context.push(
|
|
60154
|
+
context.push(types6.j_expr, types6.j_oTag);
|
|
60136
60155
|
};
|
|
60137
60156
|
}
|
|
60138
60157
|
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
@@ -60738,7 +60757,7 @@ var require_lib = __commonJS({
|
|
|
60738
60757
|
this.lastTokEndLoc = null;
|
|
60739
60758
|
this.lastTokStartLoc = null;
|
|
60740
60759
|
this.lastTokStart = 0;
|
|
60741
|
-
this.context = [
|
|
60760
|
+
this.context = [types6.brace];
|
|
60742
60761
|
this.canStartJSXElement = true;
|
|
60743
60762
|
this.containsEsc = false;
|
|
60744
60763
|
this.firstInvalidTemplateEscapePos = null;
|
|
@@ -64629,7 +64648,7 @@ var require_lib = __commonJS({
|
|
|
64629
64648
|
context
|
|
64630
64649
|
} = this.state;
|
|
64631
64650
|
const currentContext = context[context.length - 1];
|
|
64632
|
-
if (currentContext ===
|
|
64651
|
+
if (currentContext === types6.j_oTag || currentContext === types6.j_expr) {
|
|
64633
64652
|
context.pop();
|
|
64634
64653
|
}
|
|
64635
64654
|
}
|
|
@@ -65687,9 +65706,9 @@ var require_lib = __commonJS({
|
|
|
65687
65706
|
switch (this.state.type) {
|
|
65688
65707
|
case 5:
|
|
65689
65708
|
node = this.startNode();
|
|
65690
|
-
this.setContext(
|
|
65709
|
+
this.setContext(types6.brace);
|
|
65691
65710
|
this.next();
|
|
65692
|
-
node = this.jsxParseExpressionContainer(node,
|
|
65711
|
+
node = this.jsxParseExpressionContainer(node, types6.j_oTag);
|
|
65693
65712
|
if (node.expression.type === "JSXEmptyExpression") {
|
|
65694
65713
|
this.raise(JsxErrors.AttributeIsEmpty, {
|
|
65695
65714
|
at: node
|
|
@@ -65712,7 +65731,7 @@ var require_lib = __commonJS({
|
|
|
65712
65731
|
jsxParseSpreadChild(node) {
|
|
65713
65732
|
this.next();
|
|
65714
65733
|
node.expression = this.parseExpression();
|
|
65715
|
-
this.setContext(
|
|
65734
|
+
this.setContext(types6.j_expr);
|
|
65716
65735
|
this.state.canStartJSXElement = true;
|
|
65717
65736
|
this.expect(8);
|
|
65718
65737
|
return this.finishNode(node, "JSXSpreadChild");
|
|
@@ -65732,11 +65751,11 @@ var require_lib = __commonJS({
|
|
|
65732
65751
|
jsxParseAttribute() {
|
|
65733
65752
|
const node = this.startNode();
|
|
65734
65753
|
if (this.match(5)) {
|
|
65735
|
-
this.setContext(
|
|
65754
|
+
this.setContext(types6.brace);
|
|
65736
65755
|
this.next();
|
|
65737
65756
|
this.expect(21);
|
|
65738
65757
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
65739
|
-
this.setContext(
|
|
65758
|
+
this.setContext(types6.j_oTag);
|
|
65740
65759
|
this.state.canStartJSXElement = true;
|
|
65741
65760
|
this.expect(8);
|
|
65742
65761
|
return this.finishNode(node, "JSXSpreadAttribute");
|
|
@@ -65795,12 +65814,12 @@ var require_lib = __commonJS({
|
|
|
65795
65814
|
break;
|
|
65796
65815
|
case 5: {
|
|
65797
65816
|
const node2 = this.startNode();
|
|
65798
|
-
this.setContext(
|
|
65817
|
+
this.setContext(types6.brace);
|
|
65799
65818
|
this.next();
|
|
65800
65819
|
if (this.match(21)) {
|
|
65801
65820
|
children.push(this.jsxParseSpreadChild(node2));
|
|
65802
65821
|
} else {
|
|
65803
|
-
children.push(this.jsxParseExpressionContainer(node2,
|
|
65822
|
+
children.push(this.jsxParseExpressionContainer(node2, types6.j_expr));
|
|
65804
65823
|
}
|
|
65805
65824
|
break;
|
|
65806
65825
|
}
|
|
@@ -65871,11 +65890,11 @@ var require_lib = __commonJS({
|
|
|
65871
65890
|
}
|
|
65872
65891
|
getTokenFromCode(code) {
|
|
65873
65892
|
const context = this.curContext();
|
|
65874
|
-
if (context ===
|
|
65893
|
+
if (context === types6.j_expr) {
|
|
65875
65894
|
this.jsxReadToken();
|
|
65876
65895
|
return;
|
|
65877
65896
|
}
|
|
65878
|
-
if (context ===
|
|
65897
|
+
if (context === types6.j_oTag || context === types6.j_cTag) {
|
|
65879
65898
|
if (isIdentifierStart(code)) {
|
|
65880
65899
|
this.jsxReadWord();
|
|
65881
65900
|
return;
|
|
@@ -65885,7 +65904,7 @@ var require_lib = __commonJS({
|
|
|
65885
65904
|
this.finishToken(141);
|
|
65886
65905
|
return;
|
|
65887
65906
|
}
|
|
65888
|
-
if ((code === 34 || code === 39) && context ===
|
|
65907
|
+
if ((code === 34 || code === 39) && context === types6.j_oTag) {
|
|
65889
65908
|
this.jsxReadString(code);
|
|
65890
65909
|
return;
|
|
65891
65910
|
}
|
|
@@ -65903,17 +65922,17 @@ var require_lib = __commonJS({
|
|
|
65903
65922
|
type
|
|
65904
65923
|
} = this.state;
|
|
65905
65924
|
if (type === 56 && prevType === 140) {
|
|
65906
|
-
context.splice(-2, 2,
|
|
65925
|
+
context.splice(-2, 2, types6.j_cTag);
|
|
65907
65926
|
this.state.canStartJSXElement = false;
|
|
65908
65927
|
} else if (type === 140) {
|
|
65909
|
-
context.push(
|
|
65928
|
+
context.push(types6.j_oTag);
|
|
65910
65929
|
} else if (type === 141) {
|
|
65911
65930
|
const out = context[context.length - 1];
|
|
65912
|
-
if (out ===
|
|
65931
|
+
if (out === types6.j_oTag && prevType === 56 || out === types6.j_cTag) {
|
|
65913
65932
|
context.pop();
|
|
65914
|
-
this.state.canStartJSXElement = context[context.length - 1] ===
|
|
65933
|
+
this.state.canStartJSXElement = context[context.length - 1] === types6.j_expr;
|
|
65915
65934
|
} else {
|
|
65916
|
-
this.setContext(
|
|
65935
|
+
this.setContext(types6.j_expr);
|
|
65917
65936
|
this.state.canStartJSXElement = true;
|
|
65918
65937
|
}
|
|
65919
65938
|
} else {
|
|
@@ -67357,14 +67376,14 @@ var require_lib = __commonJS({
|
|
|
67357
67376
|
tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
|
|
67358
67377
|
const node = this.startNode();
|
|
67359
67378
|
const hasLeadingOperator = this.eat(operator);
|
|
67360
|
-
const
|
|
67379
|
+
const types7 = [];
|
|
67361
67380
|
do {
|
|
67362
|
-
|
|
67381
|
+
types7.push(parseConstituentType());
|
|
67363
67382
|
} while (this.eat(operator));
|
|
67364
|
-
if (
|
|
67365
|
-
return
|
|
67383
|
+
if (types7.length === 1 && !hasLeadingOperator) {
|
|
67384
|
+
return types7[0];
|
|
67366
67385
|
}
|
|
67367
|
-
node.types =
|
|
67386
|
+
node.types = types7;
|
|
67368
67387
|
return this.finishNode(node, kind);
|
|
67369
67388
|
}
|
|
67370
67389
|
tsParseIntersectionTypeOrHigher() {
|
|
@@ -67938,7 +67957,7 @@ var require_lib = __commonJS({
|
|
|
67938
67957
|
this.raise(TSErrors.EmptyTypeArguments, {
|
|
67939
67958
|
at: node
|
|
67940
67959
|
});
|
|
67941
|
-
} else if (!this.state.inType && this.curContext() ===
|
|
67960
|
+
} else if (!this.state.inType && this.curContext() === types6.brace) {
|
|
67942
67961
|
this.reScan_lt_gt();
|
|
67943
67962
|
}
|
|
67944
67963
|
this.expect(48);
|
|
@@ -68615,7 +68634,7 @@ var require_lib = __commonJS({
|
|
|
68615
68634
|
context
|
|
68616
68635
|
} = this.state;
|
|
68617
68636
|
const currentContext = context[context.length - 1];
|
|
68618
|
-
if (currentContext ===
|
|
68637
|
+
if (currentContext === types6.j_oTag || currentContext === types6.j_expr) {
|
|
68619
68638
|
context.pop();
|
|
68620
68639
|
}
|
|
68621
68640
|
}
|
|
@@ -73921,7 +73940,7 @@ var c3_exports7 = {};
|
|
|
73921
73940
|
__export(c3_exports7, {
|
|
73922
73941
|
default: () => c3_default7
|
|
73923
73942
|
});
|
|
73924
|
-
var recast3, npm7, generate7, configure4, updateNuxtConfig, config6, c3_default7;
|
|
73943
|
+
var recast3, npm7, pm, generate7, configure4, updateEnvTypes, updateNuxtConfig, config6, c3_default7;
|
|
73925
73944
|
var init_c37 = __esm({
|
|
73926
73945
|
"templates/nuxt/c3.ts"() {
|
|
73927
73946
|
init_cli();
|
|
@@ -73932,7 +73951,8 @@ var init_c37 = __esm({
|
|
|
73932
73951
|
init_files();
|
|
73933
73952
|
init_packages();
|
|
73934
73953
|
recast3 = __toESM(require_main3());
|
|
73935
|
-
(
|
|
73954
|
+
init_workers();
|
|
73955
|
+
({ npm: npm7, name: pm } = detectPackageManager());
|
|
73936
73956
|
generate7 = async (ctx) => {
|
|
73937
73957
|
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
|
|
73938
73958
|
await runFrameworkGenerator(ctx, [
|
|
@@ -73945,13 +73965,32 @@ var init_c37 = __esm({
|
|
|
73945
73965
|
writeFile2("./.node-version", "17");
|
|
73946
73966
|
logRaw("");
|
|
73947
73967
|
};
|
|
73948
|
-
configure4 = async () => {
|
|
73949
|
-
|
|
73968
|
+
configure4 = async (ctx) => {
|
|
73969
|
+
const packages = ["nitro-cloudflare-dev"];
|
|
73970
|
+
if (pm === "pnpm") {
|
|
73971
|
+
packages.push("h3");
|
|
73972
|
+
}
|
|
73973
|
+
await installPackages(packages, {
|
|
73950
73974
|
dev: true,
|
|
73951
73975
|
startText: "Installing nitro module `nitro-cloudflare-dev`",
|
|
73952
73976
|
doneText: `${brandColor("installed")} ${dim(`via \`${npm7} install\``)}`
|
|
73953
73977
|
});
|
|
73954
73978
|
updateNuxtConfig();
|
|
73979
|
+
updateEnvTypes(ctx);
|
|
73980
|
+
};
|
|
73981
|
+
updateEnvTypes = (ctx) => {
|
|
73982
|
+
const filepath = "env.d.ts";
|
|
73983
|
+
const s = spinner();
|
|
73984
|
+
s.start(`Updating ${filepath}`);
|
|
73985
|
+
let file = readFile(filepath);
|
|
73986
|
+
let typesEntrypoint = `@cloudflare/workers-types/`;
|
|
73987
|
+
const latestEntrypoint = getLatestTypesEntrypoint(ctx);
|
|
73988
|
+
if (latestEntrypoint) {
|
|
73989
|
+
typesEntrypoint += `/${latestEntrypoint}`;
|
|
73990
|
+
}
|
|
73991
|
+
file = file.replace("WORKERS_TYPES_ENTRYPOINT", typesEntrypoint);
|
|
73992
|
+
writeFile2("env.d.ts", file);
|
|
73993
|
+
s.stop(`${brandColor(`updated`)} ${dim(`\`${filepath}\``)}`);
|
|
73955
73994
|
};
|
|
73956
73995
|
updateNuxtConfig = () => {
|
|
73957
73996
|
const s = spinner();
|
|
@@ -74233,38 +74272,74 @@ var c3_exports11 = {};
|
|
|
74233
74272
|
__export(c3_exports11, {
|
|
74234
74273
|
default: () => c3_default11
|
|
74235
74274
|
});
|
|
74236
|
-
var npm11, generate11, config10, c3_default11;
|
|
74275
|
+
var recast5, npm11, generate11, configure7, config10, c3_default11;
|
|
74237
74276
|
var init_c311 = __esm({
|
|
74238
74277
|
"templates/solid/c3.ts"() {
|
|
74239
74278
|
init_cli();
|
|
74279
|
+
init_colors();
|
|
74280
|
+
init_codemod();
|
|
74240
74281
|
init_command();
|
|
74241
74282
|
init_files();
|
|
74242
74283
|
init_packages();
|
|
74284
|
+
recast5 = __toESM(require_main3());
|
|
74243
74285
|
({ npm: npm11 } = detectPackageManager());
|
|
74244
74286
|
generate11 = async (ctx) => {
|
|
74245
|
-
await runFrameworkGenerator(ctx, [ctx.project.name]);
|
|
74287
|
+
await runFrameworkGenerator(ctx, ["-p", ctx.project.name, "-s"]);
|
|
74246
74288
|
logRaw("");
|
|
74247
74289
|
};
|
|
74290
|
+
configure7 = async (ctx) => {
|
|
74291
|
+
usesTypescript(ctx);
|
|
74292
|
+
const filePath = `app.config.${usesTypescript(ctx) ? "ts" : "js"}`;
|
|
74293
|
+
updateStatus(`Updating configuration in ${blue(filePath)}`);
|
|
74294
|
+
transformFile(filePath, {
|
|
74295
|
+
visitCallExpression: function(n2) {
|
|
74296
|
+
const callee = n2.node.callee;
|
|
74297
|
+
if (callee.name !== "defineConfig") {
|
|
74298
|
+
return this.traverse(n2);
|
|
74299
|
+
}
|
|
74300
|
+
const b2 = recast5.types.builders;
|
|
74301
|
+
n2.node.arguments = [
|
|
74302
|
+
b2.objectExpression([
|
|
74303
|
+
b2.objectProperty(
|
|
74304
|
+
b2.identifier("server"),
|
|
74305
|
+
b2.objectExpression([
|
|
74306
|
+
b2.objectProperty(
|
|
74307
|
+
b2.identifier("preset"),
|
|
74308
|
+
b2.stringLiteral("cloudflare-pages")
|
|
74309
|
+
),
|
|
74310
|
+
b2.objectProperty(
|
|
74311
|
+
b2.identifier("rollupConfig"),
|
|
74312
|
+
b2.objectExpression([
|
|
74313
|
+
b2.objectProperty(
|
|
74314
|
+
b2.identifier("external"),
|
|
74315
|
+
b2.arrayExpression([b2.stringLiteral("node:async_hooks")])
|
|
74316
|
+
)
|
|
74317
|
+
])
|
|
74318
|
+
)
|
|
74319
|
+
])
|
|
74320
|
+
)
|
|
74321
|
+
])
|
|
74322
|
+
];
|
|
74323
|
+
return false;
|
|
74324
|
+
}
|
|
74325
|
+
});
|
|
74326
|
+
};
|
|
74248
74327
|
config10 = {
|
|
74249
74328
|
configVersion: 1,
|
|
74250
74329
|
id: "solid",
|
|
74251
74330
|
displayName: "Solid",
|
|
74252
74331
|
platform: "pages",
|
|
74253
|
-
copyFiles: {
|
|
74254
|
-
variants: {
|
|
74255
|
-
js: { path: "./js" },
|
|
74256
|
-
ts: { path: "./ts" }
|
|
74257
|
-
}
|
|
74258
|
-
},
|
|
74259
74332
|
generate: generate11,
|
|
74333
|
+
configure: configure7,
|
|
74260
74334
|
transformPackageJson: async () => ({
|
|
74261
74335
|
scripts: {
|
|
74262
|
-
|
|
74263
|
-
|
|
74336
|
+
preview: `${npm11} run build && npx wrangler pages dev dist ${await compatDateFlag()} --compatibility-flag nodejs_compat`,
|
|
74337
|
+
deploy: `${npm11} run build && wrangler pages deploy ./dist`
|
|
74264
74338
|
}
|
|
74265
74339
|
}),
|
|
74266
74340
|
devScript: "dev",
|
|
74267
|
-
|
|
74341
|
+
deployScript: "deploy",
|
|
74342
|
+
previewScript: "preview",
|
|
74268
74343
|
compatibilityFlags: ["nodejs_compat"]
|
|
74269
74344
|
};
|
|
74270
74345
|
c3_default11 = config10;
|
|
@@ -74276,7 +74351,7 @@ var c3_exports12 = {};
|
|
|
74276
74351
|
__export(c3_exports12, {
|
|
74277
74352
|
default: () => c3_default12
|
|
74278
74353
|
});
|
|
74279
|
-
var import_node_os,
|
|
74354
|
+
var import_node_os, recast6, npm12, generate12, configure8, updateSvelteConfig, updateTypeDefinitions, config11, c3_default12;
|
|
74280
74355
|
var init_c312 = __esm({
|
|
74281
74356
|
"templates/svelte/c3.ts"() {
|
|
74282
74357
|
import_node_os = require("node:os");
|
|
@@ -74286,13 +74361,13 @@ var init_c312 = __esm({
|
|
|
74286
74361
|
init_command();
|
|
74287
74362
|
init_files();
|
|
74288
74363
|
init_packages();
|
|
74289
|
-
|
|
74364
|
+
recast6 = __toESM(require_main3());
|
|
74290
74365
|
({ npm: npm12 } = detectPackageManager());
|
|
74291
74366
|
generate12 = async (ctx) => {
|
|
74292
74367
|
await runFrameworkGenerator(ctx, [ctx.project.name]);
|
|
74293
74368
|
logRaw("");
|
|
74294
74369
|
};
|
|
74295
|
-
|
|
74370
|
+
configure8 = async (ctx) => {
|
|
74296
74371
|
const pkg = `@sveltejs/adapter-cloudflare`;
|
|
74297
74372
|
await installPackages([pkg], {
|
|
74298
74373
|
dev: true,
|
|
@@ -74319,7 +74394,7 @@ var init_c312 = __esm({
|
|
|
74319
74394
|
return;
|
|
74320
74395
|
}
|
|
74321
74396
|
updateStatus(`Updating global type definitions in ${blue("app.d.ts")}`);
|
|
74322
|
-
const b2 =
|
|
74397
|
+
const b2 = recast6.types.builders;
|
|
74323
74398
|
transformFile("src/app.d.ts", {
|
|
74324
74399
|
visitTSModuleDeclaration(n2) {
|
|
74325
74400
|
if (n2.value.id.name === "App" && n2.node.body) {
|
|
@@ -74363,7 +74438,7 @@ var init_c312 = __esm({
|
|
|
74363
74438
|
}
|
|
74364
74439
|
},
|
|
74365
74440
|
generate: generate12,
|
|
74366
|
-
configure:
|
|
74441
|
+
configure: configure8,
|
|
74367
74442
|
transformPackageJson: async (original, ctx) => {
|
|
74368
74443
|
let scripts = {
|
|
74369
74444
|
preview: `${npm12} run build && wrangler pages dev .svelte-kit/cloudflare`,
|
|
@@ -74691,7 +74766,7 @@ async function copyTemplateFiles(ctx) {
|
|
|
74691
74766
|
}
|
|
74692
74767
|
s.stop(`${brandColor("files")} ${dim("copied to project directory")}`);
|
|
74693
74768
|
}
|
|
74694
|
-
var import_fs10, import_promises2, import_os2, import_path12, import_deepmerge, import_degit, defaultSelectVariant, getFrameworkMap, getTemplateMap, selectTemplate, selectFramework, shouldUseTs, processRemoteTemplate, validateTemplate, validateTemplateSrcDirectory, inferTemplateConfig, inferCopyFilesDefinition, downloadRemoteTemplate, updatePackageName, updatePackageScripts, getTemplatePath, isVariantInfo, getCopyFilesDestinationDir;
|
|
74769
|
+
var import_fs10, import_promises2, import_os2, import_path12, import_deepmerge, import_degit, defaultSelectVariant, getFrameworkMap, getTemplateMap, selectTemplate, selectFramework, shouldUseTs, processRemoteTemplate, validateTemplate, validateTemplateSrcDirectory, inferTemplateConfig, inferCopyFilesDefinition, downloadRemoteTemplate, updatePackageName, updatePackageScripts, getTemplatePath, isVariantInfo, getCopyFilesDestinationDir, addWranglerToGitIgnore;
|
|
74695
74770
|
var init_templates = __esm({
|
|
74696
74771
|
"src/templates.ts"() {
|
|
74697
74772
|
import_fs10 = require("fs");
|
|
@@ -74949,6 +75024,45 @@ var init_templates = __esm({
|
|
|
74949
75024
|
}
|
|
74950
75025
|
return copyFiles.destinationDir(ctx);
|
|
74951
75026
|
};
|
|
75027
|
+
addWranglerToGitIgnore = (ctx) => {
|
|
75028
|
+
const gitIgnorePath = `${ctx.project.path}/.gitignore`;
|
|
75029
|
+
const gitIgnorePreExisted = (0, import_fs10.existsSync)(gitIgnorePath);
|
|
75030
|
+
const gitDirExists = directoryExists(`${ctx.project.path}/.git`);
|
|
75031
|
+
if (!gitIgnorePreExisted && !gitDirExists) {
|
|
75032
|
+
return;
|
|
75033
|
+
}
|
|
75034
|
+
if (!gitIgnorePreExisted) {
|
|
75035
|
+
writeFile2(gitIgnorePath, "");
|
|
75036
|
+
}
|
|
75037
|
+
const existingGitIgnoreContent = readFile(gitIgnorePath);
|
|
75038
|
+
const wranglerGitIgnoreFiles = [".wrangler", ".dev.vars"];
|
|
75039
|
+
const wranglerGitIgnoreFilesToAdd = wranglerGitIgnoreFiles.filter(
|
|
75040
|
+
(file) => !existingGitIgnoreContent.match(
|
|
75041
|
+
new RegExp(`
|
|
75042
|
+
${file}${file === ".wrangler" ? "/?" : ""}\\s+(#'*)?`)
|
|
75043
|
+
)
|
|
75044
|
+
);
|
|
75045
|
+
if (wranglerGitIgnoreFilesToAdd.length === 0) {
|
|
75046
|
+
return;
|
|
75047
|
+
}
|
|
75048
|
+
const s = spinner();
|
|
75049
|
+
s.start("Adding Wrangler files to the .gitignore file");
|
|
75050
|
+
const linesToAppend = [
|
|
75051
|
+
"",
|
|
75052
|
+
...!existingGitIgnoreContent.match(/\n\s*$/) ? [""] : []
|
|
75053
|
+
];
|
|
75054
|
+
if (wranglerGitIgnoreFilesToAdd.length === wranglerGitIgnoreFiles.length) {
|
|
75055
|
+
linesToAppend.push("# wrangler files");
|
|
75056
|
+
}
|
|
75057
|
+
wranglerGitIgnoreFilesToAdd.forEach((line) => linesToAppend.push(line));
|
|
75058
|
+
linesToAppend.push("");
|
|
75059
|
+
appendFile(gitIgnorePath, linesToAppend.join("\n"));
|
|
75060
|
+
s.stop(
|
|
75061
|
+
`${brandColor(gitIgnorePreExisted ? "updated" : "created")} ${dim(
|
|
75062
|
+
".gitignore file"
|
|
75063
|
+
)}`
|
|
75064
|
+
);
|
|
75065
|
+
};
|
|
74952
75066
|
}
|
|
74953
75067
|
});
|
|
74954
75068
|
|
|
@@ -80060,7 +80174,7 @@ var runCli = async (args) => {
|
|
|
80060
80174
|
};
|
|
80061
80175
|
var runTemplate = async (ctx) => {
|
|
80062
80176
|
await create(ctx);
|
|
80063
|
-
await
|
|
80177
|
+
await configure9(ctx);
|
|
80064
80178
|
await deploy(ctx);
|
|
80065
80179
|
await printSummary(ctx);
|
|
80066
80180
|
};
|
|
@@ -80076,7 +80190,7 @@ var create = async (ctx) => {
|
|
|
80076
80190
|
await rectifyPmMismatch(ctx);
|
|
80077
80191
|
endSection(`Application created`);
|
|
80078
80192
|
};
|
|
80079
|
-
var
|
|
80193
|
+
var configure9 = async (ctx) => {
|
|
80080
80194
|
startSection("Configuring your application for Cloudflare", "Step 2 of 3");
|
|
80081
80195
|
await installWrangler();
|
|
80082
80196
|
await installWorkersTypes(ctx);
|
|
@@ -80085,6 +80199,7 @@ var configure8 = async (ctx) => {
|
|
|
80085
80199
|
if (template.configure) {
|
|
80086
80200
|
await template.configure({ ...ctx });
|
|
80087
80201
|
}
|
|
80202
|
+
addWranglerToGitIgnore(ctx);
|
|
80088
80203
|
await updatePackageScripts(ctx);
|
|
80089
80204
|
await offerGit(ctx);
|
|
80090
80205
|
await gitCommit(ctx);
|