@storm-software/workspace-tools 1.12.3 → 1.12.4

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.
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
240
240
  }
241
241
  });
242
242
 
243
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-EPAEWGCP.js
243
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-EPAEWGCP.js
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
245
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
246
246
  "use strict";
247
247
  Object.defineProperty(exports, "__esModule", { value: true });
248
248
  var version = "8.0.0";
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
6549
6549
  }
6550
6550
  });
6551
6551
 
6552
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-GQ77QZBO.js
6552
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-GQ77QZBO.js
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6554
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6555
6555
  "use strict";
6556
6556
  Object.defineProperty(exports, "__esModule", { value: true });
6557
6557
  function _interopRequireDefault(obj) {
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
6829
6829
  }
6830
6830
  });
6831
6831
 
6832
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-UIX4URMV.js
6832
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-UIX4URMV.js
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6834
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6835
6835
  "use strict";
6836
6836
  Object.defineProperty(exports, "__esModule", { value: true });
6837
6837
  function _interopRequireWildcard(obj) {
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
7765
7765
  }
7766
7766
  });
7767
7767
 
7768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-7G76EW2R.js
7768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-7G76EW2R.js
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7771
7771
  "use strict";
7772
7772
  Object.defineProperty(exports, "__esModule", { value: true });
7773
7773
  function _interopRequireDefault(obj) {
@@ -247037,6 +247037,731 @@ ${options.prefix}` : "\n" : options.prefix
247037
247037
  }
247038
247038
  });
247039
247039
 
247040
+ // node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
247041
+ var require_vfs_cjs_production_min = __commonJS({
247042
+ "node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js"(exports) {
247043
+ "use strict";
247044
+ function e() {
247045
+ return (e = Object.assign || function(e2) {
247046
+ for (var t2 = 1; t2 < arguments.length; t2++) {
247047
+ var r2 = arguments[t2];
247048
+ for (var i2 in r2)
247049
+ Object.prototype.hasOwnProperty.call(r2, i2) && (e2[i2] = r2[i2]);
247050
+ }
247051
+ return e2;
247052
+ }).apply(this, arguments);
247053
+ }
247054
+ Object.defineProperty(exports, "__esModule", { value: true });
247055
+ var t = false;
247056
+ try {
247057
+ t = "undefined" != typeof localStorage;
247058
+ } catch (e2) {
247059
+ }
247060
+ var r = "undefined" != typeof process;
247061
+ var i = t && localStorage.getItem("DEBUG") || r && process.env.DEBUG ? console.log : function(e2) {
247062
+ return "";
247063
+ };
247064
+ var n = function(e2, t2) {
247065
+ var r2, i2 = e2.lib || [], n2 = ["lib.d.ts", "lib.decorators.d.ts", "lib.decorators.legacy.d.ts", "lib.dom.d.ts", "lib.dom.iterable.d.ts", "lib.webworker.d.ts", "lib.webworker.importscripts.d.ts", "lib.webworker.iterable.d.ts", "lib.scripthost.d.ts", "lib.es5.d.ts", "lib.es6.d.ts", "lib.es2015.collection.d.ts", "lib.es2015.core.d.ts", "lib.es2015.d.ts", "lib.es2015.generator.d.ts", "lib.es2015.iterable.d.ts", "lib.es2015.promise.d.ts", "lib.es2015.proxy.d.ts", "lib.es2015.reflect.d.ts", "lib.es2015.symbol.d.ts", "lib.es2015.symbol.wellknown.d.ts", "lib.es2016.array.include.d.ts", "lib.es2016.d.ts", "lib.es2016.full.d.ts", "lib.es2017.d.ts", "lib.es2017.date.d.ts", "lib.es2017.full.d.ts", "lib.es2017.intl.d.ts", "lib.es2017.object.d.ts", "lib.es2017.sharedmemory.d.ts", "lib.es2017.string.d.ts", "lib.es2017.typedarrays.d.ts", "lib.es2018.asyncgenerator.d.ts", "lib.es2018.asynciterable.d.ts", "lib.es2018.d.ts", "lib.es2018.full.d.ts", "lib.es2018.intl.d.ts", "lib.es2018.promise.d.ts", "lib.es2018.regexp.d.ts", "lib.es2019.array.d.ts", "lib.es2019.d.ts", "lib.es2019.full.d.ts", "lib.es2019.intl.d.ts", "lib.es2019.object.d.ts", "lib.es2019.string.d.ts", "lib.es2019.symbol.d.ts", "lib.es2020.bigint.d.ts", "lib.es2020.d.ts", "lib.es2020.date.d.ts", "lib.es2020.full.d.ts", "lib.es2020.intl.d.ts", "lib.es2020.number.d.ts", "lib.es2020.promise.d.ts", "lib.es2020.sharedmemory.d.ts", "lib.es2020.string.d.ts", "lib.es2020.symbol.wellknown.d.ts", "lib.es2021.d.ts", "lib.es2021.full.d.ts", "lib.es2021.intl.d.ts", "lib.es2021.promise.d.ts", "lib.es2021.string.d.ts", "lib.es2021.weakref.d.ts", "lib.es2022.array.d.ts", "lib.es2022.d.ts", "lib.es2022.error.d.ts", "lib.es2022.full.d.ts", "lib.es2022.intl.d.ts", "lib.es2022.object.d.ts", "lib.es2022.regexp.d.ts", "lib.es2022.sharedmemory.d.ts", "lib.es2022.string.d.ts", "lib.es2023.array.d.ts", "lib.es2023.collection.d.ts", "lib.es2023.d.ts", "lib.es2023.full.d.ts", "lib.esnext.array.d.ts", "lib.esnext.asynciterable.d.ts", "lib.esnext.bigint.d.ts", "lib.esnext.d.ts", "lib.esnext.decorators.d.ts", "lib.esnext.disposable.d.ts", "lib.esnext.full.d.ts", "lib.esnext.intl.d.ts", "lib.esnext.promise.d.ts", "lib.esnext.string.d.ts", "lib.esnext.symbol.d.ts", "lib.esnext.weakref.d.ts"], s2 = t2.ScriptTarget[e2.target || t2.ScriptTarget.ES5], o2 = n2.filter(function(e3) {
247066
+ return e3.startsWith("lib." + s2.toLowerCase());
247067
+ }), l2 = n2.indexOf(o2.pop()), a2 = ((r2 = i2.map(function(e3) {
247068
+ var t3 = n2.filter(function(t4) {
247069
+ return t4.startsWith("lib." + e3.toLowerCase());
247070
+ });
247071
+ return 0 === t3.length ? 0 : n2.indexOf(t3.pop());
247072
+ })) && r2.length ? r2.reduce(function(e3, t3) {
247073
+ return t3 > e3 ? t3 : e3;
247074
+ }) : void 0) || 0, u2 = Math.max(l2, a2);
247075
+ return n2.slice(0, u2 + 1);
247076
+ };
247077
+ var s = function(e2, t2) {
247078
+ var r2 = f(), i2 = b();
247079
+ (function e3(t3) {
247080
+ var n2 = [];
247081
+ return i2.readdirSync(t3).forEach(function(s2) {
247082
+ s2 = r2.join(t3, s2);
247083
+ var o2 = i2.statSync(s2);
247084
+ o2 && o2.isDirectory() ? n2 = n2.concat(e3(s2)) : n2.push(s2);
247085
+ }), n2;
247086
+ })(t2).forEach(function(n2) {
247087
+ var s2 = "/node_modules/@types" + n2.replace(t2, ""), o2 = i2.readFileSync(n2, "utf8");
247088
+ [".ts", ".tsx"].includes(r2.extname(s2)) && e2.set(s2, o2);
247089
+ });
247090
+ };
247091
+ function o(e2) {
247092
+ throw new Error("Method '" + e2 + "' is not implemented.");
247093
+ }
247094
+ function l(e2, t2) {
247095
+ return function() {
247096
+ for (var r2 = arguments.length, n2 = new Array(r2), s2 = 0; s2 < r2; s2++)
247097
+ n2[s2] = arguments[s2];
247098
+ var o2 = t2.apply(void 0, n2), l2 = "string" == typeof o2 ? o2.slice(0, 80) + "..." : o2;
247099
+ return i.apply(void 0, ["> " + e2].concat(n2)), i("< " + l2), o2;
247100
+ };
247101
+ }
247102
+ var a = function(t2) {
247103
+ return e({}, t2.getDefaultCompilerOptions(), { jsx: t2.JsxEmit.React, strict: true, esModuleInterop: true, module: t2.ModuleKind.ESNext, suppressOutputPathCheck: true, skipLibCheck: true, skipDefaultLibCheck: true, moduleResolution: t2.ModuleResolutionKind.NodeJs });
247104
+ };
247105
+ var u = function(e2) {
247106
+ return e2.replace("/", "/lib.").toLowerCase();
247107
+ };
247108
+ function c(t2, r2, i2) {
247109
+ var n2 = /* @__PURE__ */ new Map();
247110
+ return { compilerHost: e({}, t2, { getCanonicalFileName: function(e2) {
247111
+ return e2;
247112
+ }, getDefaultLibFileName: function() {
247113
+ return "/" + i2.getDefaultLibFileName(r2);
247114
+ }, getDirectories: function() {
247115
+ return [];
247116
+ }, getNewLine: function() {
247117
+ return t2.newLine;
247118
+ }, getSourceFile: function(e2) {
247119
+ return n2.get(e2) || (s2 = i2.createSourceFile(e2, t2.readFile(e2), r2.target || a(i2).target, false), n2.set(s2.fileName, s2), s2);
247120
+ var s2;
247121
+ }, useCaseSensitiveFileNames: function() {
247122
+ return t2.useCaseSensitiveFileNames;
247123
+ } }), updateFile: function(e2) {
247124
+ var r3 = n2.has(e2.fileName);
247125
+ return t2.writeFile(e2.fileName, e2.text), n2.set(e2.fileName, e2), r3;
247126
+ } };
247127
+ }
247128
+ function d(t2, r2, i2, n2, s2) {
247129
+ var o2 = [].concat(r2), l2 = c(t2, i2, n2), a2 = l2.compilerHost, u2 = l2.updateFile, d2 = /* @__PURE__ */ new Map(), f2 = 0;
247130
+ return { languageServiceHost: e({}, a2, { getProjectVersion: function() {
247131
+ return f2.toString();
247132
+ }, getCompilationSettings: function() {
247133
+ return i2;
247134
+ }, getCustomTransformers: function() {
247135
+ return s2;
247136
+ }, getScriptFileNames: function() {
247137
+ return o2.slice();
247138
+ }, getScriptSnapshot: function(e2) {
247139
+ var r3 = t2.readFile(e2);
247140
+ if (r3)
247141
+ return n2.ScriptSnapshot.fromString(r3);
247142
+ }, getScriptVersion: function(e2) {
247143
+ return d2.get(e2) || "0";
247144
+ }, writeFile: t2.writeFile }), updateFile: function(e2) {
247145
+ f2++, d2.set(e2.fileName, f2.toString()), o2.includes(e2.fileName) || o2.push(e2.fileName), u2(e2);
247146
+ } };
247147
+ }
247148
+ var f = function() {
247149
+ return require(String.fromCharCode(112, 97, 116, 104));
247150
+ };
247151
+ var b = function() {
247152
+ return require(String.fromCharCode(102, 115));
247153
+ };
247154
+ exports.addAllFilesFromFolder = s, exports.addFilesForTypesIntoFolder = function(e2) {
247155
+ return s(e2, "node_modules/@types");
247156
+ }, exports.createDefaultMapFromCDN = function(e2, t2, r2, i2, s2, o2, l2) {
247157
+ var a2 = o2 || fetch, u2 = /* @__PURE__ */ new Map(), c2 = n(e2, i2), d2 = "https://typescript.azureedge.net/cdn/" + t2 + "/typescript/lib/";
247158
+ return (r2 ? function() {
247159
+ var e3 = l2 || localStorage;
247160
+ return Object.keys(e3).forEach(function(r3) {
247161
+ r3.startsWith("ts-lib-") && !r3.startsWith("ts-lib-" + t2) && e3.removeItem(r3);
247162
+ }), Promise.all(c2.map(function(r3) {
247163
+ var i3, n2 = "ts-lib-" + t2 + "-" + r3, o3 = e3.getItem(n2);
247164
+ return o3 ? Promise.resolve((i3 = o3, s2 ? s2.decompressFromUTF16(i3) : i3)) : a2(d2 + r3).then(function(e4) {
247165
+ return e4.text();
247166
+ }).then(function(t3) {
247167
+ var r4;
247168
+ return e3.setItem(n2, (r4 = t3, s2 ? s2.compressToUTF16(r4) : r4)), t3;
247169
+ }).catch(function() {
247170
+ });
247171
+ })).then(function(e4) {
247172
+ e4.forEach(function(e5, t3) {
247173
+ e5 && u2.set("/" + c2[t3], e5);
247174
+ });
247175
+ });
247176
+ } : function() {
247177
+ return Promise.all(c2.map(function(e3) {
247178
+ return a2(d2 + e3).then(function(e4) {
247179
+ return e4.text();
247180
+ });
247181
+ })).then(function(e3) {
247182
+ e3.forEach(function(e4, t3) {
247183
+ return u2.set("/" + c2[t3], e4);
247184
+ });
247185
+ }).catch(function() {
247186
+ });
247187
+ })().then(function() {
247188
+ return u2;
247189
+ });
247190
+ }, exports.createDefaultMapFromNodeModules = function(e2, t2, r2) {
247191
+ var i2 = f(), n2 = b(), s2 = n2.readdirSync(r2 || i2.dirname(require.resolve("typescript"))).filter(function(e3) {
247192
+ return e3.startsWith("lib.") && e3.endsWith(".d.ts");
247193
+ }), o2 = /* @__PURE__ */ new Map();
247194
+ return s2.forEach(function(e3) {
247195
+ o2.set("/" + e3, function(e4) {
247196
+ var t3 = r2 || i2.dirname(require.resolve("typescript"));
247197
+ return n2.readFileSync(i2.join(t3, e4), "utf8");
247198
+ }(e3));
247199
+ }), o2;
247200
+ }, exports.createFSBackedSystem = function(e2, t2, r2, i2) {
247201
+ var n2 = t2 + "/vfs", s2 = f(), a2 = r2.sys, u2 = null != i2 ? i2 : s2.dirname(require.resolve("typescript"));
247202
+ return { name: "fs-vfs", root: n2, args: [], createDirectory: function() {
247203
+ return o("createDirectory");
247204
+ }, directoryExists: l("directoryExists", function(t3) {
247205
+ return Array.from(e2.keys()).some(function(e3) {
247206
+ return e3.startsWith(t3);
247207
+ }) || a2.directoryExists(t3);
247208
+ }), exit: a2.exit, fileExists: l("fileExists", function(t3) {
247209
+ if (e2.has(t3))
247210
+ return true;
247211
+ if (t3.includes("tsconfig.json") || t3.includes("tsconfig.json"))
247212
+ return false;
247213
+ if (t3.startsWith("/lib")) {
247214
+ var r3 = u2 + "/" + t3.replace("/", "");
247215
+ return a2.fileExists(r3);
247216
+ }
247217
+ return a2.fileExists(t3);
247218
+ }), getCurrentDirectory: function() {
247219
+ return n2;
247220
+ }, getDirectories: a2.getDirectories, getExecutingFilePath: function() {
247221
+ return o("getExecutingFilePath");
247222
+ }, readDirectory: l("readDirectory", function() {
247223
+ return "/" === (arguments.length <= 0 ? void 0 : arguments[0]) ? Array.from(e2.keys()) : a2.readDirectory.apply(a2, arguments);
247224
+ }), readFile: l("readFile", function(t3) {
247225
+ if (e2.has(t3))
247226
+ return e2.get(t3);
247227
+ if (t3.startsWith("/lib")) {
247228
+ var r3 = u2 + "/" + t3.replace("/", ""), i3 = a2.readFile(r3);
247229
+ if (!i3) {
247230
+ var n3 = a2.readDirectory(u2);
247231
+ throw new Error("TSVFS: A request was made for " + r3 + " but there wasn't a file found in the file map. You likely have a mismatch in the compiler options for the CDN download vs the compiler program. Existing Libs: " + n3 + ".");
247232
+ }
247233
+ return i3;
247234
+ }
247235
+ return a2.readFile(t3);
247236
+ }), resolvePath: function(t3) {
247237
+ return e2.has(t3) ? t3 : a2.resolvePath(t3);
247238
+ }, newLine: "\n", useCaseSensitiveFileNames: true, write: function() {
247239
+ return o("write");
247240
+ }, writeFile: function(t3, r3) {
247241
+ e2.set(t3, r3);
247242
+ } };
247243
+ }, exports.createSystem = function(e2) {
247244
+ return { args: [], createDirectory: function() {
247245
+ return o("createDirectory");
247246
+ }, directoryExists: l("directoryExists", function(t2) {
247247
+ return Array.from(e2.keys()).some(function(e3) {
247248
+ return e3.startsWith(t2);
247249
+ });
247250
+ }), exit: function() {
247251
+ return o("exit");
247252
+ }, fileExists: l("fileExists", function(t2) {
247253
+ return e2.has(t2) || e2.has(u(t2));
247254
+ }), getCurrentDirectory: function() {
247255
+ return "/";
247256
+ }, getDirectories: function() {
247257
+ return [];
247258
+ }, getExecutingFilePath: function() {
247259
+ return o("getExecutingFilePath");
247260
+ }, readDirectory: l("readDirectory", function(t2) {
247261
+ return "/" === t2 ? Array.from(e2.keys()) : [];
247262
+ }), readFile: l("readFile", function(t2) {
247263
+ return e2.get(t2) || e2.get(u(t2));
247264
+ }), resolvePath: function(e3) {
247265
+ return e3;
247266
+ }, newLine: "\n", useCaseSensitiveFileNames: true, write: function() {
247267
+ return o("write");
247268
+ }, writeFile: function(t2, r2) {
247269
+ e2.set(t2, r2);
247270
+ } };
247271
+ }, exports.createVirtualCompilerHost = c, exports.createVirtualLanguageServiceHost = d, exports.createVirtualTypeScriptEnvironment = function(t2, r2, i2, n2, s2) {
247272
+ void 0 === n2 && (n2 = {});
247273
+ var o2 = e({}, a(i2), n2), l2 = d(t2, r2, o2, i2, s2), u2 = l2.updateFile, f2 = i2.createLanguageService(l2.languageServiceHost), b2 = f2.getCompilerOptionsDiagnostics();
247274
+ if (b2.length) {
247275
+ var p = c(t2, n2, i2);
247276
+ throw new Error(i2.formatDiagnostics(b2, p.compilerHost));
247277
+ }
247278
+ return { name: "vfs", sys: t2, languageService: f2, getSourceFile: function(e2) {
247279
+ var t3;
247280
+ return null == (t3 = f2.getProgram()) ? void 0 : t3.getSourceFile(e2);
247281
+ }, createFile: function(e2, t3) {
247282
+ u2(i2.createSourceFile(e2, t3, o2.target, false));
247283
+ }, updateFile: function(e2, t3, r3) {
247284
+ var n3 = f2.getProgram().getSourceFile(e2);
247285
+ if (!n3)
247286
+ throw new Error("Did not find a source file for " + e2);
247287
+ var s3 = n3.text, o3 = null != r3 ? r3 : i2.createTextSpan(0, s3.length), l3 = s3.slice(0, o3.start) + t3 + s3.slice(o3.start + o3.length), a2 = i2.updateSourceFile(n3, l3, { span: o3, newLength: t3.length });
247288
+ u2(a2);
247289
+ } };
247290
+ }, exports.knownLibFilesForCompilerOptions = n;
247291
+ }
247292
+ });
247293
+
247294
+ // node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.development.js
247295
+ var require_vfs_cjs_development = __commonJS({
247296
+ "node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.development.js"(exports) {
247297
+ "use strict";
247298
+ Object.defineProperty(exports, "__esModule", { value: true });
247299
+ function _extends() {
247300
+ _extends = Object.assign || function(target) {
247301
+ for (var i = 1; i < arguments.length; i++) {
247302
+ var source = arguments[i];
247303
+ for (var key in source) {
247304
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
247305
+ target[key] = source[key];
247306
+ }
247307
+ }
247308
+ }
247309
+ return target;
247310
+ };
247311
+ return _extends.apply(this, arguments);
247312
+ }
247313
+ var hasLocalStorage = false;
247314
+ try {
247315
+ hasLocalStorage = typeof localStorage !== "undefined";
247316
+ } catch (error) {
247317
+ }
247318
+ var hasProcess = typeof process !== "undefined";
247319
+ var shouldDebug = hasLocalStorage && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && process.env.DEBUG;
247320
+ var debugLog = shouldDebug ? console.log : function(_message) {
247321
+ return "";
247322
+ };
247323
+ function createVirtualTypeScriptEnvironment(sys, rootFiles, ts, compilerOptions, customTransformers) {
247324
+ if (compilerOptions === void 0) {
247325
+ compilerOptions = {};
247326
+ }
247327
+ var mergedCompilerOpts = _extends({}, defaultCompilerOptions(ts), compilerOptions);
247328
+ var _createVirtualLanguag = createVirtualLanguageServiceHost(sys, rootFiles, mergedCompilerOpts, ts, customTransformers), languageServiceHost = _createVirtualLanguag.languageServiceHost, _updateFile = _createVirtualLanguag.updateFile;
247329
+ var languageService = ts.createLanguageService(languageServiceHost);
247330
+ var diagnostics = languageService.getCompilerOptionsDiagnostics();
247331
+ if (diagnostics.length) {
247332
+ var compilerHost = createVirtualCompilerHost(sys, compilerOptions, ts);
247333
+ throw new Error(ts.formatDiagnostics(diagnostics, compilerHost.compilerHost));
247334
+ }
247335
+ return {
247336
+ // @ts-ignore
247337
+ name: "vfs",
247338
+ sys,
247339
+ languageService,
247340
+ getSourceFile: function getSourceFile(fileName) {
247341
+ var _languageService$getP;
247342
+ return (_languageService$getP = languageService.getProgram()) == null ? void 0 : _languageService$getP.getSourceFile(fileName);
247343
+ },
247344
+ createFile: function createFile(fileName, content) {
247345
+ _updateFile(ts.createSourceFile(fileName, content, mergedCompilerOpts.target, false));
247346
+ },
247347
+ updateFile: function updateFile(fileName, content, optPrevTextSpan) {
247348
+ var prevSourceFile = languageService.getProgram().getSourceFile(fileName);
247349
+ if (!prevSourceFile) {
247350
+ throw new Error("Did not find a source file for " + fileName);
247351
+ }
247352
+ var prevFullContents = prevSourceFile.text;
247353
+ var prevTextSpan = optPrevTextSpan != null ? optPrevTextSpan : ts.createTextSpan(0, prevFullContents.length);
247354
+ var newText = prevFullContents.slice(0, prevTextSpan.start) + content + prevFullContents.slice(prevTextSpan.start + prevTextSpan.length);
247355
+ var newSourceFile = ts.updateSourceFile(prevSourceFile, newText, {
247356
+ span: prevTextSpan,
247357
+ newLength: content.length
247358
+ });
247359
+ _updateFile(newSourceFile);
247360
+ }
247361
+ };
247362
+ }
247363
+ var knownLibFilesForCompilerOptions = function knownLibFilesForCompilerOptions2(compilerOptions, ts) {
247364
+ var target = compilerOptions.target || ts.ScriptTarget.ES5;
247365
+ var lib = compilerOptions.lib || [];
247366
+ var files = ["lib.d.ts", "lib.decorators.d.ts", "lib.decorators.legacy.d.ts", "lib.dom.d.ts", "lib.dom.iterable.d.ts", "lib.webworker.d.ts", "lib.webworker.importscripts.d.ts", "lib.webworker.iterable.d.ts", "lib.scripthost.d.ts", "lib.es5.d.ts", "lib.es6.d.ts", "lib.es2015.collection.d.ts", "lib.es2015.core.d.ts", "lib.es2015.d.ts", "lib.es2015.generator.d.ts", "lib.es2015.iterable.d.ts", "lib.es2015.promise.d.ts", "lib.es2015.proxy.d.ts", "lib.es2015.reflect.d.ts", "lib.es2015.symbol.d.ts", "lib.es2015.symbol.wellknown.d.ts", "lib.es2016.array.include.d.ts", "lib.es2016.d.ts", "lib.es2016.full.d.ts", "lib.es2017.d.ts", "lib.es2017.date.d.ts", "lib.es2017.full.d.ts", "lib.es2017.intl.d.ts", "lib.es2017.object.d.ts", "lib.es2017.sharedmemory.d.ts", "lib.es2017.string.d.ts", "lib.es2017.typedarrays.d.ts", "lib.es2018.asyncgenerator.d.ts", "lib.es2018.asynciterable.d.ts", "lib.es2018.d.ts", "lib.es2018.full.d.ts", "lib.es2018.intl.d.ts", "lib.es2018.promise.d.ts", "lib.es2018.regexp.d.ts", "lib.es2019.array.d.ts", "lib.es2019.d.ts", "lib.es2019.full.d.ts", "lib.es2019.intl.d.ts", "lib.es2019.object.d.ts", "lib.es2019.string.d.ts", "lib.es2019.symbol.d.ts", "lib.es2020.bigint.d.ts", "lib.es2020.d.ts", "lib.es2020.date.d.ts", "lib.es2020.full.d.ts", "lib.es2020.intl.d.ts", "lib.es2020.number.d.ts", "lib.es2020.promise.d.ts", "lib.es2020.sharedmemory.d.ts", "lib.es2020.string.d.ts", "lib.es2020.symbol.wellknown.d.ts", "lib.es2021.d.ts", "lib.es2021.full.d.ts", "lib.es2021.intl.d.ts", "lib.es2021.promise.d.ts", "lib.es2021.string.d.ts", "lib.es2021.weakref.d.ts", "lib.es2022.array.d.ts", "lib.es2022.d.ts", "lib.es2022.error.d.ts", "lib.es2022.full.d.ts", "lib.es2022.intl.d.ts", "lib.es2022.object.d.ts", "lib.es2022.regexp.d.ts", "lib.es2022.sharedmemory.d.ts", "lib.es2022.string.d.ts", "lib.es2023.array.d.ts", "lib.es2023.collection.d.ts", "lib.es2023.d.ts", "lib.es2023.full.d.ts", "lib.esnext.array.d.ts", "lib.esnext.asynciterable.d.ts", "lib.esnext.bigint.d.ts", "lib.esnext.d.ts", "lib.esnext.decorators.d.ts", "lib.esnext.disposable.d.ts", "lib.esnext.full.d.ts", "lib.esnext.intl.d.ts", "lib.esnext.promise.d.ts", "lib.esnext.string.d.ts", "lib.esnext.symbol.d.ts", "lib.esnext.weakref.d.ts"];
247367
+ var targetToCut = ts.ScriptTarget[target];
247368
+ var matches = files.filter(function(f) {
247369
+ return f.startsWith("lib." + targetToCut.toLowerCase());
247370
+ });
247371
+ var targetCutIndex = files.indexOf(matches.pop());
247372
+ var getMax = function getMax2(array) {
247373
+ return array && array.length ? array.reduce(function(max, current) {
247374
+ return current > max ? current : max;
247375
+ }) : void 0;
247376
+ };
247377
+ var indexesForCutting = lib.map(function(lib2) {
247378
+ var matches2 = files.filter(function(f) {
247379
+ return f.startsWith("lib." + lib2.toLowerCase());
247380
+ });
247381
+ if (matches2.length === 0)
247382
+ return 0;
247383
+ var cutIndex = files.indexOf(matches2.pop());
247384
+ return cutIndex;
247385
+ });
247386
+ var libCutIndex = getMax(indexesForCutting) || 0;
247387
+ var finalCutIndex = Math.max(targetCutIndex, libCutIndex);
247388
+ return files.slice(0, finalCutIndex + 1);
247389
+ };
247390
+ var createDefaultMapFromNodeModules = function createDefaultMapFromNodeModules2(_compilerOptions, _ts, tsLibDirectory) {
247391
+ var path2 = requirePath();
247392
+ var fs = requireFS();
247393
+ var getLib = function getLib2(name) {
247394
+ var lib = tsLibDirectory || path2.dirname(require.resolve("typescript"));
247395
+ return fs.readFileSync(path2.join(lib, name), "utf8");
247396
+ };
247397
+ var libFiles = fs.readdirSync(tsLibDirectory || path2.dirname(require.resolve("typescript")));
247398
+ var knownLibFiles = libFiles.filter(function(f) {
247399
+ return f.startsWith("lib.") && f.endsWith(".d.ts");
247400
+ });
247401
+ var fsMap = /* @__PURE__ */ new Map();
247402
+ knownLibFiles.forEach(function(lib) {
247403
+ fsMap.set("/" + lib, getLib(lib));
247404
+ });
247405
+ return fsMap;
247406
+ };
247407
+ var addAllFilesFromFolder = function addAllFilesFromFolder2(map, workingDir) {
247408
+ var path2 = requirePath();
247409
+ var fs = requireFS();
247410
+ var walk = function walk2(dir) {
247411
+ var results = [];
247412
+ var list = fs.readdirSync(dir);
247413
+ list.forEach(function(file) {
247414
+ file = path2.join(dir, file);
247415
+ var stat = fs.statSync(file);
247416
+ if (stat && stat.isDirectory()) {
247417
+ results = results.concat(walk2(file));
247418
+ } else {
247419
+ results.push(file);
247420
+ }
247421
+ });
247422
+ return results;
247423
+ };
247424
+ var allFiles = walk(workingDir);
247425
+ allFiles.forEach(function(lib) {
247426
+ var fsPath = "/node_modules/@types" + lib.replace(workingDir, "");
247427
+ var content = fs.readFileSync(lib, "utf8");
247428
+ var validExtensions = [".ts", ".tsx"];
247429
+ if (validExtensions.includes(path2.extname(fsPath))) {
247430
+ map.set(fsPath, content);
247431
+ }
247432
+ });
247433
+ };
247434
+ var addFilesForTypesIntoFolder = function addFilesForTypesIntoFolder2(map) {
247435
+ return addAllFilesFromFolder(map, "node_modules/@types");
247436
+ };
247437
+ var createDefaultMapFromCDN = function createDefaultMapFromCDN2(options, version, cache, ts, lzstring, fetcher, storer) {
247438
+ var fetchlike = fetcher || fetch;
247439
+ var fsMap = /* @__PURE__ */ new Map();
247440
+ var files = knownLibFilesForCompilerOptions(options, ts);
247441
+ var prefix = "https://typescript.azureedge.net/cdn/" + version + "/typescript/lib/";
247442
+ function zip(str) {
247443
+ return lzstring ? lzstring.compressToUTF16(str) : str;
247444
+ }
247445
+ function unzip(str) {
247446
+ return lzstring ? lzstring.decompressFromUTF16(str) : str;
247447
+ }
247448
+ function uncached() {
247449
+ return Promise.all(files.map(function(lib) {
247450
+ return fetchlike(prefix + lib).then(function(resp) {
247451
+ return resp.text();
247452
+ });
247453
+ })).then(function(contents) {
247454
+ contents.forEach(function(text, index) {
247455
+ return fsMap.set("/" + files[index], text);
247456
+ });
247457
+ })["catch"](function() {
247458
+ });
247459
+ }
247460
+ function cached() {
247461
+ var storelike = storer || localStorage;
247462
+ var keys = Object.keys(storelike);
247463
+ keys.forEach(function(key) {
247464
+ if (key.startsWith("ts-lib-") && !key.startsWith("ts-lib-" + version)) {
247465
+ storelike.removeItem(key);
247466
+ }
247467
+ });
247468
+ return Promise.all(files.map(function(lib) {
247469
+ var cacheKey = "ts-lib-" + version + "-" + lib;
247470
+ var content = storelike.getItem(cacheKey);
247471
+ if (!content) {
247472
+ return fetchlike(prefix + lib).then(function(resp) {
247473
+ return resp.text();
247474
+ }).then(function(t) {
247475
+ storelike.setItem(cacheKey, zip(t));
247476
+ return t;
247477
+ })["catch"](function() {
247478
+ });
247479
+ } else {
247480
+ return Promise.resolve(unzip(content));
247481
+ }
247482
+ })).then(function(contents) {
247483
+ contents.forEach(function(text, index) {
247484
+ if (text) {
247485
+ var name = "/" + files[index];
247486
+ fsMap.set(name, text);
247487
+ }
247488
+ });
247489
+ });
247490
+ }
247491
+ var func = cache ? cached : uncached;
247492
+ return func().then(function() {
247493
+ return fsMap;
247494
+ });
247495
+ };
247496
+ function notImplemented(methodName) {
247497
+ throw new Error("Method '" + methodName + "' is not implemented.");
247498
+ }
247499
+ function audit(name, fn) {
247500
+ return function() {
247501
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
247502
+ args[_key] = arguments[_key];
247503
+ }
247504
+ var res = fn.apply(void 0, args);
247505
+ var smallres = typeof res === "string" ? res.slice(0, 80) + "..." : res;
247506
+ debugLog.apply(void 0, ["> " + name].concat(args));
247507
+ debugLog("< " + smallres);
247508
+ return res;
247509
+ };
247510
+ }
247511
+ var defaultCompilerOptions = function defaultCompilerOptions2(ts) {
247512
+ return _extends({}, ts.getDefaultCompilerOptions(), {
247513
+ jsx: ts.JsxEmit.React,
247514
+ strict: true,
247515
+ esModuleInterop: true,
247516
+ module: ts.ModuleKind.ESNext,
247517
+ suppressOutputPathCheck: true,
247518
+ skipLibCheck: true,
247519
+ skipDefaultLibCheck: true,
247520
+ moduleResolution: ts.ModuleResolutionKind.NodeJs
247521
+ });
247522
+ };
247523
+ var libize = function libize2(path2) {
247524
+ return path2.replace("/", "/lib.").toLowerCase();
247525
+ };
247526
+ function createSystem(files) {
247527
+ return {
247528
+ args: [],
247529
+ createDirectory: function createDirectory() {
247530
+ return notImplemented("createDirectory");
247531
+ },
247532
+ // TODO: could make a real file tree
247533
+ directoryExists: audit("directoryExists", function(directory) {
247534
+ return Array.from(files.keys()).some(function(path2) {
247535
+ return path2.startsWith(directory);
247536
+ });
247537
+ }),
247538
+ exit: function exit() {
247539
+ return notImplemented("exit");
247540
+ },
247541
+ fileExists: audit("fileExists", function(fileName) {
247542
+ return files.has(fileName) || files.has(libize(fileName));
247543
+ }),
247544
+ getCurrentDirectory: function getCurrentDirectory() {
247545
+ return "/";
247546
+ },
247547
+ getDirectories: function getDirectories() {
247548
+ return [];
247549
+ },
247550
+ getExecutingFilePath: function getExecutingFilePath() {
247551
+ return notImplemented("getExecutingFilePath");
247552
+ },
247553
+ readDirectory: audit("readDirectory", function(directory) {
247554
+ return directory === "/" ? Array.from(files.keys()) : [];
247555
+ }),
247556
+ readFile: audit("readFile", function(fileName) {
247557
+ return files.get(fileName) || files.get(libize(fileName));
247558
+ }),
247559
+ resolvePath: function resolvePath(path2) {
247560
+ return path2;
247561
+ },
247562
+ newLine: "\n",
247563
+ useCaseSensitiveFileNames: true,
247564
+ write: function write() {
247565
+ return notImplemented("write");
247566
+ },
247567
+ writeFile: function writeFile(fileName, contents) {
247568
+ files.set(fileName, contents);
247569
+ }
247570
+ };
247571
+ }
247572
+ function createFSBackedSystem(files, _projectRoot, ts, tsLibDirectory) {
247573
+ var root = _projectRoot + "/vfs";
247574
+ var path2 = requirePath();
247575
+ var nodeSys = ts.sys;
247576
+ var tsLib = tsLibDirectory != null ? tsLibDirectory : path2.dirname(require.resolve("typescript"));
247577
+ return {
247578
+ // @ts-ignore
247579
+ name: "fs-vfs",
247580
+ root,
247581
+ args: [],
247582
+ createDirectory: function createDirectory() {
247583
+ return notImplemented("createDirectory");
247584
+ },
247585
+ // TODO: could make a real file tree
247586
+ directoryExists: audit("directoryExists", function(directory) {
247587
+ return Array.from(files.keys()).some(function(path3) {
247588
+ return path3.startsWith(directory);
247589
+ }) || nodeSys.directoryExists(directory);
247590
+ }),
247591
+ exit: nodeSys.exit,
247592
+ fileExists: audit("fileExists", function(fileName) {
247593
+ if (files.has(fileName))
247594
+ return true;
247595
+ if (fileName.includes("tsconfig.json") || fileName.includes("tsconfig.json"))
247596
+ return false;
247597
+ if (fileName.startsWith("/lib")) {
247598
+ var tsLibName = tsLib + "/" + fileName.replace("/", "");
247599
+ return nodeSys.fileExists(tsLibName);
247600
+ }
247601
+ return nodeSys.fileExists(fileName);
247602
+ }),
247603
+ getCurrentDirectory: function getCurrentDirectory() {
247604
+ return root;
247605
+ },
247606
+ getDirectories: nodeSys.getDirectories,
247607
+ getExecutingFilePath: function getExecutingFilePath() {
247608
+ return notImplemented("getExecutingFilePath");
247609
+ },
247610
+ readDirectory: audit("readDirectory", function() {
247611
+ if ((arguments.length <= 0 ? void 0 : arguments[0]) === "/") {
247612
+ return Array.from(files.keys());
247613
+ } else {
247614
+ return nodeSys.readDirectory.apply(nodeSys, arguments);
247615
+ }
247616
+ }),
247617
+ readFile: audit("readFile", function(fileName) {
247618
+ if (files.has(fileName))
247619
+ return files.get(fileName);
247620
+ if (fileName.startsWith("/lib")) {
247621
+ var tsLibName = tsLib + "/" + fileName.replace("/", "");
247622
+ var result = nodeSys.readFile(tsLibName);
247623
+ if (!result) {
247624
+ var libs = nodeSys.readDirectory(tsLib);
247625
+ throw new Error("TSVFS: A request was made for " + tsLibName + " but there wasn't a file found in the file map. You likely have a mismatch in the compiler options for the CDN download vs the compiler program. Existing Libs: " + libs + ".");
247626
+ }
247627
+ return result;
247628
+ }
247629
+ return nodeSys.readFile(fileName);
247630
+ }),
247631
+ resolvePath: function resolvePath(path3) {
247632
+ if (files.has(path3))
247633
+ return path3;
247634
+ return nodeSys.resolvePath(path3);
247635
+ },
247636
+ newLine: "\n",
247637
+ useCaseSensitiveFileNames: true,
247638
+ write: function write() {
247639
+ return notImplemented("write");
247640
+ },
247641
+ writeFile: function writeFile(fileName, contents) {
247642
+ files.set(fileName, contents);
247643
+ }
247644
+ };
247645
+ }
247646
+ function createVirtualCompilerHost(sys, compilerOptions, ts) {
247647
+ var sourceFiles = /* @__PURE__ */ new Map();
247648
+ var save = function save2(sourceFile) {
247649
+ sourceFiles.set(sourceFile.fileName, sourceFile);
247650
+ return sourceFile;
247651
+ };
247652
+ var vHost = {
247653
+ compilerHost: _extends({}, sys, {
247654
+ getCanonicalFileName: function getCanonicalFileName(fileName) {
247655
+ return fileName;
247656
+ },
247657
+ getDefaultLibFileName: function getDefaultLibFileName() {
247658
+ return "/" + ts.getDefaultLibFileName(compilerOptions);
247659
+ },
247660
+ // getDefaultLibLocation: () => '/',
247661
+ getDirectories: function getDirectories() {
247662
+ return [];
247663
+ },
247664
+ getNewLine: function getNewLine() {
247665
+ return sys.newLine;
247666
+ },
247667
+ getSourceFile: function getSourceFile(fileName) {
247668
+ return sourceFiles.get(fileName) || save(ts.createSourceFile(fileName, sys.readFile(fileName), compilerOptions.target || defaultCompilerOptions(ts).target, false));
247669
+ },
247670
+ useCaseSensitiveFileNames: function useCaseSensitiveFileNames() {
247671
+ return sys.useCaseSensitiveFileNames;
247672
+ }
247673
+ }),
247674
+ updateFile: function updateFile(sourceFile) {
247675
+ var alreadyExists = sourceFiles.has(sourceFile.fileName);
247676
+ sys.writeFile(sourceFile.fileName, sourceFile.text);
247677
+ sourceFiles.set(sourceFile.fileName, sourceFile);
247678
+ return alreadyExists;
247679
+ }
247680
+ };
247681
+ return vHost;
247682
+ }
247683
+ function createVirtualLanguageServiceHost(sys, rootFiles, compilerOptions, ts, customTransformers) {
247684
+ var fileNames = [].concat(rootFiles);
247685
+ var _createVirtualCompile = createVirtualCompilerHost(sys, compilerOptions, ts), compilerHost = _createVirtualCompile.compilerHost, _updateFile2 = _createVirtualCompile.updateFile;
247686
+ var fileVersions = /* @__PURE__ */ new Map();
247687
+ var projectVersion = 0;
247688
+ var languageServiceHost = _extends({}, compilerHost, {
247689
+ getProjectVersion: function getProjectVersion() {
247690
+ return projectVersion.toString();
247691
+ },
247692
+ getCompilationSettings: function getCompilationSettings() {
247693
+ return compilerOptions;
247694
+ },
247695
+ getCustomTransformers: function getCustomTransformers() {
247696
+ return customTransformers;
247697
+ },
247698
+ // A couple weeks of 4.8 TypeScript nightlies had a bug where the Program's
247699
+ // list of files was just a reference to the array returned by this host method,
247700
+ // which means mutations by the host that ought to result in a new Program being
247701
+ // created were not detected, since the old list of files and the new list of files
247702
+ // were in fact a reference to the same underlying array. That was fixed in
247703
+ // https://github.com/microsoft/TypeScript/pull/49813, but since the twoslash runner
247704
+ // is used in bisecting for changes, it needs to guard against being busted in that
247705
+ // couple-week period, so we defensively make a slice here.
247706
+ getScriptFileNames: function getScriptFileNames() {
247707
+ return fileNames.slice();
247708
+ },
247709
+ getScriptSnapshot: function getScriptSnapshot(fileName) {
247710
+ var contents = sys.readFile(fileName);
247711
+ if (contents) {
247712
+ return ts.ScriptSnapshot.fromString(contents);
247713
+ }
247714
+ return;
247715
+ },
247716
+ getScriptVersion: function getScriptVersion(fileName) {
247717
+ return fileVersions.get(fileName) || "0";
247718
+ },
247719
+ writeFile: sys.writeFile
247720
+ });
247721
+ var lsHost = {
247722
+ languageServiceHost,
247723
+ updateFile: function updateFile(sourceFile) {
247724
+ projectVersion++;
247725
+ fileVersions.set(sourceFile.fileName, projectVersion.toString());
247726
+ if (!fileNames.includes(sourceFile.fileName)) {
247727
+ fileNames.push(sourceFile.fileName);
247728
+ }
247729
+ _updateFile2(sourceFile);
247730
+ }
247731
+ };
247732
+ return lsHost;
247733
+ }
247734
+ var requirePath = function requirePath2() {
247735
+ return require(String.fromCharCode(112, 97, 116, 104));
247736
+ };
247737
+ var requireFS = function requireFS2() {
247738
+ return require(String.fromCharCode(102, 115));
247739
+ };
247740
+ exports.addAllFilesFromFolder = addAllFilesFromFolder;
247741
+ exports.addFilesForTypesIntoFolder = addFilesForTypesIntoFolder;
247742
+ exports.createDefaultMapFromCDN = createDefaultMapFromCDN;
247743
+ exports.createDefaultMapFromNodeModules = createDefaultMapFromNodeModules;
247744
+ exports.createFSBackedSystem = createFSBackedSystem;
247745
+ exports.createSystem = createSystem;
247746
+ exports.createVirtualCompilerHost = createVirtualCompilerHost;
247747
+ exports.createVirtualLanguageServiceHost = createVirtualLanguageServiceHost;
247748
+ exports.createVirtualTypeScriptEnvironment = createVirtualTypeScriptEnvironment;
247749
+ exports.knownLibFilesForCompilerOptions = knownLibFilesForCompilerOptions;
247750
+ }
247751
+ });
247752
+
247753
+ // node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/index.js
247754
+ var require_dist5 = __commonJS({
247755
+ "node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/index.js"(exports, module2) {
247756
+ "use strict";
247757
+ if (process.env.NODE_ENV === "production") {
247758
+ module2.exports = require_vfs_cjs_production_min();
247759
+ } else {
247760
+ module2.exports = require_vfs_cjs_development();
247761
+ }
247762
+ }
247763
+ });
247764
+
247040
247765
  // node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js
247041
247766
  var require_readdirp = __commonJS({
247042
247767
  "node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js"(exports, module2) {
@@ -249450,9 +250175,9 @@ var require_chokidar = __commonJS({
249450
250175
  }
249451
250176
  });
249452
250177
 
249453
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/index.js
249454
- var require_dist5 = __commonJS({
249455
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=mt6yy6z2ctejvvdthhncd3ugte_@microsoft+api-extractor@7.38.3_@swc+core@1._no3sx27zvntjrotp6mhxuxr77m/node_modules/tsup/dist/index.js"(exports) {
250178
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/index.js
250179
+ var require_dist6 = __commonJS({
250180
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=s7ip3qfodr3k5hgnvxouo7bpeu_@microsoft+api-extractor@7.38.3_@swc+core@1._uxggdblx6ioynyny5pkbwojtye/node_modules/tsup/dist/index.js"(exports) {
249456
250181
  "use strict";
249457
250182
  Object.defineProperty(exports, "__esModule", { value: true });
249458
250183
  function _interopRequireDefault(obj) {
@@ -251618,6 +252343,8 @@ var require_dist5 = __commonJS({
251618
252343
  };
251619
252344
  var _typescript = require_typescript2();
251620
252345
  var _typescript2 = _interopRequireDefault(_typescript);
252346
+ var _tsvfs = require_dist5();
252347
+ var _tsvfs2 = _interopRequireDefault(_tsvfs);
251621
252348
  var logger = _chunk7G76EW2Rjs.createLogger.call(void 0);
251622
252349
  var AliasPool = (_class = class {
251623
252350
  constructor() {
@@ -251737,7 +252464,14 @@ var require_dist5 = __commonJS({
251737
252464
  }
251738
252465
  return fileMapping;
251739
252466
  }
251740
- function emit(options, compilerOptions, tsconfig) {
252467
+ var getLib = (name) => {
252468
+ const lib = _path.dirname.call(void 0, require.resolve("typescript"));
252469
+ return _fs2.default.readFileSync(_path.join(lib, name), "utf8");
252470
+ };
252471
+ var addLib = (name, map) => {
252472
+ map.set("/" + name, getLib(name));
252473
+ };
252474
+ async function emit(options, compilerOptions, tsconfig) {
251741
252475
  logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
251742
252476
  let rawTsconfig = _bundlerequire.loadTsConfig.call(
251743
252477
  void 0,
@@ -251766,6 +252500,7 @@ var require_dist5 = __commonJS({
251766
252500
  ...rawTsconfig.data.compilerOptions,
251767
252501
  // Enable declaration emit and disable javascript emit
251768
252502
  outDir: options.outDir,
252503
+ allowJs: true,
251769
252504
  noEmit: false,
251770
252505
  declaration: true,
251771
252506
  declarationMap: true,
@@ -251793,12 +252528,29 @@ var require_dist5 = __commonJS({
251793
252528
  options.workspaceRoot ? options.workspaceRoot : tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
251794
252529
  );
251795
252530
  logger.info("tsc", parsedTsconfig);
251796
- let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
251797
- let program = _typescript2.default.createProgram(
251798
- parsedTsconfig.fileNames,
252531
+ const fsMap = await _tsvfs2.default.createDefaultMapFromCDN(
251799
252532
  parsedTsconfig.options,
251800
- host
252533
+ _typescript2.default.version,
252534
+ true,
252535
+ _typescript2.default
251801
252536
  );
252537
+ logger.info("tsc", "Created FS Map");
252538
+ parsedTsconfig.options.lib.forEach((lib) => addLib(lib, fsMap));
252539
+ logger.info("tsc", "Added libs to FS Map");
252540
+ const system = _tsvfs2.default.createSystem(fsMap);
252541
+ logger.info("tsc", "Created virtual file system");
252542
+ const host = _tsvfs2.default.createVirtualCompilerHost(
252543
+ system,
252544
+ parsedTsconfig.options,
252545
+ _typescript2.default
252546
+ );
252547
+ logger.info("tsc", "Created virtual compiler host");
252548
+ const program = _typescript2.default.createProgram({
252549
+ rootNames: [...fsMap.keys()],
252550
+ options: parsedTsconfig.options,
252551
+ host
252552
+ });
252553
+ logger.info("tsc", "Created program");
251802
252554
  logger.info("tsc", "Emitting DTS files with the following options: ");
251803
252555
  logger.info("tsc", parsedTsconfig.options);
251804
252556
  let fileMapping = emitDtsFiles(program, host, options);
@@ -258586,7 +259338,7 @@ glob.glob = glob;
258586
259338
 
258587
259339
  // packages/workspace-tools/src/executors/tsup/get-config.ts
258588
259340
  var import_path2 = require("path");
258589
- var import_tsup = __toESM(require_dist5());
259341
+ var import_tsup = __toESM(require_dist6());
258590
259342
 
258591
259343
  // packages/workspace-tools/src/utils/file-path-utils.ts
258592
259344
  var removeExtension = (filePath) => {