@tscircuit/cli 0.1.68 → 0.1.69
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/main.js +202 -145
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -337015,7 +337015,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
337015
337015
|
}
|
|
337016
337016
|
var sep$1 = "/";
|
|
337017
337017
|
var delimiter = ":";
|
|
337018
|
-
function
|
|
337018
|
+
function dirname7(path15) {
|
|
337019
337019
|
var result = splitPath(path15), root = result[0], dir = result[1];
|
|
337020
337020
|
if (!root && !dir) {
|
|
337021
337021
|
return ".";
|
|
@@ -337038,7 +337038,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
337038
337038
|
var path$1 = {
|
|
337039
337039
|
extname: extname3,
|
|
337040
337040
|
basename: basename4,
|
|
337041
|
-
dirname:
|
|
337041
|
+
dirname: dirname7,
|
|
337042
337042
|
sep: sep$1,
|
|
337043
337043
|
delimiter,
|
|
337044
337044
|
relative: relative3,
|
|
@@ -337069,7 +337069,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
337069
337069
|
basename: basename4,
|
|
337070
337070
|
default: path$1,
|
|
337071
337071
|
delimiter,
|
|
337072
|
-
dirname:
|
|
337072
|
+
dirname: dirname7,
|
|
337073
337073
|
extname: extname3,
|
|
337074
337074
|
isAbsolute: isAbsolute2,
|
|
337075
337075
|
join: join8,
|
|
@@ -338193,7 +338193,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
338193
338193
|
}
|
|
338194
338194
|
}, _marked2$7);
|
|
338195
338195
|
}
|
|
338196
|
-
function findRootConfig(
|
|
338196
|
+
function findRootConfig(dirname8, envName, caller) {
|
|
338197
338197
|
return _regeneratorRuntime().wrap(function findRootConfig$(_context3) {
|
|
338198
338198
|
while (true)
|
|
338199
338199
|
switch (_context3.prev = _context3.next) {
|
|
@@ -338205,19 +338205,19 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
338205
338205
|
}
|
|
338206
338206
|
}, _marked3$4);
|
|
338207
338207
|
}
|
|
338208
|
-
function loadConfig$1(name2,
|
|
338208
|
+
function loadConfig$1(name2, dirname8, envName, caller) {
|
|
338209
338209
|
return _regeneratorRuntime().wrap(function loadConfig$(_context4) {
|
|
338210
338210
|
while (true)
|
|
338211
338211
|
switch (_context4.prev = _context4.next) {
|
|
338212
338212
|
case 0:
|
|
338213
|
-
throw new Error("Cannot load " + name2 + " relative to " +
|
|
338213
|
+
throw new Error("Cannot load " + name2 + " relative to " + dirname8 + " in a browser");
|
|
338214
338214
|
case 1:
|
|
338215
338215
|
case "end":
|
|
338216
338216
|
return _context4.stop();
|
|
338217
338217
|
}
|
|
338218
338218
|
}, _marked4$2);
|
|
338219
338219
|
}
|
|
338220
|
-
function resolveShowConfigPath(
|
|
338220
|
+
function resolveShowConfigPath(dirname8) {
|
|
338221
338221
|
return _regeneratorRuntime().wrap(function resolveShowConfigPath$(_context5) {
|
|
338222
338222
|
while (true)
|
|
338223
338223
|
switch (_context5.prev = _context5.next) {
|
|
@@ -338230,17 +338230,17 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
338230
338230
|
}, _marked5);
|
|
338231
338231
|
}
|
|
338232
338232
|
var ROOT_CONFIG_FILENAMES = [];
|
|
338233
|
-
function resolvePlugin$1(name2,
|
|
338233
|
+
function resolvePlugin$1(name2, dirname8) {
|
|
338234
338234
|
return null;
|
|
338235
338235
|
}
|
|
338236
|
-
function resolvePreset$1(name2,
|
|
338236
|
+
function resolvePreset$1(name2, dirname8) {
|
|
338237
338237
|
return null;
|
|
338238
338238
|
}
|
|
338239
|
-
function loadPlugin(name2,
|
|
338240
|
-
throw new Error("Cannot load plugin " + name2 + " relative to " +
|
|
338239
|
+
function loadPlugin(name2, dirname8) {
|
|
338240
|
+
throw new Error("Cannot load plugin " + name2 + " relative to " + dirname8 + " in a browser");
|
|
338241
338241
|
}
|
|
338242
|
-
function loadPreset(name2,
|
|
338243
|
-
throw new Error("Cannot load preset " + name2 + " relative to " +
|
|
338242
|
+
function loadPreset(name2, dirname8) {
|
|
338243
|
+
throw new Error("Cannot load preset " + name2 + " relative to " + dirname8 + " in a browser");
|
|
338244
338244
|
}
|
|
338245
338245
|
function getEnv(defaultValue) {
|
|
338246
338246
|
if (defaultValue === undefined) {
|
|
@@ -346829,42 +346829,42 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346829
346829
|
}
|
|
346830
346830
|
}, _marked$7);
|
|
346831
346831
|
}
|
|
346832
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
346832
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname8) {
|
|
346833
346833
|
if (typeof options.browserslistConfigFile === "string") {
|
|
346834
346834
|
options.browserslistConfigFile = resolveBrowserslistConfigFile(options.browserslistConfigFile);
|
|
346835
346835
|
}
|
|
346836
346836
|
return options;
|
|
346837
346837
|
}
|
|
346838
|
-
function createCachedDescriptors(
|
|
346838
|
+
function createCachedDescriptors(dirname8, options, alias2) {
|
|
346839
346839
|
var { plugins: plugins2, presets, passPerPreset } = options;
|
|
346840
346840
|
return {
|
|
346841
346841
|
options: optionsWithResolvedBrowserslistConfigFile(options),
|
|
346842
346842
|
plugins: plugins2 ? function() {
|
|
346843
|
-
return createCachedPluginDescriptors(plugins2,
|
|
346843
|
+
return createCachedPluginDescriptors(plugins2, dirname8)(alias2);
|
|
346844
346844
|
} : function() {
|
|
346845
346845
|
return handlerOf([]);
|
|
346846
346846
|
},
|
|
346847
346847
|
presets: presets ? function() {
|
|
346848
|
-
return createCachedPresetDescriptors(presets,
|
|
346848
|
+
return createCachedPresetDescriptors(presets, dirname8)(alias2)(!!passPerPreset);
|
|
346849
346849
|
} : function() {
|
|
346850
346850
|
return handlerOf([]);
|
|
346851
346851
|
}
|
|
346852
346852
|
};
|
|
346853
346853
|
}
|
|
346854
|
-
function createUncachedDescriptors(
|
|
346854
|
+
function createUncachedDescriptors(dirname8, options, alias2) {
|
|
346855
346855
|
return {
|
|
346856
346856
|
options: optionsWithResolvedBrowserslistConfigFile(options),
|
|
346857
346857
|
plugins: once2(function() {
|
|
346858
|
-
return createPluginDescriptors(options.plugins || [],
|
|
346858
|
+
return createPluginDescriptors(options.plugins || [], dirname8, alias2);
|
|
346859
346859
|
}),
|
|
346860
346860
|
presets: once2(function() {
|
|
346861
|
-
return createPresetDescriptors(options.presets || [],
|
|
346861
|
+
return createPresetDescriptors(options.presets || [], dirname8, alias2, !!options.passPerPreset);
|
|
346862
346862
|
})
|
|
346863
346863
|
};
|
|
346864
346864
|
}
|
|
346865
346865
|
var PRESET_DESCRIPTOR_CACHE = new WeakMap;
|
|
346866
346866
|
var createCachedPresetDescriptors = makeWeakCacheSync(function(items, cache2) {
|
|
346867
|
-
var
|
|
346867
|
+
var dirname8 = cache2.using(function(dir) {
|
|
346868
346868
|
return dir;
|
|
346869
346869
|
});
|
|
346870
346870
|
return makeStrongCacheSync(function(alias2) {
|
|
@@ -346874,7 +346874,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346874
346874
|
while (true)
|
|
346875
346875
|
switch (_context2.prev = _context2.next) {
|
|
346876
346876
|
case 0:
|
|
346877
|
-
return _context2.delegateYield(createPresetDescriptors(items,
|
|
346877
|
+
return _context2.delegateYield(createPresetDescriptors(items, dirname8, alias2, passPerPreset), "t0", 1);
|
|
346878
346878
|
case 1:
|
|
346879
346879
|
descriptors = _context2.t0;
|
|
346880
346880
|
return _context2.abrupt("return", descriptors.map(function(desc) {
|
|
@@ -346890,7 +346890,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346890
346890
|
});
|
|
346891
346891
|
var PLUGIN_DESCRIPTOR_CACHE = new WeakMap;
|
|
346892
346892
|
var createCachedPluginDescriptors = makeWeakCacheSync(function(items, cache2) {
|
|
346893
|
-
var
|
|
346893
|
+
var dirname8 = cache2.using(function(dir) {
|
|
346894
346894
|
return dir;
|
|
346895
346895
|
});
|
|
346896
346896
|
return makeStrongCache(_regeneratorRuntime().mark(function _callee2(alias2) {
|
|
@@ -346899,7 +346899,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346899
346899
|
while (true)
|
|
346900
346900
|
switch (_context3.prev = _context3.next) {
|
|
346901
346901
|
case 0:
|
|
346902
|
-
return _context3.delegateYield(createPluginDescriptors(items,
|
|
346902
|
+
return _context3.delegateYield(createPluginDescriptors(items, dirname8, alias2), "t0", 1);
|
|
346903
346903
|
case 1:
|
|
346904
346904
|
descriptors = _context3.t0;
|
|
346905
346905
|
return _context3.abrupt("return", descriptors.map(function(desc) {
|
|
@@ -346938,12 +346938,12 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346938
346938
|
}
|
|
346939
346939
|
return desc;
|
|
346940
346940
|
}
|
|
346941
|
-
function createPresetDescriptors(items,
|
|
346941
|
+
function createPresetDescriptors(items, dirname8, alias2, passPerPreset) {
|
|
346942
346942
|
return _regeneratorRuntime().wrap(function createPresetDescriptors$(_context4) {
|
|
346943
346943
|
while (true)
|
|
346944
346944
|
switch (_context4.prev = _context4.next) {
|
|
346945
346945
|
case 0:
|
|
346946
|
-
return _context4.delegateYield(createDescriptors("preset", items,
|
|
346946
|
+
return _context4.delegateYield(createDescriptors("preset", items, dirname8, alias2, passPerPreset), "t0", 1);
|
|
346947
346947
|
case 1:
|
|
346948
346948
|
return _context4.abrupt("return", _context4.t0);
|
|
346949
346949
|
case 2:
|
|
@@ -346952,12 +346952,12 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346952
346952
|
}
|
|
346953
346953
|
}, _marked2$5);
|
|
346954
346954
|
}
|
|
346955
|
-
function createPluginDescriptors(items,
|
|
346955
|
+
function createPluginDescriptors(items, dirname8, alias2) {
|
|
346956
346956
|
return _regeneratorRuntime().wrap(function createPluginDescriptors$(_context5) {
|
|
346957
346957
|
while (true)
|
|
346958
346958
|
switch (_context5.prev = _context5.next) {
|
|
346959
346959
|
case 0:
|
|
346960
|
-
return _context5.delegateYield(createDescriptors("plugin", items,
|
|
346960
|
+
return _context5.delegateYield(createDescriptors("plugin", items, dirname8, alias2), "t0", 1);
|
|
346961
346961
|
case 1:
|
|
346962
346962
|
return _context5.abrupt("return", _context5.t0);
|
|
346963
346963
|
case 2:
|
|
@@ -346966,14 +346966,14 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346966
346966
|
}
|
|
346967
346967
|
}, _marked3$2);
|
|
346968
346968
|
}
|
|
346969
|
-
function createDescriptors(type2, items,
|
|
346969
|
+
function createDescriptors(type2, items, dirname8, alias2, ownPass) {
|
|
346970
346970
|
var descriptors;
|
|
346971
346971
|
return _regeneratorRuntime().wrap(function createDescriptors$(_context6) {
|
|
346972
346972
|
while (true)
|
|
346973
346973
|
switch (_context6.prev = _context6.next) {
|
|
346974
346974
|
case 0:
|
|
346975
346975
|
return _context6.delegateYield(gensync.all(items.map(function(item, index2) {
|
|
346976
|
-
return createDescriptor(item,
|
|
346976
|
+
return createDescriptor(item, dirname8, {
|
|
346977
346977
|
type: type2,
|
|
346978
346978
|
alias: alias2 + "$" + index2,
|
|
346979
346979
|
ownPass: !!ownPass
|
|
@@ -346989,7 +346989,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
346989
346989
|
}
|
|
346990
346990
|
}, _marked4$1);
|
|
346991
346991
|
}
|
|
346992
|
-
function createDescriptor(pair,
|
|
346992
|
+
function createDescriptor(pair, dirname8, _ref4) {
|
|
346993
346993
|
var { type: type2, alias: alias2, ownPass } = _ref4;
|
|
346994
346994
|
return _regeneratorRuntime().mark(function _callee3() {
|
|
346995
346995
|
var desc, name2, options, value2, _value, _value2, _value3, _value4, file2, filepath, resolver, request, _yield$resolver;
|
|
@@ -347033,7 +347033,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
347033
347033
|
case 10:
|
|
347034
347034
|
resolver = type2 === "plugin" ? loadPlugin : loadPreset;
|
|
347035
347035
|
request = value2;
|
|
347036
|
-
return _context7.delegateYield(resolver(value2,
|
|
347036
|
+
return _context7.delegateYield(resolver(value2, dirname8), "t0", 13);
|
|
347037
347037
|
case 13:
|
|
347038
347038
|
_yield$resolver = _context7.t0;
|
|
347039
347039
|
filepath = _yield$resolver.filepath;
|
|
@@ -347080,7 +347080,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
347080
347080
|
alias: filepath || alias2,
|
|
347081
347081
|
value: value2,
|
|
347082
347082
|
options,
|
|
347083
|
-
dirname:
|
|
347083
|
+
dirname: dirname8,
|
|
347084
347084
|
ownPass,
|
|
347085
347085
|
file: file2
|
|
347086
347086
|
});
|
|
@@ -347120,14 +347120,14 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
347120
347120
|
return new ConfigItem(desc);
|
|
347121
347121
|
}
|
|
347122
347122
|
function createConfigItem$1(value2, _temp) {
|
|
347123
|
-
var _ref4 = _temp === undefined ? {} : _temp, _ref$dirname = _ref4.dirname,
|
|
347123
|
+
var _ref4 = _temp === undefined ? {} : _temp, _ref$dirname = _ref4.dirname, dirname8 = _ref$dirname === undefined ? "." : _ref$dirname, type2 = _ref4.type;
|
|
347124
347124
|
return _regeneratorRuntime().mark(function _callee() {
|
|
347125
347125
|
var descriptor;
|
|
347126
347126
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
347127
347127
|
while (true)
|
|
347128
347128
|
switch (_context.prev = _context.next) {
|
|
347129
347129
|
case 0:
|
|
347130
|
-
return _context.delegateYield(createDescriptor(value2, path$1.resolve(
|
|
347130
|
+
return _context.delegateYield(createDescriptor(value2, path$1.resolve(dirname8), {
|
|
347131
347131
|
type: type2,
|
|
347132
347132
|
alias: "programmatic item"
|
|
347133
347133
|
}), "t0", 1);
|
|
@@ -347808,8 +347808,8 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
347808
347808
|
function escapeRegExp(string2) {
|
|
347809
347809
|
return string2.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
347810
347810
|
}
|
|
347811
|
-
function pathToPattern(pattern2,
|
|
347812
|
-
var parts = path$1.resolve(
|
|
347811
|
+
function pathToPattern(pattern2, dirname8) {
|
|
347812
|
+
var parts = path$1.resolve(dirname8, pattern2).split(path$1.sep);
|
|
347813
347813
|
return new RegExp(["^"].concat(_toConsumableArray(parts.map(function(part, i) {
|
|
347814
347814
|
var last2 = i === parts.length - 1;
|
|
347815
347815
|
if (part === "**")
|
|
@@ -348320,8 +348320,8 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348320
348320
|
});
|
|
348321
348321
|
}
|
|
348322
348322
|
function buildRootDescriptors(_ref4, alias2, descriptors) {
|
|
348323
|
-
var { dirname:
|
|
348324
|
-
return descriptors(
|
|
348323
|
+
var { dirname: dirname8, options } = _ref4;
|
|
348324
|
+
return descriptors(dirname8, options, alias2);
|
|
348325
348325
|
}
|
|
348326
348326
|
function buildProgrammaticLogger(_, context, baseLogger) {
|
|
348327
348327
|
var _context$caller;
|
|
@@ -348334,26 +348334,26 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348334
348334
|
}
|
|
348335
348335
|
function buildEnvDescriptors(_ref22, alias2, descriptors, envName) {
|
|
348336
348336
|
var _options$env;
|
|
348337
|
-
var { dirname:
|
|
348337
|
+
var { dirname: dirname8, options } = _ref22;
|
|
348338
348338
|
var opts = (_options$env = options.env) == null ? undefined : _options$env[envName];
|
|
348339
|
-
return opts ? descriptors(
|
|
348339
|
+
return opts ? descriptors(dirname8, opts, alias2 + '.env["' + envName + '"]') : null;
|
|
348340
348340
|
}
|
|
348341
348341
|
function buildOverrideDescriptors(_ref32, alias2, descriptors, index2) {
|
|
348342
348342
|
var _options$overrides;
|
|
348343
|
-
var { dirname:
|
|
348343
|
+
var { dirname: dirname8, options } = _ref32;
|
|
348344
348344
|
var opts = (_options$overrides = options.overrides) == null ? undefined : _options$overrides[index2];
|
|
348345
348345
|
if (!opts)
|
|
348346
348346
|
throw new Error("Assertion failure - missing override");
|
|
348347
|
-
return descriptors(
|
|
348347
|
+
return descriptors(dirname8, opts, alias2 + ".overrides[" + index2 + "]");
|
|
348348
348348
|
}
|
|
348349
348349
|
function buildOverrideEnvDescriptors(_ref4, alias2, descriptors, index2, envName) {
|
|
348350
348350
|
var _options$overrides2, _override$env;
|
|
348351
|
-
var { dirname:
|
|
348351
|
+
var { dirname: dirname8, options } = _ref4;
|
|
348352
348352
|
var override = (_options$overrides2 = options.overrides) == null ? undefined : _options$overrides2[index2];
|
|
348353
348353
|
if (!override)
|
|
348354
348354
|
throw new Error("Assertion failure - missing override");
|
|
348355
348355
|
var opts = (_override$env = override.env) == null ? undefined : _override$env[envName];
|
|
348356
|
-
return opts ? descriptors(
|
|
348356
|
+
return opts ? descriptors(dirname8, opts, alias2 + ".overrides[" + index2 + '].env["' + envName + '"]') : null;
|
|
348357
348357
|
}
|
|
348358
348358
|
function makeChainWalker(_ref52) {
|
|
348359
348359
|
var { root, env: env3, overrides, overridesEnv, createLogger } = _ref52;
|
|
@@ -348362,22 +348362,22 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348362
348362
|
files = new Set;
|
|
348363
348363
|
}
|
|
348364
348364
|
return _regeneratorRuntime().mark(function _callee() {
|
|
348365
|
-
var
|
|
348365
|
+
var dirname8, flattenedConfigs, rootOpts, envOpts, chain2, logger, _i2, _flattenedConfigs, _flattenedConfigs$_i, config2, index2, envName;
|
|
348366
348366
|
return _regeneratorRuntime().wrap(function _callee$(_context4) {
|
|
348367
348367
|
while (true)
|
|
348368
348368
|
switch (_context4.prev = _context4.next) {
|
|
348369
348369
|
case 0:
|
|
348370
|
-
|
|
348370
|
+
dirname8 = input.dirname;
|
|
348371
348371
|
flattenedConfigs = [];
|
|
348372
348372
|
rootOpts = root(input);
|
|
348373
|
-
if (configIsApplicable(rootOpts,
|
|
348373
|
+
if (configIsApplicable(rootOpts, dirname8, context, input.filepath)) {
|
|
348374
348374
|
flattenedConfigs.push({
|
|
348375
348375
|
config: rootOpts,
|
|
348376
348376
|
envName: undefined,
|
|
348377
348377
|
index: undefined
|
|
348378
348378
|
});
|
|
348379
348379
|
envOpts = env3(input, context.envName);
|
|
348380
|
-
if (envOpts && configIsApplicable(envOpts,
|
|
348380
|
+
if (envOpts && configIsApplicable(envOpts, dirname8, context, input.filepath)) {
|
|
348381
348381
|
flattenedConfigs.push({
|
|
348382
348382
|
config: envOpts,
|
|
348383
348383
|
envName: context.envName,
|
|
@@ -348386,14 +348386,14 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348386
348386
|
}
|
|
348387
348387
|
(rootOpts.options.overrides || []).forEach(function(_, index3) {
|
|
348388
348388
|
var overrideOps = overrides(input, index3);
|
|
348389
|
-
if (configIsApplicable(overrideOps,
|
|
348389
|
+
if (configIsApplicable(overrideOps, dirname8, context, input.filepath)) {
|
|
348390
348390
|
flattenedConfigs.push({
|
|
348391
348391
|
config: overrideOps,
|
|
348392
348392
|
index: index3,
|
|
348393
348393
|
envName: undefined
|
|
348394
348394
|
});
|
|
348395
348395
|
var overrideEnvOpts = overridesEnv(input, index3, context.envName);
|
|
348396
|
-
if (overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
348396
|
+
if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname8, context, input.filepath)) {
|
|
348397
348397
|
flattenedConfigs.push({
|
|
348398
348398
|
config: overrideEnvOpts,
|
|
348399
348399
|
index: index3,
|
|
@@ -348405,7 +348405,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348405
348405
|
}
|
|
348406
348406
|
if (!flattenedConfigs.some(function(_ref6) {
|
|
348407
348407
|
var _ref6$config$options = _ref6.config.options, ignore = _ref6$config$options.ignore, only = _ref6$config$options.only;
|
|
348408
|
-
return shouldIgnore(context, ignore, only,
|
|
348408
|
+
return shouldIgnore(context, ignore, only, dirname8);
|
|
348409
348409
|
})) {
|
|
348410
348410
|
_context4.next = 6;
|
|
348411
348411
|
break;
|
|
@@ -348421,7 +348421,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348421
348421
|
break;
|
|
348422
348422
|
}
|
|
348423
348423
|
_flattenedConfigs$_i = _flattenedConfigs[_i2], config2 = _flattenedConfigs$_i.config, index2 = _flattenedConfigs$_i.index, envName = _flattenedConfigs$_i.envName;
|
|
348424
|
-
return _context4.delegateYield(mergeExtendsChain(chain2, config2.options,
|
|
348424
|
+
return _context4.delegateYield(mergeExtendsChain(chain2, config2.options, dirname8, context, files, baseLogger), "t0", 12);
|
|
348425
348425
|
case 12:
|
|
348426
348426
|
if (_context4.t0) {
|
|
348427
348427
|
_context4.next = 14;
|
|
@@ -348445,7 +348445,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348445
348445
|
})();
|
|
348446
348446
|
};
|
|
348447
348447
|
}
|
|
348448
|
-
function mergeExtendsChain(chain2, opts,
|
|
348448
|
+
function mergeExtendsChain(chain2, opts, dirname8, context, files, baseLogger) {
|
|
348449
348449
|
var file2, fileChain;
|
|
348450
348450
|
return _regeneratorRuntime().wrap(function mergeExtendsChain$(_context5) {
|
|
348451
348451
|
while (true)
|
|
@@ -348457,7 +348457,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348457
348457
|
}
|
|
348458
348458
|
return _context5.abrupt("return", true);
|
|
348459
348459
|
case 2:
|
|
348460
|
-
return _context5.delegateYield(loadConfig$1(opts["extends"],
|
|
348460
|
+
return _context5.delegateYield(loadConfig$1(opts["extends"], dirname8, context.envName, context.caller), "t0", 3);
|
|
348461
348461
|
case 3:
|
|
348462
348462
|
file2 = _context5.t0;
|
|
348463
348463
|
if (!files.has(file2)) {
|
|
@@ -348594,13 +348594,13 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348594
348594
|
return acc;
|
|
348595
348595
|
}, []);
|
|
348596
348596
|
}
|
|
348597
|
-
function configIsApplicable(_ref8,
|
|
348597
|
+
function configIsApplicable(_ref8, dirname8, context, configName) {
|
|
348598
348598
|
var options = _ref8.options;
|
|
348599
|
-
return (options.test === undefined || configFieldIsApplicable(context, options.test,
|
|
348599
|
+
return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname8, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname8, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname8, configName));
|
|
348600
348600
|
}
|
|
348601
|
-
function configFieldIsApplicable(context, test,
|
|
348601
|
+
function configFieldIsApplicable(context, test, dirname8, configName) {
|
|
348602
348602
|
var patterns = Array.isArray(test) ? test : [test];
|
|
348603
|
-
return matchesPatterns(context, patterns,
|
|
348603
|
+
return matchesPatterns(context, patterns, dirname8, configName);
|
|
348604
348604
|
}
|
|
348605
348605
|
function ignoreListReplacer(_key, value2) {
|
|
348606
348606
|
if (value2 instanceof RegExp) {
|
|
@@ -348608,19 +348608,19 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348608
348608
|
}
|
|
348609
348609
|
return value2;
|
|
348610
348610
|
}
|
|
348611
|
-
function shouldIgnore(context, ignore, only,
|
|
348612
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
348611
|
+
function shouldIgnore(context, ignore, only, dirname8) {
|
|
348612
|
+
if (ignore && matchesPatterns(context, ignore, dirname8)) {
|
|
348613
348613
|
var _context$filename;
|
|
348614
|
-
var message = 'No config is applied to "' + ((_context$filename = context.filename) != null ? _context$filename : "(unknown)") + '" because it matches one of `ignore: ' + JSON.stringify(ignore, ignoreListReplacer) + '` from "' +
|
|
348614
|
+
var message = 'No config is applied to "' + ((_context$filename = context.filename) != null ? _context$filename : "(unknown)") + '" because it matches one of `ignore: ' + JSON.stringify(ignore, ignoreListReplacer) + '` from "' + dirname8 + '"';
|
|
348615
348615
|
debug$1(message);
|
|
348616
348616
|
if (context.showConfig) {
|
|
348617
348617
|
console.log(message);
|
|
348618
348618
|
}
|
|
348619
348619
|
return true;
|
|
348620
348620
|
}
|
|
348621
|
-
if (only && !matchesPatterns(context, only,
|
|
348621
|
+
if (only && !matchesPatterns(context, only, dirname8)) {
|
|
348622
348622
|
var _context$filename2;
|
|
348623
|
-
var _message = 'No config is applied to "' + ((_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)") + '" because it fails to match one of `only: ' + JSON.stringify(only, ignoreListReplacer) + '` from "' +
|
|
348623
|
+
var _message = 'No config is applied to "' + ((_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)") + '" because it fails to match one of `only: ' + JSON.stringify(only, ignoreListReplacer) + '` from "' + dirname8 + '"';
|
|
348624
348624
|
debug$1(_message);
|
|
348625
348625
|
if (context.showConfig) {
|
|
348626
348626
|
console.log(_message);
|
|
@@ -348629,15 +348629,15 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348629
348629
|
}
|
|
348630
348630
|
return false;
|
|
348631
348631
|
}
|
|
348632
|
-
function matchesPatterns(context, patterns,
|
|
348632
|
+
function matchesPatterns(context, patterns, dirname8, configName) {
|
|
348633
348633
|
return patterns.some(function(pattern2) {
|
|
348634
|
-
return matchPattern(pattern2,
|
|
348634
|
+
return matchPattern(pattern2, dirname8, context.filename, context, configName);
|
|
348635
348635
|
});
|
|
348636
348636
|
}
|
|
348637
|
-
function matchPattern(pattern2,
|
|
348637
|
+
function matchPattern(pattern2, dirname8, pathToTest, context, configName) {
|
|
348638
348638
|
if (typeof pattern2 === "function") {
|
|
348639
348639
|
return !!endHiddenCallStack(pattern2)(pathToTest, {
|
|
348640
|
-
dirname:
|
|
348640
|
+
dirname: dirname8,
|
|
348641
348641
|
envName: context.envName,
|
|
348642
348642
|
caller: context.caller
|
|
348643
348643
|
});
|
|
@@ -348646,7 +348646,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348646
348646
|
throw new ConfigError("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
348647
348647
|
}
|
|
348648
348648
|
if (typeof pattern2 === "string") {
|
|
348649
|
-
pattern2 = pathToPattern(pattern2,
|
|
348649
|
+
pattern2 = pathToPattern(pattern2, dirname8);
|
|
348650
348650
|
}
|
|
348651
348651
|
return pattern2.test(pathToTest);
|
|
348652
348652
|
}
|
|
@@ -349212,7 +349212,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349212
349212
|
}
|
|
349213
349213
|
var makeDescriptorLoader = function makeDescriptorLoader(apiFactory) {
|
|
349214
349214
|
return makeWeakCache(function(_ref4, cache2) {
|
|
349215
|
-
var { value: value2, options, dirname:
|
|
349215
|
+
var { value: value2, options, dirname: dirname8, alias: alias2 } = _ref4;
|
|
349216
349216
|
return _regeneratorRuntime().mark(function _callee2() {
|
|
349217
349217
|
var externalDependencies, item, factory, api, error2;
|
|
349218
349218
|
return _regeneratorRuntime().wrap(function _callee2$(_context5) {
|
|
@@ -349235,7 +349235,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349235
349235
|
factory = maybeAsync(value2, "You appear to be using an async plugin/preset, but Babel has been called synchronously");
|
|
349236
349236
|
api = Object.assign({}, _babel, apiFactory(cache2, externalDependencies));
|
|
349237
349237
|
_context5.prev = 8;
|
|
349238
|
-
return _context5.delegateYield(factory(api, options,
|
|
349238
|
+
return _context5.delegateYield(factory(api, options, dirname8), "t0", 10);
|
|
349239
349239
|
case 10:
|
|
349240
349240
|
item = _context5.t0;
|
|
349241
349241
|
_context5.next = 17;
|
|
@@ -349278,7 +349278,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349278
349278
|
return _context5.abrupt("return", {
|
|
349279
349279
|
value: item,
|
|
349280
349280
|
options,
|
|
349281
|
-
dirname:
|
|
349281
|
+
dirname: dirname8,
|
|
349282
349282
|
alias: alias2,
|
|
349283
349283
|
externalDependencies: finalize(externalDependencies)
|
|
349284
349284
|
});
|
|
@@ -349293,7 +349293,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349293
349293
|
var pluginDescriptorLoader = makeDescriptorLoader(makePluginAPI);
|
|
349294
349294
|
var presetDescriptorLoader = makeDescriptorLoader(makePresetAPI);
|
|
349295
349295
|
var instantiatePlugin = makeWeakCache(function(_ref22, cache2) {
|
|
349296
|
-
var { value: value2, options, dirname:
|
|
349296
|
+
var { value: value2, options, dirname: dirname8, alias: alias2, externalDependencies } = _ref22;
|
|
349297
349297
|
return _regeneratorRuntime().mark(function _callee3() {
|
|
349298
349298
|
var pluginObj, plugin2, inheritsDescriptor, inherits2;
|
|
349299
349299
|
return _regeneratorRuntime().wrap(function _callee3$(_context6) {
|
|
@@ -349314,7 +349314,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349314
349314
|
alias: alias2 + "$inherits",
|
|
349315
349315
|
value: plugin2.inherits,
|
|
349316
349316
|
options,
|
|
349317
|
-
dirname:
|
|
349317
|
+
dirname: dirname8
|
|
349318
349318
|
};
|
|
349319
349319
|
return _context6.delegateYield(forwardAsync(loadPluginDescriptor, function(run2) {
|
|
349320
349320
|
return cache2.invalidate(function(data2) {
|
|
@@ -349395,11 +349395,11 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349395
349395
|
}
|
|
349396
349396
|
};
|
|
349397
349397
|
var instantiatePreset = makeWeakCacheSync(function(_ref32) {
|
|
349398
|
-
var { value: value2, dirname:
|
|
349398
|
+
var { value: value2, dirname: dirname8, alias: alias2, externalDependencies } = _ref32;
|
|
349399
349399
|
return {
|
|
349400
349400
|
options: validate2("preset", value2),
|
|
349401
349401
|
alias: alias2,
|
|
349402
|
-
dirname:
|
|
349402
|
+
dirname: dirname8,
|
|
349403
349403
|
externalDependencies
|
|
349404
349404
|
};
|
|
349405
349405
|
});
|
|
@@ -351072,10 +351072,10 @@ Consider renaming the file to '.mjs', or setting sourceType:module ` + "or sourc
|
|
|
351072
351072
|
return beginHiddenCallStack(parseRunner.async).apply(undefined, arguments);
|
|
351073
351073
|
}
|
|
351074
351074
|
var version$1 = "7.26.9";
|
|
351075
|
-
var resolvePlugin = function resolvePlugin(name2,
|
|
351075
|
+
var resolvePlugin = function resolvePlugin(name2, dirname8) {
|
|
351076
351076
|
return resolvePlugin$1().filepath;
|
|
351077
351077
|
};
|
|
351078
|
-
var resolvePreset = function resolvePreset(name2,
|
|
351078
|
+
var resolvePreset = function resolvePreset(name2, dirname8) {
|
|
351079
351079
|
return resolvePreset$1().filepath;
|
|
351080
351080
|
};
|
|
351081
351081
|
var DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
@@ -374101,7 +374101,7 @@ bundler handle dynamic imports.
|
|
|
374101
374101
|
runtimeVersion = "^" + runtimeVersion;
|
|
374102
374102
|
return !semver$5.intersects("<" + minVersion2, runtimeVersion) && !semver$5.intersects(">=8.0.0", runtimeVersion);
|
|
374103
374103
|
}
|
|
374104
|
-
function getRuntimePath(moduleName,
|
|
374104
|
+
function getRuntimePath(moduleName, dirname8, absoluteRuntime) {
|
|
374105
374105
|
if (absoluteRuntime === false)
|
|
374106
374106
|
return moduleName;
|
|
374107
374107
|
resolveFSPath();
|
|
@@ -378320,7 +378320,7 @@ bundler handle dynamic imports.
|
|
|
378320
378320
|
dependencies$1.laterLogMissing = laterLogMissing2;
|
|
378321
378321
|
dependencies$1.logMissing = logMissing2;
|
|
378322
378322
|
dependencies$1.resolve = resolve7;
|
|
378323
|
-
function resolve7(
|
|
378323
|
+
function resolve7(dirname8, moduleName, absoluteImports) {
|
|
378324
378324
|
if (absoluteImports === false)
|
|
378325
378325
|
return moduleName;
|
|
378326
378326
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
@@ -378515,14 +378515,14 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
378515
378515
|
providerOptions
|
|
378516
378516
|
};
|
|
378517
378517
|
}
|
|
378518
|
-
function instantiateProvider2(factory, options, missingDependencies,
|
|
378518
|
+
function instantiateProvider2(factory, options, missingDependencies, dirname8, debugLog, babelApi) {
|
|
378519
378519
|
var _resolveOptions = resolveOptions2(options, babelApi), method2 = _resolveOptions.method, methodName = _resolveOptions.methodName, targets = _resolveOptions.targets, _debug2 = _resolveOptions.debug, _shouldInjectPolyfill = _resolveOptions.shouldInjectPolyfill, providerOptions = _resolveOptions.providerOptions, absoluteImports = _resolveOptions.absoluteImports;
|
|
378520
378520
|
var include, exclude;
|
|
378521
378521
|
var polyfillsSupport;
|
|
378522
378522
|
var polyfillsNames;
|
|
378523
378523
|
var filterPolyfills;
|
|
378524
378524
|
var getUtils = (0, _utils.createUtilsGetter)(new _importsInjector["default"](function(moduleName) {
|
|
378525
|
-
return deps.resolve(
|
|
378525
|
+
return deps.resolve(dirname8, moduleName, absoluteImports);
|
|
378526
378526
|
}, function(name2) {
|
|
378527
378527
|
var _polyfillsNames$get, _polyfillsNames;
|
|
378528
378528
|
return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? undefined : _polyfillsNames.get(name2)) != null ? _polyfillsNames$get : Infinity;
|
|
@@ -378576,15 +378576,15 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
378576
378576
|
return;
|
|
378577
378577
|
}
|
|
378578
378578
|
var dep = version3 === "*" ? name2 : name2 + "@^" + version3;
|
|
378579
|
-
var found = missingDependencies.all ? false : mapGetOr2(depsCache, name2 + " :: " +
|
|
378580
|
-
return deps.has(
|
|
378579
|
+
var found = missingDependencies.all ? false : mapGetOr2(depsCache, name2 + " :: " + dirname8, function() {
|
|
378580
|
+
return deps.has(dirname8, name2);
|
|
378581
378581
|
});
|
|
378582
378582
|
if (!found) {
|
|
378583
378583
|
debugLog().missingDeps.add(dep);
|
|
378584
378584
|
}
|
|
378585
378585
|
}
|
|
378586
378586
|
};
|
|
378587
|
-
var provider = factory(api, providerOptions,
|
|
378587
|
+
var provider = factory(api, providerOptions, dirname8);
|
|
378588
378588
|
var providerName = provider.name || factory.name;
|
|
378589
378589
|
if (typeof provider[methodName] !== "function") {
|
|
378590
378590
|
throw new Error('The "' + providerName + `" provider doesn't support the "` + method2 + '" polyfilling method.');
|
|
@@ -378630,12 +378630,12 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
378630
378630
|
};
|
|
378631
378631
|
}
|
|
378632
378632
|
function definePolyfillProvider2(factory) {
|
|
378633
|
-
return (0, _helperPluginUtils2.declare)(function(babelApi, options,
|
|
378633
|
+
return (0, _helperPluginUtils2.declare)(function(babelApi, options, dirname8) {
|
|
378634
378634
|
babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0");
|
|
378635
378635
|
var traverse2 = babelApi.traverse;
|
|
378636
378636
|
var debugLog;
|
|
378637
378637
|
var missingDependencies = (0, _normalizeOptions.applyMissingDependenciesDefaults)(options, babelApi);
|
|
378638
|
-
var _instantiateProvider = instantiateProvider2(factory, options, missingDependencies,
|
|
378638
|
+
var _instantiateProvider = instantiateProvider2(factory, options, missingDependencies, dirname8, function() {
|
|
378639
378639
|
return debugLog;
|
|
378640
378640
|
}, babelApi), debug14 = _instantiateProvider.debug, method2 = _instantiateProvider.method, targets = _instantiateProvider.targets, provider = _instantiateProvider.provider, providerName = _instantiateProvider.providerName, callProvider = _instantiateProvider.callProvider;
|
|
378641
378641
|
var createVisitor = method2 === "entry-global" ? v2.entry : v2.usage;
|
|
@@ -409532,7 +409532,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
409532
409532
|
}
|
|
409533
409533
|
});
|
|
409534
409534
|
})(babel7);
|
|
409535
|
-
var transformRuntime = declare(function(api, options,
|
|
409535
|
+
var transformRuntime = declare(function(api, options, dirname8) {
|
|
409536
409536
|
api.assertVersion("*");
|
|
409537
409537
|
var _options$version = options.version, runtimeVersion = _options$version === undefined ? "7.0.0-beta.0" : _options$version, _options$absoluteRunt = options.absoluteRuntime, absoluteRuntime = _options$absoluteRunt === undefined ? false : _options$absoluteRunt, _options$moduleName = options.moduleName, moduleName = _options$moduleName === undefined ? null : _options$moduleName;
|
|
409538
409538
|
if (typeof absoluteRuntime !== "boolean" && typeof absoluteRuntime !== "string") {
|
|
@@ -409587,7 +409587,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
409587
409587
|
var modulePath;
|
|
409588
409588
|
file2.set("helperGenerator", function(name2) {
|
|
409589
409589
|
var _modulePath, _ref4;
|
|
409590
|
-
(_modulePath = modulePath) != null || (modulePath = getRuntimePath((_ref4 = moduleName != null ? moduleName : file2.get("runtimeHelpersModuleName")) != null ? _ref4 : "@babel/runtime",
|
|
409590
|
+
(_modulePath = modulePath) != null || (modulePath = getRuntimePath((_ref4 = moduleName != null ? moduleName : file2.get("runtimeHelpersModuleName")) != null ? _ref4 : "@babel/runtime", dirname8, absoluteRuntime));
|
|
409591
409591
|
{
|
|
409592
409592
|
if (!(file2.availableHelper != null && file2.availableHelper(name2, runtimeVersion))) {
|
|
409593
409593
|
if (name2 === "regeneratorRuntime") {
|
|
@@ -415004,7 +415004,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
415004
415004
|
dependencies2.laterLogMissing = laterLogMissing2;
|
|
415005
415005
|
dependencies2.logMissing = logMissing2;
|
|
415006
415006
|
dependencies2.resolve = resolve7;
|
|
415007
|
-
function resolve7(
|
|
415007
|
+
function resolve7(dirname8, moduleName, absoluteImports) {
|
|
415008
415008
|
if (absoluteImports === false)
|
|
415009
415009
|
return moduleName;
|
|
415010
415010
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
@@ -415199,14 +415199,14 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
415199
415199
|
providerOptions
|
|
415200
415200
|
};
|
|
415201
415201
|
}
|
|
415202
|
-
function instantiateProvider2(factory, options, missingDependencies,
|
|
415202
|
+
function instantiateProvider2(factory, options, missingDependencies, dirname8, debugLog, babelApi) {
|
|
415203
415203
|
var _resolveOptions = resolveOptions2(options, babelApi), method2 = _resolveOptions.method, methodName = _resolveOptions.methodName, targets = _resolveOptions.targets, _debug2 = _resolveOptions.debug, _shouldInjectPolyfill = _resolveOptions.shouldInjectPolyfill, providerOptions = _resolveOptions.providerOptions, absoluteImports = _resolveOptions.absoluteImports;
|
|
415204
415204
|
var include, exclude;
|
|
415205
415205
|
var polyfillsSupport;
|
|
415206
415206
|
var polyfillsNames;
|
|
415207
415207
|
var filterPolyfills;
|
|
415208
415208
|
var getUtils = (0, _utils.createUtilsGetter)(new _importsInjector["default"](function(moduleName) {
|
|
415209
|
-
return deps.resolve(
|
|
415209
|
+
return deps.resolve(dirname8, moduleName, absoluteImports);
|
|
415210
415210
|
}, function(name2) {
|
|
415211
415211
|
var _polyfillsNames$get, _polyfillsNames;
|
|
415212
415212
|
return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? undefined : _polyfillsNames.get(name2)) != null ? _polyfillsNames$get : Infinity;
|
|
@@ -415260,15 +415260,15 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
415260
415260
|
return;
|
|
415261
415261
|
}
|
|
415262
415262
|
var dep = version3 === "*" ? name2 : name2 + "@^" + version3;
|
|
415263
|
-
var found = missingDependencies.all ? false : mapGetOr2(depsCache, name2 + " :: " +
|
|
415264
|
-
return deps.has(
|
|
415263
|
+
var found = missingDependencies.all ? false : mapGetOr2(depsCache, name2 + " :: " + dirname8, function() {
|
|
415264
|
+
return deps.has(dirname8, name2);
|
|
415265
415265
|
});
|
|
415266
415266
|
if (!found) {
|
|
415267
415267
|
debugLog().missingDeps.add(dep);
|
|
415268
415268
|
}
|
|
415269
415269
|
}
|
|
415270
415270
|
};
|
|
415271
|
-
var provider = factory(api, providerOptions,
|
|
415271
|
+
var provider = factory(api, providerOptions, dirname8);
|
|
415272
415272
|
var providerName = provider.name || factory.name;
|
|
415273
415273
|
if (typeof provider[methodName] !== "function") {
|
|
415274
415274
|
throw new Error('The "' + providerName + `" provider doesn't support the "` + method2 + '" polyfilling method.');
|
|
@@ -415314,12 +415314,12 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
415314
415314
|
};
|
|
415315
415315
|
}
|
|
415316
415316
|
function definePolyfillProvider2(factory) {
|
|
415317
|
-
return (0, _helperPluginUtils2.declare)(function(babelApi, options,
|
|
415317
|
+
return (0, _helperPluginUtils2.declare)(function(babelApi, options, dirname8) {
|
|
415318
415318
|
babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0");
|
|
415319
415319
|
var traverse2 = babelApi.traverse;
|
|
415320
415320
|
var debugLog;
|
|
415321
415321
|
var missingDependencies = (0, _normalizeOptions.applyMissingDependenciesDefaults)(options, babelApi);
|
|
415322
|
-
var _instantiateProvider = instantiateProvider2(factory, options, missingDependencies,
|
|
415322
|
+
var _instantiateProvider = instantiateProvider2(factory, options, missingDependencies, dirname8, function() {
|
|
415323
415323
|
return debugLog;
|
|
415324
415324
|
}, babelApi), debug14 = _instantiateProvider.debug, method2 = _instantiateProvider.method, targets = _instantiateProvider.targets, provider = _instantiateProvider.provider, providerName = _instantiateProvider.providerName, callProvider = _instantiateProvider.callProvider;
|
|
415325
415325
|
var createVisitor = method2 === "entry-global" ? v2.entry : v2.usage;
|
|
@@ -416474,7 +416474,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
416474
416474
|
}
|
|
416475
416475
|
};
|
|
416476
416476
|
};
|
|
416477
|
-
function resolve6(
|
|
416477
|
+
function resolve6(dirname8, moduleName, absoluteImports) {
|
|
416478
416478
|
if (absoluteImports === false)
|
|
416479
416479
|
return moduleName;
|
|
416480
416480
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
@@ -416580,14 +416580,14 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
416580
416580
|
providerOptions
|
|
416581
416581
|
};
|
|
416582
416582
|
}
|
|
416583
|
-
function instantiateProvider(factory, options, missingDependencies,
|
|
416583
|
+
function instantiateProvider(factory, options, missingDependencies, dirname8, debugLog, babelApi) {
|
|
416584
416584
|
var _resolveOptions = resolveOptions(options, babelApi), method2 = _resolveOptions.method, methodName = _resolveOptions.methodName, targets = _resolveOptions.targets, _debug2 = _resolveOptions.debug, _shouldInjectPolyfill = _resolveOptions.shouldInjectPolyfill, providerOptions = _resolveOptions.providerOptions, absoluteImports = _resolveOptions.absoluteImports;
|
|
416585
416585
|
var include, exclude;
|
|
416586
416586
|
var polyfillsSupport;
|
|
416587
416587
|
var polyfillsNames;
|
|
416588
416588
|
var filterPolyfills;
|
|
416589
416589
|
var getUtils = createUtilsGetter(new ImportsCachedInjector(function(moduleName) {
|
|
416590
|
-
return resolve6(
|
|
416590
|
+
return resolve6(dirname8, moduleName, absoluteImports);
|
|
416591
416591
|
}, function(name2) {
|
|
416592
416592
|
var _polyfillsNames$get, _polyfillsNames;
|
|
416593
416593
|
return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? undefined : _polyfillsNames.get(name2)) != null ? _polyfillsNames$get : Infinity;
|
|
@@ -416641,7 +416641,7 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
416641
416641
|
return;
|
|
416642
416642
|
}
|
|
416643
416643
|
var dep = version3 === "*" ? name2 : name2 + "@^" + version3;
|
|
416644
|
-
var found = missingDependencies.all ? false : mapGetOr(depsCache, name2 + " :: " +
|
|
416644
|
+
var found = missingDependencies.all ? false : mapGetOr(depsCache, name2 + " :: " + dirname8, function() {
|
|
416645
416645
|
return has();
|
|
416646
416646
|
});
|
|
416647
416647
|
if (!found) {
|
|
@@ -416649,7 +416649,7 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
416649
416649
|
}
|
|
416650
416650
|
}
|
|
416651
416651
|
};
|
|
416652
|
-
var provider = factory(api, providerOptions,
|
|
416652
|
+
var provider = factory(api, providerOptions, dirname8);
|
|
416653
416653
|
var providerName = provider.name || factory.name;
|
|
416654
416654
|
if (typeof provider[methodName] !== "function") {
|
|
416655
416655
|
throw new Error('The "' + providerName + `" provider doesn't support the "` + method2 + '" polyfilling method.');
|
|
@@ -416695,12 +416695,12 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag
|
|
|
416695
416695
|
};
|
|
416696
416696
|
}
|
|
416697
416697
|
function definePolyfillProvider(factory) {
|
|
416698
|
-
return declare(function(babelApi, options,
|
|
416698
|
+
return declare(function(babelApi, options, dirname8) {
|
|
416699
416699
|
babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0");
|
|
416700
416700
|
var traverse2 = babelApi.traverse;
|
|
416701
416701
|
var debugLog;
|
|
416702
416702
|
var missingDependencies = applyMissingDependenciesDefaults(options, babelApi);
|
|
416703
|
-
var _instantiateProvider = instantiateProvider(factory, options, missingDependencies,
|
|
416703
|
+
var _instantiateProvider = instantiateProvider(factory, options, missingDependencies, dirname8, function() {
|
|
416704
416704
|
return debugLog;
|
|
416705
416705
|
}, babelApi), debug14 = _instantiateProvider.debug, method2 = _instantiateProvider.method, targets = _instantiateProvider.targets, provider = _instantiateProvider.provider, providerName = _instantiateProvider.providerName, callProvider = _instantiateProvider.callProvider;
|
|
416706
416706
|
var createVisitor = method2 === "entry-global" ? entry : usage;
|
|
@@ -426984,7 +426984,7 @@ import readline from "node:readline";
|
|
|
426984
426984
|
import { execSync as execSync2 } from "node:child_process";
|
|
426985
426985
|
var import_semver = __toESM2(require_semver2(), 1);
|
|
426986
426986
|
// package.json
|
|
426987
|
-
var version = "0.1.
|
|
426987
|
+
var version = "0.1.68";
|
|
426988
426988
|
var package_default = {
|
|
426989
426989
|
name: "@tscircuit/cli",
|
|
426990
426990
|
version,
|
|
@@ -426993,7 +426993,7 @@ var package_default = {
|
|
|
426993
426993
|
"@babel/standalone": "^7.26.9",
|
|
426994
426994
|
"@biomejs/biome": "^1.9.4",
|
|
426995
426995
|
"@tscircuit/core": "^0.0.353",
|
|
426996
|
-
"@tscircuit/eval": "^0.0.
|
|
426996
|
+
"@tscircuit/eval": "^0.0.139",
|
|
426997
426997
|
"@tscircuit/fake-snippets": "^0.0.12",
|
|
426998
426998
|
"@tscircuit/file-server": "^0.0.14",
|
|
426999
426999
|
"@tscircuit/runframe": "^0.0.278",
|
|
@@ -433159,27 +433159,62 @@ function normalizeFsMap(fsMap) {
|
|
|
433159
433159
|
return normalizedFsMap;
|
|
433160
433160
|
}
|
|
433161
433161
|
|
|
433162
|
-
// node_modules/@tscircuit/eval/dist/eval/chunk-
|
|
433163
|
-
|
|
433162
|
+
// node_modules/@tscircuit/eval/dist/eval/chunk-5UJ4EED4.js
|
|
433163
|
+
function dirname6(path14) {
|
|
433164
|
+
if (!path14)
|
|
433165
|
+
return ".";
|
|
433166
|
+
const normalizedPath = path14.replace(/\\/g, "/");
|
|
433167
|
+
const cleanPath = normalizedPath.replace(/\/+$/, "");
|
|
433168
|
+
if (cleanPath.indexOf("/") === -1)
|
|
433169
|
+
return ".";
|
|
433170
|
+
return cleanPath.substring(0, cleanPath.lastIndexOf("/")) || "/";
|
|
433171
|
+
}
|
|
433172
|
+
function resolveRelativePath(importPath, cwd) {
|
|
433173
|
+
if (importPath.startsWith("../")) {
|
|
433174
|
+
const parentDir = dirname6(cwd);
|
|
433175
|
+
return resolveRelativePath(importPath.slice(3), parentDir);
|
|
433176
|
+
}
|
|
433177
|
+
if (importPath.startsWith("./")) {
|
|
433178
|
+
return resolveRelativePath(importPath.slice(2), cwd);
|
|
433179
|
+
}
|
|
433180
|
+
if (importPath.startsWith("/")) {
|
|
433181
|
+
return importPath.slice(1);
|
|
433182
|
+
}
|
|
433183
|
+
return `${cwd}/${importPath}`;
|
|
433184
|
+
}
|
|
433185
|
+
var resolveFilePath = (unknownFilePath, fsMapOrAllFilePaths, cwd) => {
|
|
433186
|
+
const resolvedPath = cwd ? resolveRelativePath(unknownFilePath, cwd) : unknownFilePath;
|
|
433164
433187
|
const filePaths = new Set(Array.isArray(fsMapOrAllFilePaths) ? fsMapOrAllFilePaths : Object.keys(fsMapOrAllFilePaths));
|
|
433165
|
-
if (filePaths.has(
|
|
433166
|
-
return
|
|
433188
|
+
if (filePaths.has(resolvedPath)) {
|
|
433189
|
+
return resolvedPath;
|
|
433167
433190
|
}
|
|
433168
433191
|
const normalizedFilePathMap = /* @__PURE__ */ new Map;
|
|
433169
433192
|
for (const filePath of filePaths) {
|
|
433170
433193
|
normalizedFilePathMap.set(normalizeFilePath(filePath), filePath);
|
|
433171
433194
|
}
|
|
433172
|
-
const
|
|
433173
|
-
if (normalizedFilePathMap.has(
|
|
433174
|
-
return normalizedFilePathMap.get(
|
|
433195
|
+
const normalizedResolvedPath = normalizeFilePath(resolvedPath);
|
|
433196
|
+
if (normalizedFilePathMap.has(normalizedResolvedPath)) {
|
|
433197
|
+
return normalizedFilePathMap.get(normalizedResolvedPath);
|
|
433175
433198
|
}
|
|
433176
433199
|
const extension = ["tsx", "ts", "json", "js", "jsx"];
|
|
433177
433200
|
for (const ext of extension) {
|
|
433178
|
-
const possibleFilePath = `${
|
|
433201
|
+
const possibleFilePath = `${normalizedResolvedPath}.${ext}`;
|
|
433179
433202
|
if (normalizedFilePathMap.has(possibleFilePath)) {
|
|
433180
433203
|
return normalizedFilePathMap.get(possibleFilePath);
|
|
433181
433204
|
}
|
|
433182
433205
|
}
|
|
433206
|
+
if (!unknownFilePath.startsWith("./") && !unknownFilePath.startsWith("../")) {
|
|
433207
|
+
const normalizedUnknownFilePath = normalizeFilePath(unknownFilePath);
|
|
433208
|
+
if (normalizedFilePathMap.has(normalizedUnknownFilePath)) {
|
|
433209
|
+
return normalizedFilePathMap.get(normalizedUnknownFilePath);
|
|
433210
|
+
}
|
|
433211
|
+
for (const ext of extension) {
|
|
433212
|
+
const possibleFilePath = `${normalizedUnknownFilePath}.${ext}`;
|
|
433213
|
+
if (normalizedFilePathMap.has(possibleFilePath)) {
|
|
433214
|
+
return normalizedFilePathMap.get(possibleFilePath);
|
|
433215
|
+
}
|
|
433216
|
+
}
|
|
433217
|
+
}
|
|
433183
433218
|
return null;
|
|
433184
433219
|
};
|
|
433185
433220
|
var resolveFilePathOrThrow = (unknownFilePath, fsMapOrAllFilePaths) => {
|
|
@@ -433187,12 +433222,12 @@ var resolveFilePathOrThrow = (unknownFilePath, fsMapOrAllFilePaths) => {
|
|
|
433187
433222
|
if (!resolvedFilePath) {
|
|
433188
433223
|
throw new Error(`File not found "${unknownFilePath}", available paths:
|
|
433189
433224
|
|
|
433190
|
-
${Object.keys(fsMapOrAllFilePaths)}`);
|
|
433225
|
+
${Object.keys(fsMapOrAllFilePaths).join(", ")}`);
|
|
433191
433226
|
}
|
|
433192
433227
|
return resolvedFilePath;
|
|
433193
433228
|
};
|
|
433194
433229
|
|
|
433195
|
-
// node_modules/@tscircuit/eval/dist/eval/chunk-
|
|
433230
|
+
// node_modules/@tscircuit/eval/dist/eval/chunk-5MTASRV5.js
|
|
433196
433231
|
var setupDefaultEntrypointIfNeeded = (opts) => {
|
|
433197
433232
|
if (!opts.entrypoint && !opts.mainComponentPath) {
|
|
433198
433233
|
if ("index.tsx" in opts.fsMap) {
|
|
@@ -455290,7 +455325,7 @@ extendCatalogue({
|
|
|
455290
455325
|
Bug: Chip
|
|
455291
455326
|
});
|
|
455292
455327
|
|
|
455293
|
-
// node_modules/@tscircuit/eval/dist/eval/chunk-
|
|
455328
|
+
// node_modules/@tscircuit/eval/dist/eval/chunk-VCOPK42V.js
|
|
455294
455329
|
var React5 = __toESM2(require_react(), 1);
|
|
455295
455330
|
|
|
455296
455331
|
// node_modules/jscad-fiber/dist/index.js
|
|
@@ -455965,7 +456000,7 @@ function createJSCADRenderer(jscad) {
|
|
|
455965
456000
|
return { createJSCADRoot };
|
|
455966
456001
|
}
|
|
455967
456002
|
|
|
455968
|
-
// node_modules/@tscircuit/eval/dist/eval/chunk-
|
|
456003
|
+
// node_modules/@tscircuit/eval/dist/eval/chunk-VCOPK42V.js
|
|
455969
456004
|
var import_react9 = __toESM2(require_react(), 1);
|
|
455970
456005
|
var import_standalone2 = __toESM2(require_babel(), 1);
|
|
455971
456006
|
var Babel = __toESM2(require_babel(), 1);
|
|
@@ -455991,21 +456026,20 @@ function createExecutionContext(webWorkerConfiguration, opts = {}) {
|
|
|
455991
456026
|
...webWorkerConfiguration
|
|
455992
456027
|
};
|
|
455993
456028
|
}
|
|
455994
|
-
function evalCompiledJs(compiledCode, preSuppliedImports) {
|
|
456029
|
+
function evalCompiledJs(compiledCode, preSuppliedImports, cwd) {
|
|
455995
456030
|
globalThis.__tscircuit_require = (name) => {
|
|
455996
|
-
|
|
455997
|
-
|
|
455998
|
-
|
|
455999
|
-
|
|
456000
|
-
}
|
|
456001
|
-
}
|
|
456002
|
-
if (!preSuppliedImports[name]) {
|
|
456003
|
-
throw new Error(`Import "${name}" not found`);
|
|
456031
|
+
const resolvedFilePath = resolveFilePath(name, preSuppliedImports, cwd);
|
|
456032
|
+
const hasResolvedFilePath = resolvedFilePath && preSuppliedImports[resolvedFilePath];
|
|
456033
|
+
if (!preSuppliedImports[name] && !hasResolvedFilePath) {
|
|
456034
|
+
throw new Error(`Import "${name}" not found ${cwd ? `in "${cwd}"` : ""}`);
|
|
456004
456035
|
}
|
|
456005
|
-
const mod = preSuppliedImports[name];
|
|
456036
|
+
const mod = preSuppliedImports[name] || preSuppliedImports[resolvedFilePath];
|
|
456006
456037
|
return new Proxy(mod, {
|
|
456007
456038
|
get(target, prop) {
|
|
456008
456039
|
if (!(prop in target)) {
|
|
456040
|
+
if (prop === "default") {
|
|
456041
|
+
return;
|
|
456042
|
+
}
|
|
456009
456043
|
throw new Error(`Component "${String(prop)}" is not exported by "${name}"`);
|
|
456010
456044
|
}
|
|
456011
456045
|
return target[prop];
|
|
@@ -456032,18 +456066,24 @@ var getImportsFromCode = (code) => {
|
|
|
456032
456066
|
};
|
|
456033
456067
|
var importLocalFile = async (importName, ctx, depth = 0) => {
|
|
456034
456068
|
const { fsMap, preSuppliedImports } = ctx;
|
|
456035
|
-
const fsPath = resolveFilePathOrThrow(importName
|
|
456069
|
+
const fsPath = resolveFilePathOrThrow(importName, fsMap);
|
|
456036
456070
|
if (!ctx.fsMap[fsPath]) {
|
|
456037
456071
|
throw new Error(`File "${fsPath}" not found`);
|
|
456038
456072
|
}
|
|
456039
456073
|
const fileContent = fsMap[fsPath];
|
|
456040
456074
|
if (fsPath.endsWith(".json")) {
|
|
456041
|
-
|
|
456042
|
-
|
|
456075
|
+
const jsonData = JSON.parse(fileContent);
|
|
456076
|
+
preSuppliedImports[fsPath] = {
|
|
456077
|
+
__esModule: true,
|
|
456078
|
+
default: jsonData
|
|
456079
|
+
};
|
|
456080
|
+
} else if (fsPath.endsWith(".tsx") || fsPath.endsWith(".ts")) {
|
|
456043
456081
|
const importNames = getImportsFromCode(fileContent);
|
|
456044
456082
|
for (const importName2 of importNames) {
|
|
456045
456083
|
if (!preSuppliedImports[importName2]) {
|
|
456046
|
-
await importEvalPath(importName2, ctx, depth + 1
|
|
456084
|
+
await importEvalPath(importName2, ctx, depth + 1, {
|
|
456085
|
+
cwd: dirname6(fsPath)
|
|
456086
|
+
});
|
|
456047
456087
|
}
|
|
456048
456088
|
}
|
|
456049
456089
|
const result = Babel.transform(fileContent, {
|
|
@@ -456055,13 +456095,13 @@ var importLocalFile = async (importName, ctx, depth = 0) => {
|
|
|
456055
456095
|
throw new Error("Failed to transform code");
|
|
456056
456096
|
}
|
|
456057
456097
|
try {
|
|
456058
|
-
const importRunResult = evalCompiledJs(result.code, preSuppliedImports);
|
|
456098
|
+
const importRunResult = evalCompiledJs(result.code, preSuppliedImports, dirname6(fsPath));
|
|
456059
456099
|
preSuppliedImports[fsPath] = importRunResult.exports;
|
|
456060
456100
|
} catch (error) {
|
|
456061
456101
|
throw new Error(`Eval compiled js error for "${importName}": ${error.message}`);
|
|
456062
456102
|
}
|
|
456063
456103
|
} else if (fsPath.endsWith(".js")) {
|
|
456064
|
-
preSuppliedImports[importName] = evalCompiledJs(fileContent, preSuppliedImports).exports;
|
|
456104
|
+
preSuppliedImports[importName] = evalCompiledJs(fileContent, preSuppliedImports, dirname6(fsPath)).exports;
|
|
456065
456105
|
} else {
|
|
456066
456106
|
throw new Error(`Unsupported file extension "${fsPath.split(".").pop()}" for "${fsPath}"`);
|
|
456067
456107
|
}
|
|
@@ -456080,7 +456120,7 @@ async function importSnippet(importName, ctx, depth = 0) {
|
|
|
456080
456120
|
console.error("Error importing snippet", e);
|
|
456081
456121
|
}
|
|
456082
456122
|
}
|
|
456083
|
-
async function importEvalPath(importName, ctx, depth = 0) {
|
|
456123
|
+
async function importEvalPath(importName, ctx, depth = 0, opts = {}) {
|
|
456084
456124
|
if (ctx.verbose) {
|
|
456085
456125
|
console.log(`[Worker] ${" ".repeat(depth)}➡️`, importName);
|
|
456086
456126
|
}
|
|
@@ -456093,13 +456133,14 @@ async function importEvalPath(importName, ctx, depth = 0) {
|
|
|
456093
456133
|
console.log("Max depth for imports reached");
|
|
456094
456134
|
return;
|
|
456095
456135
|
}
|
|
456096
|
-
|
|
456097
|
-
|
|
456136
|
+
const resolvedLocalImportPath = resolveFilePath(importName, ctx.fsMap, opts.cwd);
|
|
456137
|
+
if (resolvedLocalImportPath) {
|
|
456138
|
+
return importLocalFile(resolvedLocalImportPath, ctx, depth);
|
|
456098
456139
|
}
|
|
456099
456140
|
if (importName.startsWith("@tsci/")) {
|
|
456100
456141
|
return importSnippet(importName, ctx, depth);
|
|
456101
456142
|
}
|
|
456102
|
-
throw new Error(`
|
|
456143
|
+
throw new Error(`Unresolved import "${importName}" ${opts.cwd ? `from directory "${opts.cwd}"` : ""}`);
|
|
456103
456144
|
}
|
|
456104
456145
|
var CircuitRunner = class {
|
|
456105
456146
|
constructor() {
|
|
@@ -456195,6 +456236,15 @@ var import_debug20 = __toESM2(require_src(), 1);
|
|
|
456195
456236
|
import path14 from "node:path";
|
|
456196
456237
|
import fs15 from "node:fs";
|
|
456197
456238
|
var debug14 = import_debug20.default("tsci:generate-circuit-json");
|
|
456239
|
+
var ALLOWED_FILE_EXTENSIONS = [
|
|
456240
|
+
".tsx",
|
|
456241
|
+
".ts",
|
|
456242
|
+
".jsx",
|
|
456243
|
+
".js",
|
|
456244
|
+
".json",
|
|
456245
|
+
".txt",
|
|
456246
|
+
".md"
|
|
456247
|
+
];
|
|
456198
456248
|
async function generateCircuitJson({
|
|
456199
456249
|
filePath,
|
|
456200
456250
|
outputDir,
|
|
@@ -456214,16 +456264,23 @@ async function generateCircuitJson({
|
|
|
456214
456264
|
const fsMap = {
|
|
456215
456265
|
...await import_make_vfs2.getVirtualFileSystemFromDirPath({
|
|
456216
456266
|
dirPath: projectDir,
|
|
456267
|
+
fileMatchFn: (filePath2) => {
|
|
456268
|
+
if (filePath2.includes("node_modules/"))
|
|
456269
|
+
return false;
|
|
456270
|
+
if (filePath2.includes("dist/"))
|
|
456271
|
+
return false;
|
|
456272
|
+
if (filePath2.includes("build/"))
|
|
456273
|
+
return false;
|
|
456274
|
+
if (filePath2.match(/^\.[^\/]/))
|
|
456275
|
+
return false;
|
|
456276
|
+
if (!ALLOWED_FILE_EXTENSIONS.includes(path14.extname(filePath2)))
|
|
456277
|
+
return false;
|
|
456278
|
+
return true;
|
|
456279
|
+
},
|
|
456217
456280
|
contentFormat: "string"
|
|
456218
|
-
})
|
|
456219
|
-
"entrypoint.tsx": `
|
|
456220
|
-
import MyCircuit from "./${relativeComponentPath}"
|
|
456221
|
-
|
|
456222
|
-
circuit.add(<MyCircuit />)
|
|
456223
|
-
`
|
|
456281
|
+
})
|
|
456224
456282
|
};
|
|
456225
456283
|
await runner.executeWithFsMap({
|
|
456226
|
-
entrypoint: "entrypoint.tsx",
|
|
456227
456284
|
fsMap
|
|
456228
456285
|
});
|
|
456229
456286
|
await runner.renderUntilSettled();
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.69",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@babel/standalone": "^7.26.9",
|
|
7
7
|
"@biomejs/biome": "^1.9.4",
|
|
8
8
|
"@tscircuit/core": "^0.0.353",
|
|
9
|
-
"@tscircuit/eval": "^0.0.
|
|
9
|
+
"@tscircuit/eval": "^0.0.139",
|
|
10
10
|
"@tscircuit/fake-snippets": "^0.0.12",
|
|
11
11
|
"@tscircuit/file-server": "^0.0.14",
|
|
12
12
|
"@tscircuit/runframe": "^0.0.278",
|