jspm 4.1.5 → 4.2.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +326 -396
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -686,25 +686,25 @@ var require_brace_expansion = __commonJS({
686
686
  var pad = n2.some(isPadded);
687
687
  N = [];
688
688
  for (var i = x; test(i, y); i += incr) {
689
- var c18;
689
+ var c17;
690
690
  if (isAlphaSequence) {
691
- c18 = String.fromCharCode(i);
692
- if (c18 === "\\")
693
- c18 = "";
691
+ c17 = String.fromCharCode(i);
692
+ if (c17 === "\\")
693
+ c17 = "";
694
694
  } else {
695
- c18 = String(i);
695
+ c17 = String(i);
696
696
  if (pad) {
697
- var need = width - c18.length;
697
+ var need = width - c17.length;
698
698
  if (need > 0) {
699
699
  var z = new Array(need + 1).join("0");
700
700
  if (i < 0)
701
- c18 = "-" + z + c18.slice(1);
701
+ c17 = "-" + z + c17.slice(1);
702
702
  else
703
- c18 = z + c18;
703
+ c17 = z + c17;
704
704
  }
705
705
  }
706
706
  }
707
- N.push(c18);
707
+ N.push(c17);
708
708
  }
709
709
  } else {
710
710
  N = [];
@@ -780,25 +780,25 @@ var init_brace_expressions = __esm({
780
780
  let rangeStart = "";
781
781
  WHILE:
782
782
  while (i < glob.length) {
783
- const c18 = glob.charAt(i);
784
- if ((c18 === "!" || c18 === "^") && i === pos + 1) {
783
+ const c17 = glob.charAt(i);
784
+ if ((c17 === "!" || c17 === "^") && i === pos + 1) {
785
785
  negate = true;
786
786
  i++;
787
787
  continue;
788
788
  }
789
- if (c18 === "]" && sawStart && !escaping) {
789
+ if (c17 === "]" && sawStart && !escaping) {
790
790
  endPos = i + 1;
791
791
  break;
792
792
  }
793
793
  sawStart = true;
794
- if (c18 === "\\") {
794
+ if (c17 === "\\") {
795
795
  if (!escaping) {
796
796
  escaping = true;
797
797
  i++;
798
798
  continue;
799
799
  }
800
800
  }
801
- if (c18 === "[" && !escaping) {
801
+ if (c17 === "[" && !escaping) {
802
802
  for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
803
803
  if (glob.startsWith(cls, i)) {
804
804
  if (rangeStart) {
@@ -816,26 +816,26 @@ var init_brace_expressions = __esm({
816
816
  }
817
817
  escaping = false;
818
818
  if (rangeStart) {
819
- if (c18 > rangeStart) {
820
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c18));
821
- } else if (c18 === rangeStart) {
822
- ranges.push(braceEscape(c18));
819
+ if (c17 > rangeStart) {
820
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c17));
821
+ } else if (c17 === rangeStart) {
822
+ ranges.push(braceEscape(c17));
823
823
  }
824
824
  rangeStart = "";
825
825
  i++;
826
826
  continue;
827
827
  }
828
828
  if (glob.startsWith("-]", i + 1)) {
829
- ranges.push(braceEscape(c18 + "-"));
829
+ ranges.push(braceEscape(c17 + "-"));
830
830
  i += 2;
831
831
  continue;
832
832
  }
833
833
  if (glob.startsWith("-", i + 1)) {
834
- rangeStart = c18;
834
+ rangeStart = c17;
835
835
  i += 2;
836
836
  continue;
837
837
  }
838
- ranges.push(braceEscape(c18));
838
+ ranges.push(braceEscape(c17));
839
839
  i++;
840
840
  }
841
841
  if (endPos < i) {
@@ -873,7 +873,7 @@ var init_ast = __esm({
873
873
  init_brace_expressions();
874
874
  init_unescape();
875
875
  types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
876
- isExtglobType = (c18) => types.has(c18);
876
+ isExtglobType = (c17) => types.has(c17);
877
877
  startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
878
878
  startNoDot = "(?!\\.)";
879
879
  addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
@@ -987,11 +987,11 @@ var init_ast = __esm({
987
987
  this.push(part.clone(this));
988
988
  }
989
989
  clone(parent) {
990
- const c18 = new _AST(this.type, parent);
990
+ const c17 = new _AST(this.type, parent);
991
991
  for (const p of __privateGet(this, _parts)) {
992
- c18.copyIn(p);
992
+ c17.copyIn(p);
993
993
  }
994
- return c18;
994
+ return c17;
995
995
  }
996
996
  static fromGlob(pattern, options = {}) {
997
997
  var _a;
@@ -1217,38 +1217,38 @@ var init_ast = __esm({
1217
1217
  let i2 = pos;
1218
1218
  let acc2 = "";
1219
1219
  while (i2 < str.length) {
1220
- const c18 = str.charAt(i2++);
1221
- if (escaping || c18 === "\\") {
1220
+ const c17 = str.charAt(i2++);
1221
+ if (escaping || c17 === "\\") {
1222
1222
  escaping = !escaping;
1223
- acc2 += c18;
1223
+ acc2 += c17;
1224
1224
  continue;
1225
1225
  }
1226
1226
  if (inBrace) {
1227
1227
  if (i2 === braceStart + 1) {
1228
- if (c18 === "^" || c18 === "!") {
1228
+ if (c17 === "^" || c17 === "!") {
1229
1229
  braceNeg = true;
1230
1230
  }
1231
- } else if (c18 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1231
+ } else if (c17 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1232
1232
  inBrace = false;
1233
1233
  }
1234
- acc2 += c18;
1234
+ acc2 += c17;
1235
1235
  continue;
1236
- } else if (c18 === "[") {
1236
+ } else if (c17 === "[") {
1237
1237
  inBrace = true;
1238
1238
  braceStart = i2;
1239
1239
  braceNeg = false;
1240
- acc2 += c18;
1240
+ acc2 += c17;
1241
1241
  continue;
1242
1242
  }
1243
- if (!opt.noext && isExtglobType(c18) && str.charAt(i2) === "(") {
1243
+ if (!opt.noext && isExtglobType(c17) && str.charAt(i2) === "(") {
1244
1244
  ast.push(acc2);
1245
1245
  acc2 = "";
1246
- const ext2 = new _AST(c18, ast);
1246
+ const ext2 = new _AST(c17, ast);
1247
1247
  i2 = __privateMethod(_a = _AST, _parseAST, parseAST_fn).call(_a, str, ext2, i2, opt);
1248
1248
  ast.push(ext2);
1249
1249
  continue;
1250
1250
  }
1251
- acc2 += c18;
1251
+ acc2 += c17;
1252
1252
  }
1253
1253
  ast.push(acc2);
1254
1254
  return i2;
@@ -1258,45 +1258,45 @@ var init_ast = __esm({
1258
1258
  const parts = [];
1259
1259
  let acc = "";
1260
1260
  while (i < str.length) {
1261
- const c18 = str.charAt(i++);
1262
- if (escaping || c18 === "\\") {
1261
+ const c17 = str.charAt(i++);
1262
+ if (escaping || c17 === "\\") {
1263
1263
  escaping = !escaping;
1264
- acc += c18;
1264
+ acc += c17;
1265
1265
  continue;
1266
1266
  }
1267
1267
  if (inBrace) {
1268
1268
  if (i === braceStart + 1) {
1269
- if (c18 === "^" || c18 === "!") {
1269
+ if (c17 === "^" || c17 === "!") {
1270
1270
  braceNeg = true;
1271
1271
  }
1272
- } else if (c18 === "]" && !(i === braceStart + 2 && braceNeg)) {
1272
+ } else if (c17 === "]" && !(i === braceStart + 2 && braceNeg)) {
1273
1273
  inBrace = false;
1274
1274
  }
1275
- acc += c18;
1275
+ acc += c17;
1276
1276
  continue;
1277
- } else if (c18 === "[") {
1277
+ } else if (c17 === "[") {
1278
1278
  inBrace = true;
1279
1279
  braceStart = i;
1280
1280
  braceNeg = false;
1281
- acc += c18;
1281
+ acc += c17;
1282
1282
  continue;
1283
1283
  }
1284
- if (isExtglobType(c18) && str.charAt(i) === "(") {
1284
+ if (isExtglobType(c17) && str.charAt(i) === "(") {
1285
1285
  part.push(acc);
1286
1286
  acc = "";
1287
- const ext2 = new _AST(c18, part);
1287
+ const ext2 = new _AST(c17, part);
1288
1288
  part.push(ext2);
1289
1289
  i = __privateMethod(_b = _AST, _parseAST, parseAST_fn).call(_b, str, ext2, i, opt);
1290
1290
  continue;
1291
1291
  }
1292
- if (c18 === "|") {
1292
+ if (c17 === "|") {
1293
1293
  part.push(acc);
1294
1294
  acc = "";
1295
1295
  parts.push(part);
1296
1296
  part = new _AST(null, ast);
1297
1297
  continue;
1298
1298
  }
1299
- if (c18 === ")") {
1299
+ if (c17 === ")") {
1300
1300
  if (acc === "" && __privateGet(ast, _parts).length === 0) {
1301
1301
  __privateSet(ast, _emptyExt, true);
1302
1302
  }
@@ -1305,7 +1305,7 @@ var init_ast = __esm({
1305
1305
  ast.push(...parts, part);
1306
1306
  return i;
1307
1307
  }
1308
- acc += c18;
1308
+ acc += c17;
1309
1309
  }
1310
1310
  ast.type = null;
1311
1311
  __privateSet(ast, _hasMagic, void 0);
@@ -1329,13 +1329,13 @@ var init_ast = __esm({
1329
1329
  let re = "";
1330
1330
  let uflag = false;
1331
1331
  for (let i = 0; i < glob.length; i++) {
1332
- const c18 = glob.charAt(i);
1332
+ const c17 = glob.charAt(i);
1333
1333
  if (escaping) {
1334
1334
  escaping = false;
1335
- re += (reSpecials.has(c18) ? "\\" : "") + c18;
1335
+ re += (reSpecials.has(c17) ? "\\" : "") + c17;
1336
1336
  continue;
1337
1337
  }
1338
- if (c18 === "\\") {
1338
+ if (c17 === "\\") {
1339
1339
  if (i === glob.length - 1) {
1340
1340
  re += "\\\\";
1341
1341
  } else {
@@ -1343,7 +1343,7 @@ var init_ast = __esm({
1343
1343
  }
1344
1344
  continue;
1345
1345
  }
1346
- if (c18 === "[") {
1346
+ if (c17 === "[") {
1347
1347
  const [src, needUflag, consumed, magic] = parseClass(glob, i);
1348
1348
  if (consumed) {
1349
1349
  re += src;
@@ -1353,7 +1353,7 @@ var init_ast = __esm({
1353
1353
  continue;
1354
1354
  }
1355
1355
  }
1356
- if (c18 === "*") {
1356
+ if (c17 === "*") {
1357
1357
  if (noEmpty && glob === "*")
1358
1358
  re += starNoEmpty;
1359
1359
  else
@@ -1361,12 +1361,12 @@ var init_ast = __esm({
1361
1361
  hasMagic = true;
1362
1362
  continue;
1363
1363
  }
1364
- if (c18 === "?") {
1364
+ if (c17 === "?") {
1365
1365
  re += qmark;
1366
1366
  hasMagic = true;
1367
1367
  continue;
1368
1368
  }
1369
- re += regExpEscape(c18);
1369
+ re += regExpEscape(c17);
1370
1370
  }
1371
1371
  return [re, unescape2(glob), !!hasMagic, uflag];
1372
1372
  };
@@ -2409,6 +2409,7 @@ async function getGenerator(flags, configOverride = null, inputMap) {
2409
2409
  resolutions: getResolutions(flags),
2410
2410
  cache: getCacheMode(flags),
2411
2411
  integrity: flags.integrity,
2412
+ scopedLink: true,
2412
2413
  typeScript: true,
2413
2414
  commonJS: true,
2414
2415
  // TODO: only for --local flag
@@ -2901,7 +2902,7 @@ function expandExportsResolutions(exports, env2, files, exportsResolutions = /*
2901
2902
  }
2902
2903
  }
2903
2904
  }
2904
- function expandTargetResolutions(exports, files, env2, targetList, envExclusions = env2.map((condition) => conditionMutualExclusions[condition]).filter((c18) => c18), firstOnly) {
2905
+ function expandTargetResolutions(exports, files, env2, targetList, envExclusions = env2.map((condition) => conditionMutualExclusions[condition]).filter((c17) => c17), firstOnly) {
2905
2906
  if (typeof exports === "string") {
2906
2907
  if (exports.startsWith("./"))
2907
2908
  targetList.add(exports);
@@ -3930,8 +3931,8 @@ function decodeInteger(mappings, pos, state, j) {
3930
3931
  let shift = 0;
3931
3932
  let integer = 0;
3932
3933
  do {
3933
- const c18 = mappings.charCodeAt(pos++);
3934
- integer = charToInt[c18];
3934
+ const c17 = mappings.charCodeAt(pos++);
3935
+ integer = charToInt[c17];
3935
3936
  value |= (integer & 31) << shift;
3936
3937
  shift += 5;
3937
3938
  } while (integer & 32);
@@ -4912,8 +4913,8 @@ function getMemberReturnExpressionWhenCalled(members, memberName) {
4912
4913
  return UNKNOWN_RETURN_EXPRESSION;
4913
4914
  return [members[memberName].returns, false];
4914
4915
  }
4915
- function skipThrough(node, st, c18) {
4916
- c18(node, st);
4916
+ function skipThrough(node, st, c17) {
4917
+ c17(node, st);
4917
4918
  }
4918
4919
  function ignore(_node, _st, _c) {
4919
4920
  }
@@ -8705,9 +8706,9 @@ var init_node_entry = __esm({
8705
8706
  intToChar = new Uint8Array(64);
8706
8707
  charToInt = new Uint8Array(128);
8707
8708
  for (let i = 0; i < chars$1.length; i++) {
8708
- const c18 = chars$1.charCodeAt(i);
8709
- intToChar[i] = c18;
8710
- charToInt[c18] = i;
8709
+ const c17 = chars$1.charCodeAt(i);
8710
+ intToChar[i] = c17;
8711
+ charToInt[c17] = i;
8711
8712
  }
8712
8713
  td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
8713
8714
  decode(buf) {
@@ -12060,284 +12061,284 @@ var init_node_entry = __esm({
12060
12061
  valueOf: returnsString
12061
12062
  }, objectMembers);
12062
12063
  base$1 = {};
12063
- base$1.Program = base$1.BlockStatement = base$1.StaticBlock = function(node, st, c18) {
12064
+ base$1.Program = base$1.BlockStatement = base$1.StaticBlock = function(node, st, c17) {
12064
12065
  for (var i = 0, list2 = node.body; i < list2.length; i += 1) {
12065
12066
  var stmt = list2[i];
12066
- c18(stmt, st, "Statement");
12067
+ c17(stmt, st, "Statement");
12067
12068
  }
12068
12069
  };
12069
12070
  base$1.Statement = skipThrough;
12070
12071
  base$1.EmptyStatement = ignore;
12071
- base$1.ExpressionStatement = base$1.ParenthesizedExpression = base$1.ChainExpression = function(node, st, c18) {
12072
- return c18(node.expression, st, "Expression");
12072
+ base$1.ExpressionStatement = base$1.ParenthesizedExpression = base$1.ChainExpression = function(node, st, c17) {
12073
+ return c17(node.expression, st, "Expression");
12073
12074
  };
12074
- base$1.IfStatement = function(node, st, c18) {
12075
- c18(node.test, st, "Expression");
12076
- c18(node.consequent, st, "Statement");
12075
+ base$1.IfStatement = function(node, st, c17) {
12076
+ c17(node.test, st, "Expression");
12077
+ c17(node.consequent, st, "Statement");
12077
12078
  if (node.alternate) {
12078
- c18(node.alternate, st, "Statement");
12079
+ c17(node.alternate, st, "Statement");
12079
12080
  }
12080
12081
  };
12081
- base$1.LabeledStatement = function(node, st, c18) {
12082
- return c18(node.body, st, "Statement");
12082
+ base$1.LabeledStatement = function(node, st, c17) {
12083
+ return c17(node.body, st, "Statement");
12083
12084
  };
12084
12085
  base$1.BreakStatement = base$1.ContinueStatement = ignore;
12085
- base$1.WithStatement = function(node, st, c18) {
12086
- c18(node.object, st, "Expression");
12087
- c18(node.body, st, "Statement");
12086
+ base$1.WithStatement = function(node, st, c17) {
12087
+ c17(node.object, st, "Expression");
12088
+ c17(node.body, st, "Statement");
12088
12089
  };
12089
- base$1.SwitchStatement = function(node, st, c18) {
12090
- c18(node.discriminant, st, "Expression");
12090
+ base$1.SwitchStatement = function(node, st, c17) {
12091
+ c17(node.discriminant, st, "Expression");
12091
12092
  for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
12092
12093
  var cs = list$1[i$1];
12093
12094
  if (cs.test) {
12094
- c18(cs.test, st, "Expression");
12095
+ c17(cs.test, st, "Expression");
12095
12096
  }
12096
12097
  for (var i = 0, list2 = cs.consequent; i < list2.length; i += 1) {
12097
12098
  var cons = list2[i];
12098
- c18(cons, st, "Statement");
12099
+ c17(cons, st, "Statement");
12099
12100
  }
12100
12101
  }
12101
12102
  };
12102
- base$1.SwitchCase = function(node, st, c18) {
12103
+ base$1.SwitchCase = function(node, st, c17) {
12103
12104
  if (node.test) {
12104
- c18(node.test, st, "Expression");
12105
+ c17(node.test, st, "Expression");
12105
12106
  }
12106
12107
  for (var i = 0, list2 = node.consequent; i < list2.length; i += 1) {
12107
12108
  var cons = list2[i];
12108
- c18(cons, st, "Statement");
12109
+ c17(cons, st, "Statement");
12109
12110
  }
12110
12111
  };
12111
- base$1.ReturnStatement = base$1.YieldExpression = base$1.AwaitExpression = function(node, st, c18) {
12112
+ base$1.ReturnStatement = base$1.YieldExpression = base$1.AwaitExpression = function(node, st, c17) {
12112
12113
  if (node.argument) {
12113
- c18(node.argument, st, "Expression");
12114
+ c17(node.argument, st, "Expression");
12114
12115
  }
12115
12116
  };
12116
- base$1.ThrowStatement = base$1.SpreadElement = function(node, st, c18) {
12117
- return c18(node.argument, st, "Expression");
12117
+ base$1.ThrowStatement = base$1.SpreadElement = function(node, st, c17) {
12118
+ return c17(node.argument, st, "Expression");
12118
12119
  };
12119
- base$1.TryStatement = function(node, st, c18) {
12120
- c18(node.block, st, "Statement");
12120
+ base$1.TryStatement = function(node, st, c17) {
12121
+ c17(node.block, st, "Statement");
12121
12122
  if (node.handler) {
12122
- c18(node.handler, st);
12123
+ c17(node.handler, st);
12123
12124
  }
12124
12125
  if (node.finalizer) {
12125
- c18(node.finalizer, st, "Statement");
12126
+ c17(node.finalizer, st, "Statement");
12126
12127
  }
12127
12128
  };
12128
- base$1.CatchClause = function(node, st, c18) {
12129
+ base$1.CatchClause = function(node, st, c17) {
12129
12130
  if (node.param) {
12130
- c18(node.param, st, "Pattern");
12131
+ c17(node.param, st, "Pattern");
12131
12132
  }
12132
- c18(node.body, st, "Statement");
12133
+ c17(node.body, st, "Statement");
12133
12134
  };
12134
- base$1.WhileStatement = base$1.DoWhileStatement = function(node, st, c18) {
12135
- c18(node.test, st, "Expression");
12136
- c18(node.body, st, "Statement");
12135
+ base$1.WhileStatement = base$1.DoWhileStatement = function(node, st, c17) {
12136
+ c17(node.test, st, "Expression");
12137
+ c17(node.body, st, "Statement");
12137
12138
  };
12138
- base$1.ForStatement = function(node, st, c18) {
12139
+ base$1.ForStatement = function(node, st, c17) {
12139
12140
  if (node.init) {
12140
- c18(node.init, st, "ForInit");
12141
+ c17(node.init, st, "ForInit");
12141
12142
  }
12142
12143
  if (node.test) {
12143
- c18(node.test, st, "Expression");
12144
+ c17(node.test, st, "Expression");
12144
12145
  }
12145
12146
  if (node.update) {
12146
- c18(node.update, st, "Expression");
12147
+ c17(node.update, st, "Expression");
12147
12148
  }
12148
- c18(node.body, st, "Statement");
12149
+ c17(node.body, st, "Statement");
12149
12150
  };
12150
- base$1.ForInStatement = base$1.ForOfStatement = function(node, st, c18) {
12151
- c18(node.left, st, "ForInit");
12152
- c18(node.right, st, "Expression");
12153
- c18(node.body, st, "Statement");
12151
+ base$1.ForInStatement = base$1.ForOfStatement = function(node, st, c17) {
12152
+ c17(node.left, st, "ForInit");
12153
+ c17(node.right, st, "Expression");
12154
+ c17(node.body, st, "Statement");
12154
12155
  };
12155
- base$1.ForInit = function(node, st, c18) {
12156
+ base$1.ForInit = function(node, st, c17) {
12156
12157
  if (node.type === "VariableDeclaration") {
12157
- c18(node, st);
12158
+ c17(node, st);
12158
12159
  } else {
12159
- c18(node, st, "Expression");
12160
+ c17(node, st, "Expression");
12160
12161
  }
12161
12162
  };
12162
12163
  base$1.DebuggerStatement = ignore;
12163
- base$1.FunctionDeclaration = function(node, st, c18) {
12164
- return c18(node, st, "Function");
12164
+ base$1.FunctionDeclaration = function(node, st, c17) {
12165
+ return c17(node, st, "Function");
12165
12166
  };
12166
- base$1.VariableDeclaration = function(node, st, c18) {
12167
+ base$1.VariableDeclaration = function(node, st, c17) {
12167
12168
  for (var i = 0, list2 = node.declarations; i < list2.length; i += 1) {
12168
12169
  var decl = list2[i];
12169
- c18(decl, st);
12170
+ c17(decl, st);
12170
12171
  }
12171
12172
  };
12172
- base$1.VariableDeclarator = function(node, st, c18) {
12173
- c18(node.id, st, "Pattern");
12173
+ base$1.VariableDeclarator = function(node, st, c17) {
12174
+ c17(node.id, st, "Pattern");
12174
12175
  if (node.init) {
12175
- c18(node.init, st, "Expression");
12176
+ c17(node.init, st, "Expression");
12176
12177
  }
12177
12178
  };
12178
- base$1.Function = function(node, st, c18) {
12179
+ base$1.Function = function(node, st, c17) {
12179
12180
  if (node.id) {
12180
- c18(node.id, st, "Pattern");
12181
+ c17(node.id, st, "Pattern");
12181
12182
  }
12182
12183
  for (var i = 0, list2 = node.params; i < list2.length; i += 1) {
12183
12184
  var param = list2[i];
12184
- c18(param, st, "Pattern");
12185
+ c17(param, st, "Pattern");
12185
12186
  }
12186
- c18(node.body, st, node.expression ? "Expression" : "Statement");
12187
+ c17(node.body, st, node.expression ? "Expression" : "Statement");
12187
12188
  };
12188
- base$1.Pattern = function(node, st, c18) {
12189
+ base$1.Pattern = function(node, st, c17) {
12189
12190
  if (node.type === "Identifier") {
12190
- c18(node, st, "VariablePattern");
12191
+ c17(node, st, "VariablePattern");
12191
12192
  } else if (node.type === "MemberExpression") {
12192
- c18(node, st, "MemberPattern");
12193
+ c17(node, st, "MemberPattern");
12193
12194
  } else {
12194
- c18(node, st);
12195
+ c17(node, st);
12195
12196
  }
12196
12197
  };
12197
12198
  base$1.VariablePattern = ignore;
12198
12199
  base$1.MemberPattern = skipThrough;
12199
- base$1.RestElement = function(node, st, c18) {
12200
- return c18(node.argument, st, "Pattern");
12200
+ base$1.RestElement = function(node, st, c17) {
12201
+ return c17(node.argument, st, "Pattern");
12201
12202
  };
12202
- base$1.ArrayPattern = function(node, st, c18) {
12203
+ base$1.ArrayPattern = function(node, st, c17) {
12203
12204
  for (var i = 0, list2 = node.elements; i < list2.length; i += 1) {
12204
12205
  var elt = list2[i];
12205
12206
  if (elt) {
12206
- c18(elt, st, "Pattern");
12207
+ c17(elt, st, "Pattern");
12207
12208
  }
12208
12209
  }
12209
12210
  };
12210
- base$1.ObjectPattern = function(node, st, c18) {
12211
+ base$1.ObjectPattern = function(node, st, c17) {
12211
12212
  for (var i = 0, list2 = node.properties; i < list2.length; i += 1) {
12212
12213
  var prop = list2[i];
12213
12214
  if (prop.type === "Property") {
12214
12215
  if (prop.computed) {
12215
- c18(prop.key, st, "Expression");
12216
+ c17(prop.key, st, "Expression");
12216
12217
  }
12217
- c18(prop.value, st, "Pattern");
12218
+ c17(prop.value, st, "Pattern");
12218
12219
  } else if (prop.type === "RestElement") {
12219
- c18(prop.argument, st, "Pattern");
12220
+ c17(prop.argument, st, "Pattern");
12220
12221
  }
12221
12222
  }
12222
12223
  };
12223
12224
  base$1.Expression = skipThrough;
12224
12225
  base$1.ThisExpression = base$1.Super = base$1.MetaProperty = ignore;
12225
- base$1.ArrayExpression = function(node, st, c18) {
12226
+ base$1.ArrayExpression = function(node, st, c17) {
12226
12227
  for (var i = 0, list2 = node.elements; i < list2.length; i += 1) {
12227
12228
  var elt = list2[i];
12228
12229
  if (elt) {
12229
- c18(elt, st, "Expression");
12230
+ c17(elt, st, "Expression");
12230
12231
  }
12231
12232
  }
12232
12233
  };
12233
- base$1.ObjectExpression = function(node, st, c18) {
12234
+ base$1.ObjectExpression = function(node, st, c17) {
12234
12235
  for (var i = 0, list2 = node.properties; i < list2.length; i += 1) {
12235
12236
  var prop = list2[i];
12236
- c18(prop, st);
12237
+ c17(prop, st);
12237
12238
  }
12238
12239
  };
12239
12240
  base$1.FunctionExpression = base$1.ArrowFunctionExpression = base$1.FunctionDeclaration;
12240
- base$1.SequenceExpression = function(node, st, c18) {
12241
+ base$1.SequenceExpression = function(node, st, c17) {
12241
12242
  for (var i = 0, list2 = node.expressions; i < list2.length; i += 1) {
12242
12243
  var expr = list2[i];
12243
- c18(expr, st, "Expression");
12244
+ c17(expr, st, "Expression");
12244
12245
  }
12245
12246
  };
12246
- base$1.TemplateLiteral = function(node, st, c18) {
12247
+ base$1.TemplateLiteral = function(node, st, c17) {
12247
12248
  for (var i = 0, list2 = node.quasis; i < list2.length; i += 1) {
12248
12249
  var quasi = list2[i];
12249
- c18(quasi, st);
12250
+ c17(quasi, st);
12250
12251
  }
12251
12252
  for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) {
12252
12253
  var expr = list$1[i$1];
12253
- c18(expr, st, "Expression");
12254
+ c17(expr, st, "Expression");
12254
12255
  }
12255
12256
  };
12256
12257
  base$1.TemplateElement = ignore;
12257
- base$1.UnaryExpression = base$1.UpdateExpression = function(node, st, c18) {
12258
- c18(node.argument, st, "Expression");
12258
+ base$1.UnaryExpression = base$1.UpdateExpression = function(node, st, c17) {
12259
+ c17(node.argument, st, "Expression");
12259
12260
  };
12260
- base$1.BinaryExpression = base$1.LogicalExpression = function(node, st, c18) {
12261
- c18(node.left, st, "Expression");
12262
- c18(node.right, st, "Expression");
12261
+ base$1.BinaryExpression = base$1.LogicalExpression = function(node, st, c17) {
12262
+ c17(node.left, st, "Expression");
12263
+ c17(node.right, st, "Expression");
12263
12264
  };
12264
- base$1.AssignmentExpression = base$1.AssignmentPattern = function(node, st, c18) {
12265
- c18(node.left, st, "Pattern");
12266
- c18(node.right, st, "Expression");
12265
+ base$1.AssignmentExpression = base$1.AssignmentPattern = function(node, st, c17) {
12266
+ c17(node.left, st, "Pattern");
12267
+ c17(node.right, st, "Expression");
12267
12268
  };
12268
- base$1.ConditionalExpression = function(node, st, c18) {
12269
- c18(node.test, st, "Expression");
12270
- c18(node.consequent, st, "Expression");
12271
- c18(node.alternate, st, "Expression");
12269
+ base$1.ConditionalExpression = function(node, st, c17) {
12270
+ c17(node.test, st, "Expression");
12271
+ c17(node.consequent, st, "Expression");
12272
+ c17(node.alternate, st, "Expression");
12272
12273
  };
12273
- base$1.NewExpression = base$1.CallExpression = function(node, st, c18) {
12274
- c18(node.callee, st, "Expression");
12274
+ base$1.NewExpression = base$1.CallExpression = function(node, st, c17) {
12275
+ c17(node.callee, st, "Expression");
12275
12276
  if (node.arguments) {
12276
12277
  for (var i = 0, list2 = node.arguments; i < list2.length; i += 1) {
12277
12278
  var arg = list2[i];
12278
- c18(arg, st, "Expression");
12279
+ c17(arg, st, "Expression");
12279
12280
  }
12280
12281
  }
12281
12282
  };
12282
- base$1.MemberExpression = function(node, st, c18) {
12283
- c18(node.object, st, "Expression");
12283
+ base$1.MemberExpression = function(node, st, c17) {
12284
+ c17(node.object, st, "Expression");
12284
12285
  if (node.computed) {
12285
- c18(node.property, st, "Expression");
12286
+ c17(node.property, st, "Expression");
12286
12287
  }
12287
12288
  };
12288
- base$1.ExportNamedDeclaration = base$1.ExportDefaultDeclaration = function(node, st, c18) {
12289
+ base$1.ExportNamedDeclaration = base$1.ExportDefaultDeclaration = function(node, st, c17) {
12289
12290
  if (node.declaration) {
12290
- c18(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression");
12291
+ c17(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression");
12291
12292
  }
12292
12293
  if (node.source) {
12293
- c18(node.source, st, "Expression");
12294
+ c17(node.source, st, "Expression");
12294
12295
  }
12295
12296
  };
12296
- base$1.ExportAllDeclaration = function(node, st, c18) {
12297
+ base$1.ExportAllDeclaration = function(node, st, c17) {
12297
12298
  if (node.exported) {
12298
- c18(node.exported, st);
12299
+ c17(node.exported, st);
12299
12300
  }
12300
- c18(node.source, st, "Expression");
12301
+ c17(node.source, st, "Expression");
12301
12302
  };
12302
- base$1.ImportDeclaration = function(node, st, c18) {
12303
+ base$1.ImportDeclaration = function(node, st, c17) {
12303
12304
  for (var i = 0, list2 = node.specifiers; i < list2.length; i += 1) {
12304
12305
  var spec = list2[i];
12305
- c18(spec, st);
12306
+ c17(spec, st);
12306
12307
  }
12307
- c18(node.source, st, "Expression");
12308
+ c17(node.source, st, "Expression");
12308
12309
  };
12309
- base$1.ImportExpression = function(node, st, c18) {
12310
- c18(node.source, st, "Expression");
12310
+ base$1.ImportExpression = function(node, st, c17) {
12311
+ c17(node.source, st, "Expression");
12311
12312
  };
12312
12313
  base$1.ImportSpecifier = base$1.ImportDefaultSpecifier = base$1.ImportNamespaceSpecifier = base$1.Identifier = base$1.PrivateIdentifier = base$1.Literal = ignore;
12313
- base$1.TaggedTemplateExpression = function(node, st, c18) {
12314
- c18(node.tag, st, "Expression");
12315
- c18(node.quasi, st, "Expression");
12314
+ base$1.TaggedTemplateExpression = function(node, st, c17) {
12315
+ c17(node.tag, st, "Expression");
12316
+ c17(node.quasi, st, "Expression");
12316
12317
  };
12317
- base$1.ClassDeclaration = base$1.ClassExpression = function(node, st, c18) {
12318
- return c18(node, st, "Class");
12318
+ base$1.ClassDeclaration = base$1.ClassExpression = function(node, st, c17) {
12319
+ return c17(node, st, "Class");
12319
12320
  };
12320
- base$1.Class = function(node, st, c18) {
12321
+ base$1.Class = function(node, st, c17) {
12321
12322
  if (node.id) {
12322
- c18(node.id, st, "Pattern");
12323
+ c17(node.id, st, "Pattern");
12323
12324
  }
12324
12325
  if (node.superClass) {
12325
- c18(node.superClass, st, "Expression");
12326
+ c17(node.superClass, st, "Expression");
12326
12327
  }
12327
- c18(node.body, st);
12328
+ c17(node.body, st);
12328
12329
  };
12329
- base$1.ClassBody = function(node, st, c18) {
12330
+ base$1.ClassBody = function(node, st, c17) {
12330
12331
  for (var i = 0, list2 = node.body; i < list2.length; i += 1) {
12331
12332
  var elt = list2[i];
12332
- c18(elt, st);
12333
+ c17(elt, st);
12333
12334
  }
12334
12335
  };
12335
- base$1.MethodDefinition = base$1.PropertyDefinition = base$1.Property = function(node, st, c18) {
12336
+ base$1.MethodDefinition = base$1.PropertyDefinition = base$1.Property = function(node, st, c17) {
12336
12337
  if (node.computed) {
12337
- c18(node.key, st, "Expression");
12338
+ c17(node.key, st, "Expression");
12338
12339
  }
12339
12340
  if (node.value) {
12340
- c18(node.value, st, "Expression");
12341
+ c17(node.value, st, "Expression");
12341
12342
  }
12342
12343
  };
12343
12344
  ArrowFunctionExpression$1 = "ArrowFunctionExpression";
@@ -22756,11 +22757,11 @@ ${next}` : out;
22756
22757
  return false;
22757
22758
  };
22758
22759
  pp$6.updateContext = function(prevType) {
22759
- var update2, type = this.type;
22760
+ var update, type = this.type;
22760
22761
  if (type.keyword && prevType === types$1.dot) {
22761
22762
  this.exprAllowed = false;
22762
- } else if (update2 = type.updateContext) {
22763
- update2.call(this, prevType);
22763
+ } else if (update = type.updateContext) {
22764
+ update.call(this, prevType);
22764
22765
  } else {
22765
22766
  this.exprAllowed = type.beforeExpr;
22766
22767
  }
@@ -23028,13 +23029,13 @@ ${next}` : out;
23028
23029
  expr = this.parseAwait(forInit);
23029
23030
  sawUnary = true;
23030
23031
  } else if (this.type.prefix) {
23031
- var node = this.startNode(), update2 = this.type === types$1.incDec;
23032
+ var node = this.startNode(), update = this.type === types$1.incDec;
23032
23033
  node.operator = this.value;
23033
23034
  node.prefix = true;
23034
23035
  this.next();
23035
- node.argument = this.parseMaybeUnary(null, true, update2, forInit);
23036
+ node.argument = this.parseMaybeUnary(null, true, update, forInit);
23036
23037
  this.checkExpressionErrors(refDestructuringErrors, true);
23037
- if (update2) {
23038
+ if (update) {
23038
23039
  this.checkLValSimple(node.argument);
23039
23040
  } else if (this.strict && node.operator === "delete" && node.argument.type === "Identifier") {
23040
23041
  this.raiseRecoverable(node.start, "Deleting local variable in strict mode");
@@ -23043,7 +23044,7 @@ ${next}` : out;
23043
23044
  } else {
23044
23045
  sawUnary = true;
23045
23046
  }
23046
- expr = this.finishNode(node, update2 ? "UpdateExpression" : "UnaryExpression");
23047
+ expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
23047
23048
  } else if (!sawUnary && this.type === types$1.privateId) {
23048
23049
  if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) {
23049
23050
  this.unexpected();
@@ -24069,12 +24070,12 @@ ${next}` : out;
24069
24070
  if (i >= l) {
24070
24071
  return -1;
24071
24072
  }
24072
- var c18 = s.charCodeAt(i);
24073
- if (!(forceU || this.switchU) || c18 <= 55295 || c18 >= 57344 || i + 1 >= l) {
24074
- return c18;
24073
+ var c17 = s.charCodeAt(i);
24074
+ if (!(forceU || this.switchU) || c17 <= 55295 || c17 >= 57344 || i + 1 >= l) {
24075
+ return c17;
24075
24076
  }
24076
24077
  var next = s.charCodeAt(i + 1);
24077
- return next >= 56320 && next <= 57343 ? (c18 << 10) + next - 56613888 : c18;
24078
+ return next >= 56320 && next <= 57343 ? (c17 << 10) + next - 56613888 : c17;
24078
24079
  };
24079
24080
  RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {
24080
24081
  if (forceU === void 0)
@@ -24084,8 +24085,8 @@ ${next}` : out;
24084
24085
  if (i >= l) {
24085
24086
  return l;
24086
24087
  }
24087
- var c18 = s.charCodeAt(i), next;
24088
- if (!(forceU || this.switchU) || c18 <= 55295 || c18 >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) {
24088
+ var c17 = s.charCodeAt(i), next;
24089
+ if (!(forceU || this.switchU) || c17 <= 55295 || c17 >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) {
24089
24090
  return i + 1;
24090
24091
  }
24091
24092
  return i + 2;
@@ -28133,7 +28134,7 @@ ${val.stack}`;
28133
28134
 
28134
28135
  // src/cli.ts
28135
28136
  import { readFileSync as readFileSync3 } from "node:fs";
28136
- import c17 from "picocolors";
28137
+ import c16 from "picocolors";
28137
28138
 
28138
28139
  // ../node_modules/cac/dist/index.mjs
28139
28140
  import { EventEmitter } from "events";
@@ -28740,11 +28741,11 @@ init_utils();
28740
28741
  init_init();
28741
28742
  import { pathToFileURL as pathToFileURL2 } from "node:url";
28742
28743
  import c7 from "picocolors";
28743
- async function install(flags) {
28744
+ async function install(flags, update) {
28744
28745
  const log2 = withType("install/install");
28745
28746
  log2(`Flags: ${JSON.stringify(flags)}`);
28746
28747
  const env2 = await getEnv(flags);
28747
- const input = await getInputMap(flags);
28748
+ const input = update ? {} : await getInputMap(flags);
28748
28749
  log2(`Input map parsed: ${input}`);
28749
28750
  let generator, staticDeps, dynamicDeps;
28750
28751
  try {
@@ -28893,71 +28894,10 @@ async function handleLocalFile(resolvedModule, inlinePins, generator) {
28893
28894
  inlinePins.push(...pins);
28894
28895
  }
28895
28896
 
28896
- // src/update.ts
28897
- init_utils();
28898
- init_logger();
28899
- init_init();
28900
- import c9 from "picocolors";
28901
- async function update(packages, flags) {
28902
- const log2 = withType("update/update");
28903
- log2(`Updating packages: ${packages.join(", ")}`);
28904
- log2(`Flags: ${JSON.stringify(flags)}`);
28905
- const env2 = await getEnv(flags);
28906
- const generator = await getGenerator(flags);
28907
- let inputPins = [];
28908
- const input = await getInputMap(flags);
28909
- if (typeof input !== "undefined") {
28910
- inputPins = await generator.addMappings(input);
28911
- }
28912
- log2(`Input map parsed: ${input}`);
28913
- if (packages.length === 0 && inputPins.length === 0) {
28914
- !flags.quiet && console.warn(
28915
- `${c9.red(
28916
- "Warning:"
28917
- )} Nothing to update. Please provide a list of packages or a non-empty input file.`
28918
- );
28919
- try {
28920
- const projectConfig = await initProject({
28921
- quiet: flags.quiet,
28922
- dir: process.cwd()
28923
- });
28924
- !flags.quiet && console.log(`${c9.blue("Info:")} Current project: ${c9.bold(projectConfig.name)}`);
28925
- if (projectConfig.version) {
28926
- !flags.quiet && console.log(`${c9.blue("Info:")} Project version: ${c9.bold(projectConfig.version)}`);
28927
- }
28928
- } catch (e) {
28929
- if (e instanceof JspmError && !flags.quiet) {
28930
- console.warn(`${c9.yellow("Warning:")} ${e.message}`);
28931
- }
28932
- }
28933
- return;
28934
- } else {
28935
- try {
28936
- const projectConfig = await initProject({
28937
- quiet: flags.quiet,
28938
- dir: process.cwd()
28939
- });
28940
- log2(`Project validated: ${projectConfig.name}`);
28941
- } catch (e) {
28942
- if (e instanceof JspmError && !flags.quiet) {
28943
- console.warn(`${c9.yellow("Warning:")} ${e.message}`);
28944
- }
28945
- }
28946
- !flags.quiet && startSpinner(
28947
- `Updating ${c9.bold(packages.length ? packages.join(", ") : "everything")}. (${env2.join(
28948
- ", "
28949
- )})`
28950
- );
28951
- await generator.update(packages.length ? packages : void 0);
28952
- stopSpinner();
28953
- }
28954
- return await writeOutput(generator, null, env2, flags, flags.quiet);
28955
- }
28956
-
28957
28897
  // src/config-cmd.ts
28958
28898
  init_config();
28959
28899
  init_utils();
28960
- import c10 from "picocolors";
28900
+ import c9 from "picocolors";
28961
28901
  async function configCmd(action, configKey, value, flags) {
28962
28902
  const scope = flags.local ? "local" : "user";
28963
28903
  if (flags.provider) {
@@ -29000,7 +28940,7 @@ async function getConfig(key, flags) {
29000
28940
  const value = getConfigValue(config, key);
29001
28941
  if (value === void 0) {
29002
28942
  if (!flags.quiet) {
29003
- console.log(`${c10.yellow("Warning:")} Configuration key '${key}' is not set.`);
28943
+ console.log(`${c9.yellow("Warning:")} Configuration key '${key}' is not set.`);
29004
28944
  }
29005
28945
  return;
29006
28946
  }
@@ -29022,7 +28962,7 @@ async function setConfig(key, value, scope, flags) {
29022
28962
  await updateConfig(updates, scope);
29023
28963
  if (!flags.quiet) {
29024
28964
  console.log(
29025
- `${c10.green("Ok:")} Set ${scope} config ${c10.cyan(key)} to ${typeof parsedValue === "object" ? JSON.stringify(parsedValue) : parsedValue}`
28965
+ `${c9.green("Ok:")} Set ${scope} config ${c9.cyan(key)} to ${typeof parsedValue === "object" ? JSON.stringify(parsedValue) : parsedValue}`
29026
28966
  );
29027
28967
  }
29028
28968
  } catch (err) {
@@ -29033,7 +28973,7 @@ async function deleteConfig(key, scope, flags) {
29033
28973
  const config = await loadConfig();
29034
28974
  if (getConfigValue(config, key) === void 0) {
29035
28975
  if (!flags.quiet) {
29036
- console.log(`${c10.yellow("Warning:")} Configuration key '${key}' does not exist.`);
28976
+ console.log(`${c9.yellow("Warning:")} Configuration key '${key}' does not exist.`);
29037
28977
  }
29038
28978
  return;
29039
28979
  }
@@ -29041,7 +28981,7 @@ async function deleteConfig(key, scope, flags) {
29041
28981
  try {
29042
28982
  await saveConfig(config, scope);
29043
28983
  if (!flags.quiet) {
29044
- console.log(`${c10.green("Ok:")} Deleted ${scope} config key ${c10.cyan(key)}`);
28984
+ console.log(`${c9.green("Ok:")} Deleted ${scope} config key ${c9.cyan(key)}`);
29045
28985
  }
29046
28986
  } catch (err) {
29047
28987
  throw new JspmError(`Failed to update configuration: ${err.message}`);
@@ -29142,7 +29082,7 @@ init_node_entry();
29142
29082
  init_utils();
29143
29083
  init_init();
29144
29084
  import jspmRollup from "@jspm/plugin-rollup";
29145
- import c11 from "picocolors";
29085
+ import c10 from "picocolors";
29146
29086
  async function build(flags) {
29147
29087
  const projectConfig = await initProject(flags);
29148
29088
  const env2 = await getEnv(flags);
@@ -29176,7 +29116,7 @@ async function build(flags) {
29176
29116
  const generator = await getGenerator(flags);
29177
29117
  try {
29178
29118
  if (!flags.quiet)
29179
- startSpinner(`Building package ${c11.cyan(projectConfig.name)}...`);
29119
+ startSpinner(`Building package ${c10.cyan(projectConfig.name)}...`);
29180
29120
  const baseUrl = pathToFileURL4(projectConfig.projectPath).href;
29181
29121
  const externalPackages = Object.keys(projectConfig.dependencies || {});
29182
29122
  const bundle = await rollup({
@@ -29255,7 +29195,7 @@ async function build(flags) {
29255
29195
  stopSpinner();
29256
29196
  if (flags.install !== false) {
29257
29197
  if (!flags.quiet) {
29258
- console.log(`${c11.cyan("Info:")} Generating import map in build directory...`);
29198
+ console.log(`${c10.cyan("Info:")} Generating import map in build directory...`);
29259
29199
  }
29260
29200
  const map = getInputPath(flags);
29261
29201
  process.chdir(flags.out);
@@ -29272,22 +29212,22 @@ async function build(flags) {
29272
29212
  try {
29273
29213
  await install(installFlags);
29274
29214
  if (!flags.quiet) {
29275
- console.log(`${c11.green("\u2713")} Import map generated in ${c11.cyan(flags.out)}`);
29215
+ console.log(`${c10.green("\u2713")} Import map generated in ${c10.cyan(flags.out)}`);
29276
29216
  }
29277
29217
  } catch (error2) {
29278
29218
  if (!flags.quiet) {
29279
- console.warn(`${c11.yellow("Warning:")} Failed to generate import map: ${error2.message}`);
29219
+ console.warn(`${c10.yellow("Warning:")} Failed to generate import map: ${error2.message}`);
29280
29220
  }
29281
29221
  }
29282
29222
  }
29283
29223
  if (!flags.quiet) {
29284
- const infoMsg = flags.install !== false ? `${c11.green("\u2713")} Built ${c11.cyan(projectConfig.name)} to ${c11.cyan(
29224
+ const infoMsg = flags.install !== false ? `${c10.green("\u2713")} Built ${c10.cyan(projectConfig.name)} to ${c10.cyan(
29285
29225
  flags.out
29286
- )} with import map.` : `${c11.green("\u2713")} Built ${c11.cyan(projectConfig.name)} to ${c11.cyan(
29226
+ )} with import map.` : `${c10.green("\u2713")} Built ${c10.cyan(projectConfig.name)} to ${c10.cyan(
29287
29227
  flags.out
29288
29228
  )}.
29289
29229
 
29290
- ${c11.cyan("Info:")} Run ${c11.bold(
29230
+ ${c10.cyan("Info:")} Run ${c10.bold(
29291
29231
  `jspm -d ${flags.out} install --release`
29292
29232
  )} to create a production import map.`;
29293
29233
  console.log(infoMsg);
@@ -29348,7 +29288,7 @@ function cssPlugin({ minify, baseUrl }) {
29348
29288
  import fs8 from "node:fs/promises";
29349
29289
  import path6 from "node:path";
29350
29290
  import { pathToFileURL as pathToFileURL5 } from "node:url";
29351
- import c12 from "picocolors";
29291
+ import c11 from "picocolors";
29352
29292
 
29353
29293
  // node_modules/open/index.js
29354
29294
  import process6 from "node:process";
@@ -29824,20 +29764,20 @@ init_utils();
29824
29764
  init_logger();
29825
29765
  init_config();
29826
29766
  function showShortcuts(directory) {
29827
- console.log(`${c12.magenta(c12.bold("\nKeyboard shortcuts:"))}
29828
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" o ")))} ${c12.dim("Open package URL in the browser")}
29829
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" l ")))} ${c12.dim(
29767
+ console.log(`${c11.magenta(c11.bold("\nKeyboard shortcuts:"))}
29768
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" o ")))} ${c11.dim("Open package URL in the browser")}
29769
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" l ")))} ${c11.dim(
29830
29770
  "Open package listing page in the browser"
29831
29771
  )}
29832
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" c ")))} ${c12.dim(
29772
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" c ")))} ${c11.dim(
29833
29773
  "Copy HTML usage script code snippet to clipboard"
29834
29774
  )}
29835
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" p ")))} ${c12.dim(
29775
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" p ")))} ${c11.dim(
29836
29776
  "Open self-contained preview URL in the browser"
29837
29777
  )}
29838
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" r ")))} ${c12.dim("Force republish")}
29839
- \u2192 ${c12.bold(c12.bgBlueBright(c12.whiteBright(" q ")))} ${c12.dim("Stop (or Ctrl+C)")}`);
29840
- console.log(`${c12.blue("Info:")} Watching for changes in ${c12.cyan(directory)}...`);
29778
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" r ")))} ${c11.dim("Force republish")}
29779
+ \u2192 ${c11.bold(c11.bgBlueBright(c11.whiteBright(" q ")))} ${c11.dim("Stop (or Ctrl+C)")}`);
29780
+ console.log(`${c11.blue("Info:")} Watching for changes in ${c11.cyan(directory)}...`);
29841
29781
  process.stdin.setRawMode?.(true);
29842
29782
  process.stdin.resume();
29843
29783
  }
@@ -29876,14 +29816,14 @@ async function eject(flags) {
29876
29816
  if (name.includes("@"))
29877
29817
  name = name.slice(0, name.indexOf("@"));
29878
29818
  const version3 = pkg.slice(4 + name.length + 1);
29879
- startSpinner(`Ejecting ${c12.bold(pkg)}...`);
29819
+ startSpinner(`Ejecting ${c11.bold(pkg)}...`);
29880
29820
  await generator.eject({ name, version: version3, provider: provider2 }, ".");
29881
29821
  stopSpinner();
29882
- startSpinner(`Merging published import map for ${c12.bold(pkg)}...`);
29822
+ startSpinner(`Merging published import map for ${c11.bold(pkg)}...`);
29883
29823
  const env2 = await getEnv(flags);
29884
29824
  await writeOutput(generator, null, env2, flags, flags.quiet);
29885
29825
  stopSpinner();
29886
- console.log(`${c12.green("Ok:")} Package ${c12.green(pkg)} ejected into ${c12.bold(flags.dir)}`);
29826
+ console.log(`${c11.green("Ok:")} Package ${c11.green(pkg)} ejected into ${c11.bold(flags.dir)}`);
29887
29827
  }
29888
29828
  async function publish(flags = {}) {
29889
29829
  const log2 = withType("publish/publish");
@@ -29953,11 +29893,11 @@ async function publishOnce(name, version3, directory, flags, logSnippet, prepare
29953
29893
  );
29954
29894
  }
29955
29895
  if (prepareScript) {
29956
- console.log(`${c12.blue("Info:")} Running ${c12.bold("prepare")} script...`);
29896
+ console.log(`${c11.blue("Info:")} Running ${c11.bold("prepare")} script...`);
29957
29897
  await runPackageScript(prepareScript, directory);
29958
- console.log(`${c12.blue("Info:")} ${c12.bold("prepare")} script completed`);
29898
+ console.log(`${c11.blue("Info:")} ${c11.bold("prepare")} script completed`);
29959
29899
  }
29960
- startSpinner(`Publishing ${c12.bold(`${name}@${version3}`)} to ${publishProvider}...`);
29900
+ startSpinner(`Publishing ${c11.bold(`${name}@${version3}`)} to ${publishProvider}...`);
29961
29901
  const generator = await getGenerator(flags, {
29962
29902
  mapUrl: pathToFileURL5(`${directory}/`)
29963
29903
  });
@@ -29972,16 +29912,16 @@ async function publishOnce(name, version3, directory, flags, logSnippet, prepare
29972
29912
  });
29973
29913
  stopSpinner();
29974
29914
  console.log(
29975
- `${c12.green("Ok:")} Package published to ${c12.green(packageUrl)} with import map ${c12.green(
29915
+ `${c11.green("Ok:")} Package published to ${c11.green(packageUrl)} with import map ${c11.green(
29976
29916
  mapUrl
29977
29917
  )}`
29978
29918
  );
29979
29919
  if (codeSnippet && logSnippet) {
29980
29920
  console.log(
29981
29921
  `
29982
- ${c12.magentaBright(c12.bold("HTML Usage:"))}
29922
+ ${c11.magentaBright(c11.bold("HTML Usage:"))}
29983
29923
 
29984
- ${c12.greenBright(
29924
+ ${c11.greenBright(
29985
29925
  cliHtmlHighlight(codeSnippet)
29986
29926
  )}`
29987
29927
  );
@@ -30021,7 +29961,7 @@ async function startWatchMode(name, version3, directory, ignore2, include, flags
30021
29961
  hideShortcuts();
30022
29962
  }
30023
29963
  console.log(`
30024
- ${c12.blue("Info:")} Watch mode stopped`);
29964
+ ${c11.blue("Info:")} Watch mode stopped`);
30025
29965
  process.exit(0);
30026
29966
  }
30027
29967
  process.on("SIGINT", stopWatch);
@@ -30095,7 +30035,7 @@ ${codeSnippet.split("\n").filter((l) => !l.startsWith("<!--") || !l.endsWith("--
30095
30035
  else
30096
30036
  hideShortcuts();
30097
30037
  console.log(
30098
- `${c12.blue("Info:")} ${forcedRepublish ? "Requesting republish" : changes.length > 1 ? "Multiple changes detected" : `${path6.relative(directory, changes[0]).replace(/\\/g, "/")} changed`}, republishing...`
30038
+ `${c11.blue("Info:")} ${forcedRepublish ? "Requesting republish" : changes.length > 1 ? "Multiple changes detected" : `${path6.relative(directory, changes[0]).replace(/\\/g, "/")} changed`}, republishing...`
30099
30039
  );
30100
30040
  }
30101
30041
  forcedRepublish = false;
@@ -30114,7 +30054,7 @@ ${codeSnippet.split("\n").filter((l) => !l.startsWith("<!--") || !l.endsWith("--
30114
30054
  }
30115
30055
  } catch (error2) {
30116
30056
  lastRunWasError = true;
30117
- console.error(`${c12.red("Error:")} Watch mode error`);
30057
+ console.error(`${c11.red("Error:")} Watch mode error`);
30118
30058
  console.error(error2);
30119
30059
  startSpinner("Waiting for update to fix the error...");
30120
30060
  waiting = true;
@@ -30123,22 +30063,22 @@ ${codeSnippet.split("\n").filter((l) => !l.startsWith("<!--") || !l.endsWith("--
30123
30063
  }
30124
30064
 
30125
30065
  // src/auth.ts
30126
- import c13 from "picocolors";
30066
+ import c12 from "picocolors";
30127
30067
  init_utils();
30128
30068
  init_config();
30129
30069
  async function list() {
30130
- console.log(`${c13.magenta(c13.bold("Available providers:"))}`);
30070
+ console.log(`${c12.magenta(c12.bold("Available providers:"))}`);
30131
30071
  const providers = availableProviders.filter((provider2) => !provider2.includes("#"));
30132
30072
  const config = await loadConfig();
30133
30073
  const configuredProviders = config.providers || {};
30134
30074
  for (const provider2 of providers) {
30135
30075
  const isAuthenticated = !!configuredProviders[provider2]?.authToken;
30136
- const authStatus = isAuthenticated ? c13.green("authenticated") : c13.yellow("not authenticated");
30137
- console.log(` ${c13.cyan(provider2)} ${c13.dim("\u2192")} ${authStatus}`);
30076
+ const authStatus = isAuthenticated ? c12.green("authenticated") : c12.yellow("not authenticated");
30077
+ console.log(` ${c12.cyan(provider2)} ${c12.dim("\u2192")} ${authStatus}`);
30138
30078
  }
30139
30079
  console.log();
30140
30080
  console.log(
30141
- `${c13.blue("Info:")} Use ${c13.bold("jspm auth <provider>")} to authenticate with a provider.`
30081
+ `${c12.blue("Info:")} Use ${c12.bold("jspm auth <provider>")} to authenticate with a provider.`
30142
30082
  );
30143
30083
  }
30144
30084
  async function provider(providerName, flags = {}) {
@@ -30155,7 +30095,7 @@ async function provider(providerName, flags = {}) {
30155
30095
  username,
30156
30096
  verify: (url, instructions) => {
30157
30097
  console.log(`To authenticate with ${providerName}:`);
30158
- console.log(`${c13.bold(c13.blue(url))}`);
30098
+ console.log(`${c12.bold(c12.blue(url))}`);
30159
30099
  console.log(`${instructions}
30160
30100
  `);
30161
30101
  if (shouldOpen) {
@@ -30176,12 +30116,12 @@ async function provider(providerName, flags = {}) {
30176
30116
  }
30177
30117
  config.providers[provider2].authToken = result.token;
30178
30118
  await saveConfig(config, "user");
30179
- console.log(`${c13.green("Ok:")} Authentication successful`);
30119
+ console.log(`${c12.green("Ok:")} Authentication successful`);
30180
30120
  console.log(
30181
- `${c13.blue("Info:")} Token saved in JSPM configuration for provider '${provider2}'`
30121
+ `${c12.blue("Info:")} Token saved in JSPM configuration for provider '${provider2}'`
30182
30122
  );
30183
30123
  } else {
30184
- console.log(`${c13.yellow("Warning:")} Authentication completed but no token was returned`);
30124
+ console.log(`${c12.yellow("Warning:")} Authentication completed but no token was returned`);
30185
30125
  }
30186
30126
  } catch (error2) {
30187
30127
  if (error2.message?.includes("does not support authentication")) {
@@ -30196,7 +30136,7 @@ import { fileURLToPath as fileURLToPath3, pathToFileURL as pathToFileURL6 } from
30196
30136
  import { basename as basename4, dirname as dirname5, join as join5, relative as relative4, resolve as resolve4 } from "node:path";
30197
30137
  import { createServer } from "node:http";
30198
30138
  import { readFile as readFile4, stat as stat3 } from "node:fs/promises";
30199
- import c15 from "picocolors";
30139
+ import c14 from "picocolors";
30200
30140
 
30201
30141
  // ../node_modules/mime/dist/types/other.js
30202
30142
  var types3 = {
@@ -32032,7 +31972,7 @@ function createHotMap(map) {
32032
31972
 
32033
31973
  // src/serve-utils.ts
32034
31974
  import { stat as stat2 } from "node:fs/promises";
32035
- import c14 from "picocolors";
31975
+ import c13 from "picocolors";
32036
31976
  init_utils();
32037
31977
  var showingShortcuts = false;
32038
31978
  var showingShortcutsWatch = false;
@@ -32048,7 +31988,7 @@ function showShortcuts2(serverUrl, isWatchMode = false) {
32048
31988
  }
32049
31989
  if (isWatchMode) {
32050
31990
  showingShortcutsWatch = true;
32051
- console.log(`${c14.blue("Info:")} Watching for file changes...`);
31991
+ console.log(`${c13.blue("Info:")} Watching for file changes...`);
32052
31992
  }
32053
31993
  process.stdin.setRawMode?.(true);
32054
31994
  process.stdin.resume();
@@ -32063,15 +32003,15 @@ function setupKeyHandler(serverUrl) {
32063
32003
  case "q":
32064
32004
  hideShortcuts2();
32065
32005
  console.log(`
32066
- ${c14.blue("Info:")} Server stopped`);
32006
+ ${c13.blue("Info:")} Server stopped`);
32067
32007
  process.exit(0);
32068
32008
  break;
32069
32009
  case "o":
32070
- console.log(`${c14.blue("Info:")} Opening ${serverUrl} in browser`);
32010
+ console.log(`${c13.blue("Info:")} Opening ${serverUrl} in browser`);
32071
32011
  open_default(serverUrl);
32072
32012
  break;
32073
32013
  case "c":
32074
- console.log(`${c14.blue("Info:")} Copied server URL to clipboard`);
32014
+ console.log(`${c13.blue("Info:")} Copied server URL to clipboard`);
32075
32015
  copyToClipboard(serverUrl);
32076
32016
  break;
32077
32017
  }
@@ -32108,13 +32048,13 @@ function lintMessage({
32108
32048
  code
32109
32049
  }) {
32110
32050
  hideShortcuts2();
32111
- console.log(`${c14.yellow("Warning:")} Problem in HTML file ${c14.bold(file)}:`);
32112
- console.log(`${c14.yellow(` \u2192 ${name}`)}${description ? `
32113
- ${c14.dim(description)}` : ""}`);
32051
+ console.log(`${c13.yellow("Warning:")} Problem in HTML file ${c13.bold(file)}:`);
32052
+ console.log(`${c13.yellow(` \u2192 ${name}`)}${description ? `
32053
+ ${c13.dim(description)}` : ""}`);
32114
32054
  if (code) {
32115
32055
  if (code.title)
32116
32056
  console.log(`
32117
- ${c14.magenta(code.title)}`);
32057
+ ${c13.magenta(code.title)}`);
32118
32058
  console.log(`
32119
32059
  ${cliHtmlHighlight(code.snippet)}
32120
32060
  `);
@@ -32223,12 +32163,12 @@ async function serve(flags = {}) {
32223
32163
  } else if (filePath.endsWith(".jsx") || filePath.endsWith(".tsx")) {
32224
32164
  lintMessage({
32225
32165
  file: relativePath,
32226
- name: `JSX is not supported in ${c15.bold("jspm serve")}`,
32166
+ name: `JSX is not supported in ${c14.bold("jspm serve")}`,
32227
32167
  description: `Consider one of the following alternatives:
32228
- 1. Run an initial preprocessor step separately compiling e.g. ${c15.bold(
32168
+ 1. Run an initial preprocessor step separately compiling e.g. ${c14.bold(
32229
32169
  "src/**/*.jsx"
32230
- )} into ${c15.bold("lib/**/*.js")}.
32231
- 2. Use a JSX-like templating library like htm (${c15.cyan("https://www.npmjs.com/package/htm")}).
32170
+ )} into ${c14.bold("lib/**/*.js")}.
32171
+ 2. Use a JSX-like templating library like htm (${c14.cyan("https://www.npmjs.com/package/htm")}).
32232
32172
  3. Consider alternative React-based workflow tooling for JSX application workflows.`
32233
32173
  });
32234
32174
  const content = await readFile4(filePath, "utf8");
@@ -32248,8 +32188,8 @@ async function serve(flags = {}) {
32248
32188
  } catch (error2) {
32249
32189
  hideShortcuts2();
32250
32190
  console.error(
32251
- `${c15.red(`TypeScript ${error2.code || "Error"}`)}: ${error2.message}
32252
- ${c15.bold(
32191
+ `${c14.red(`TypeScript ${error2.code || "Error"}`)}: ${error2.message}
32192
+ ${c14.bold(
32253
32193
  `${relative4(resolvedDir, filePath).replace(/\\/g, "/")}:[${error2.startLine || ""}:${error2.startColumn || ""}]`
32254
32194
  )}
32255
32195
  ${error2.snippet}`
@@ -32277,7 +32217,7 @@ ${error2.snippet}`
32277
32217
  lintMessage({
32278
32218
  file: relativePath2,
32279
32219
  name: `Inline import map not tracked by this serve instance`,
32280
- description: `The HTML file has an inline import map, but that is not being watched by this server. Use ${c15.bold(
32220
+ description: `The HTML file has an inline import map, but that is not being watched by this server. Use ${c14.bold(
32281
32221
  `jspm serve -m ${relativePath2}`
32282
32222
  )} to run a server tracking the install of the inline import map in this HTML file.`
32283
32223
  });
@@ -32288,7 +32228,7 @@ ${error2.snippet}`
32288
32228
  name: `Missing the ${missingMap ? "import map script " : ""}${missingMap && missingEsms ? "and the " : ""}${missingEsms ? "ES Module Shims polyfill" : ""}`,
32289
32229
  description: `This application will not support hot reloading${missingEsms ? missingMap ? "" : " or work in Chrome 132, Safari 18.3 or Firefox" : ""}.`,
32290
32230
  code: {
32291
- title: `Add the following HTML snippet to ${c15.bold(relativePath2)}:`,
32231
+ title: `Add the following HTML snippet to ${c14.bold(relativePath2)}:`,
32292
32232
  snippet: await esmsCodeSnippet(relMapPath)
32293
32233
  }
32294
32234
  });
@@ -32337,10 +32277,10 @@ ${error2.snippet}`
32337
32277
  if (mapDeps && !inMap) {
32338
32278
  lintMessage({
32339
32279
  file: relativePath2,
32340
- name: `Module ${c15.bold(
32341
- c15.cyan(relModule)
32280
+ name: `Module ${c14.bold(
32281
+ c14.cyan(relModule)
32342
32282
  )} is not part of the JSPM project import map graph so may not load correctly`,
32343
- description: `To fix, add it as an entry point export in the ${c15.bold(
32283
+ description: `To fix, add it as an entry point export in the ${c14.bold(
32344
32284
  "package.json"
32345
32285
  )}.`,
32346
32286
  code: {
@@ -32354,11 +32294,11 @@ ${error2.snippet}`
32354
32294
  if (module !== projectConfig.name && !module.startsWith(`${projectConfig.name}/`)) {
32355
32295
  lintMessage({
32356
32296
  file: relativePath2,
32357
- name: `Bare module specifier import ${c15.bold(
32358
- c15.cyan(`'${module}'`)
32297
+ name: `Bare module specifier import ${c14.bold(
32298
+ c14.cyan(`'${module}'`)
32359
32299
  )} is not mapped by the import map. Either update the package.json "name" or update the HTML to use an import of "jspm" or "jspm/...".`,
32360
- description: `Only bare specifiers matching the project name ${c15.cyan(
32361
- c15.bold(`'${projectConfig.name}'`)
32300
+ description: `Only bare specifiers matching the project name ${c14.cyan(
32301
+ c14.bold(`'${projectConfig.name}'`)
32362
32302
  )} are mapped.`,
32363
32303
  code: {
32364
32304
  title: "Correct JSPM HTML Script:",
@@ -32368,12 +32308,12 @@ ${error2.snippet}`
32368
32308
  } else if (Object.entries(entries).length === 0) {
32369
32309
  lintMessage({
32370
32310
  file: relativePath2,
32371
- name: `Bare module specifier import ${c15.bold(
32372
- c15.cyan(`'${module}'`)
32311
+ name: `Bare module specifier import ${c14.bold(
32312
+ c14.cyan(`'${module}'`)
32373
32313
  )} is not mapped by the import map`,
32374
32314
  description: `The project package.json file doesn't define any entry points in its "exports" field. Try adding one.`,
32375
32315
  code: {
32376
- title: `To map import ${c15.cyan(`'${projectConfig.name}'`)} in package.json:`,
32316
+ title: `To map import ${c14.cyan(`'${projectConfig.name}'`)} in package.json:`,
32377
32317
  snippet: `
32378
32318
  "exports": {
32379
32319
  ".": "./entrypoint.js"
@@ -32384,14 +32324,14 @@ ${error2.snippet}`
32384
32324
  } else if (!Object.entries(entries).some((mod) => mod[0] === module)) {
32385
32325
  lintMessage({
32386
32326
  file: relativePath2,
32387
- name: `Bare module specifier import ${c15.bold(
32388
- c15.cyan(`'${module}'`)
32327
+ name: `Bare module specifier import ${c14.bold(
32328
+ c14.cyan(`'${module}'`)
32389
32329
  )} is not mapped by the import map`,
32390
32330
  description: `To fix, either add it as an entry point exportor make sure to only import one of the defined entry points from the package.json.`,
32391
32331
  code: printedAvailableExports ? void 0 : Object.entries(entries).length > 0 ? {
32392
32332
  title: "Available package.json entry points:",
32393
32333
  snippet: Object.entries(entries).map(
32394
- ([impt, modules]) => `${c15.green(impt)} \u2192 ${modules.map((m) => c15.cyan(m)).join(", ")}`
32334
+ ([impt, modules]) => `${c14.green(impt)} \u2192 ${modules.map((m) => c14.cyan(m)).join(", ")}`
32395
32335
  ).join("\n")
32396
32336
  } : {
32397
32337
  title: "package.json:",
@@ -32428,27 +32368,27 @@ ${error2.snippet}`
32428
32368
  });
32429
32369
  server.listen(port, async () => {
32430
32370
  console.log("");
32431
- console.log(`${c15.blue("App name: ")} ${c15.dim(name)}`);
32432
- console.log(`${c15.blue("Server URL: ")} ${c15.bold(serverUrl)}`);
32433
- console.log(`${c15.blue("Serving Path: ")} ${c15.dim(resolvedDir)}`);
32371
+ console.log(`${c14.blue("App name: ")} ${c14.dim(name)}`);
32372
+ console.log(`${c14.blue("Server URL: ")} ${c14.bold(serverUrl)}`);
32373
+ console.log(`${c14.blue("Serving Path: ")} ${c14.dim(resolvedDir)}`);
32434
32374
  if (!flags.static) {
32435
32375
  console.log(
32436
- `${c15.blue("Watcher: ")} ${c15.dim(
32376
+ `${c14.blue("Watcher: ")} ${c14.dim(
32437
32377
  `Enabled (pass --no-watch to disable)${flags.install ? ", reinstalling importmap.js on changes with hot reloading" : " for hot reloading only"}`
32438
32378
  )}`
32439
32379
  );
32440
32380
  } else {
32441
- console.log(`${c15.blue("Watcher: ")} ${c15.dim("Disabled")}`);
32381
+ console.log(`${c14.blue("Watcher: ")} ${c14.dim("Disabled")}`);
32442
32382
  }
32443
32383
  if (flags.typeStripping) {
32444
32384
  console.log(
32445
- `${c15.blue("Middleware: ")} ${c15.dim(
32385
+ `${c14.blue("Middleware: ")} ${c14.dim(
32446
32386
  `TypeScript type stripping${!flags.static ? ", hot reloading via importmap.js injection" : ", importmap.js unmodified"}`
32447
32387
  )}`
32448
32388
  );
32449
32389
  } else {
32450
32390
  console.log(
32451
- `${c15.blue("Middleware: ")} ${c15.dim(
32391
+ `${c14.blue("Middleware: ")} ${c14.dim(
32452
32392
  `Type stripping disabled${!flags.static ? ", hot reloading via importmap.js injection" : " - the server is performing no content modifications"}`
32453
32393
  )}`
32454
32394
  );
@@ -32462,7 +32402,7 @@ ${error2.snippet}`
32462
32402
  console.log("");
32463
32403
  } catch (e) {
32464
32404
  stopSpinner();
32465
- console.error(`${c15.red("Install Error:")} `, e instanceof JspmError ? e.message : e);
32405
+ console.error(`${c14.red("Install Error:")} `, e instanceof JspmError ? e.message : e);
32466
32406
  return null;
32467
32407
  }
32468
32408
  if (!result)
@@ -32526,7 +32466,7 @@ ${error2.snippet}`
32526
32466
  hideShortcuts2();
32527
32467
  const displayPath = relative4(resolvedDir, changes[0]).replace(/\\/g, "/");
32528
32468
  console.log(
32529
- `${c15.blue("Watch:")} ${changes.length > 1 ? `${changes.length} files changed` : `${displayPath} changed`}`
32469
+ `${c14.blue("Watch:")} ${changes.length > 1 ? `${changes.length} files changed` : `${displayPath} changed`}`
32530
32470
  );
32531
32471
  let newMap;
32532
32472
  if (generateMap && (mapError || changes.some(
@@ -32554,10 +32494,10 @@ ${error2.snippet}`
32554
32494
  }
32555
32495
  }, 500);
32556
32496
  }
32557
- console.log(`${c15.magenta(c15.bold("Keyboard shortcuts:"))}
32558
- \u2192 ${c15.bold(c15.bgBlueBright(c15.whiteBright(" o ")))} ${c15.dim("Open server URL in the browser")}`);
32497
+ console.log(`${c14.magenta(c14.bold("Keyboard shortcuts:"))}
32498
+ \u2192 ${c14.bold(c14.bgBlueBright(c14.whiteBright(" o ")))} ${c14.dim("Open server URL in the browser")}`);
32559
32499
  console.log(
32560
- ` \u2192 ${c15.bold(c15.bgBlueBright(c15.whiteBright(" q ")))} ${c15.dim("Stop server (or Ctrl+C)")}`
32500
+ ` \u2192 ${c14.bold(c14.bgBlueBright(c14.whiteBright(" q ")))} ${c14.dim("Stop server (or Ctrl+C)")}`
32561
32501
  );
32562
32502
  console.log("");
32563
32503
  showShortcuts2(serverUrl, !flags.static);
@@ -32574,7 +32514,7 @@ ${error2.snippet}`
32574
32514
  const cleanExit = () => {
32575
32515
  hideShortcuts2();
32576
32516
  console.log(`
32577
- ${c15.blue("Info:")} Server stopped`);
32517
+ ${c14.blue("Info:")} Server stopped`);
32578
32518
  process.exit(0);
32579
32519
  };
32580
32520
  process.on("SIGINT", cleanExit);
@@ -32608,7 +32548,7 @@ init_logger();
32608
32548
  init_init();
32609
32549
  import { relative as relative5 } from "node:path";
32610
32550
  import { getPackageConfig, lookup } from "@jspm/generator";
32611
- import c16 from "picocolors";
32551
+ import c15 from "picocolors";
32612
32552
  async function listCurrentProjectExports(flags) {
32613
32553
  try {
32614
32554
  const projectDir = flags.dir || process.cwd();
@@ -32616,12 +32556,12 @@ async function listCurrentProjectExports(flags) {
32616
32556
  quiet: flags.quiet,
32617
32557
  dir: projectDir
32618
32558
  });
32619
- !flags.quiet && startSpinner(`Scanning exports for current project: ${c16.bold(projectConfig.name)}...`);
32559
+ !flags.quiet && startSpinner(`Scanning exports for current project: ${c15.bold(projectConfig.name)}...`);
32620
32560
  if (!projectConfig.exports) {
32621
32561
  stopSpinner();
32622
32562
  !flags.quiet && console.log(
32623
32563
  `
32624
- ${c16.yellow("Warning:")} Project "${projectConfig.name}" has no exports defined in package.json.`
32564
+ ${c15.yellow("Warning:")} Project "${projectConfig.name}" has no exports defined in package.json.`
32625
32565
  );
32626
32566
  return;
32627
32567
  }
@@ -32640,20 +32580,20 @@ ${c16.yellow("Warning:")} Project "${projectConfig.name}" has no exports defined
32640
32580
  );
32641
32581
  stopSpinner();
32642
32582
  console.log(
32643
- `${c16.bold("Package")}: ${c16.bold(projectConfig.name)}@${c16.bold(
32583
+ `${c15.bold("Package")}: ${c15.bold(projectConfig.name)}@${c15.bold(
32644
32584
  projectConfig.version || "local"
32645
32585
  )}`
32646
32586
  );
32647
32587
  if (!flags.quiet) {
32648
32588
  if (projectConfig.description) {
32649
- console.log(`${c16.bold("Description:")} ${projectConfig.description}`);
32589
+ console.log(`${c15.bold("Description:")} ${projectConfig.description}`);
32650
32590
  }
32651
32591
  if (projectConfig.license) {
32652
- console.log(`${c16.bold("License:")} ${c16.yellow(projectConfig.license)}`);
32592
+ console.log(`${c15.bold("License:")} ${c15.yellow(projectConfig.license)}`);
32653
32593
  }
32654
32594
  }
32655
32595
  !flags.quiet && console.log(`
32656
- ${c16.bold(c16.black(`Current Project Exports`))}`);
32596
+ ${c15.bold(c15.black(`Current Project Exports`))}`);
32657
32597
  const exportEntries = Object.entries(entries);
32658
32598
  let displayedEntries = 0;
32659
32599
  const limit = flags.limit ? parseInt(flags.limit.toString()) : 20;
@@ -32665,8 +32605,8 @@ ${c16.bold(c16.black(`Current Project Exports`))}`);
32665
32605
  if (displayedEntries >= limit) {
32666
32606
  break;
32667
32607
  }
32668
- const formattedSubpath = c16.green(subpath);
32669
- const formattedTarget = c16.cyan(filePaths.join(", "));
32608
+ const formattedSubpath = c15.green(subpath);
32609
+ const formattedTarget = c15.cyan(filePaths.join(", "));
32670
32610
  !flags.quiet && console.log(`${formattedSubpath} \u2192 ${formattedTarget}`);
32671
32611
  displayedEntries++;
32672
32612
  }
@@ -32674,13 +32614,13 @@ ${c16.bold(c16.black(`Current Project Exports`))}`);
32674
32614
  const remainingCount = totalFilteredCount - displayedEntries;
32675
32615
  !flags.quiet && console.log(
32676
32616
  `
32677
- ${c16.yellow("...")}${c16.bold(remainingCount)} more ${remainingCount === 1 ? "item" : "items"} (use ${c16.cyan("--filter")} or ${c16.cyan("--limit")} to extend listing)`
32617
+ ${c15.yellow("...")}${c15.bold(remainingCount)} more ${remainingCount === 1 ? "item" : "items"} (use ${c15.cyan("--filter")} or ${c15.cyan("--limit")} to extend listing)`
32678
32618
  );
32679
32619
  } else if (flags.filter && displayedEntries === 0) {
32680
- !flags.quiet && console.log(`${c16.yellow("No exports match the filter:")} ${flags.filter}`);
32620
+ !flags.quiet && console.log(`${c15.yellow("No exports match the filter:")} ${flags.filter}`);
32681
32621
  } else if (displayedEntries === 0) {
32682
32622
  !flags.quiet && console.log(
32683
- `${c16.yellow(
32623
+ `${c15.yellow(
32684
32624
  "Note:"
32685
32625
  )} Project has exports defined but they may not match any files in the project or are not in the expected format.`
32686
32626
  );
@@ -32701,7 +32641,7 @@ async function ls(packageSpec, flags) {
32701
32641
  }
32702
32642
  log2(`Listing package exports for: ${packageSpec}`);
32703
32643
  try {
32704
- !flags.quiet && startSpinner(`Looking up package ${c16.bold(packageSpec)}...`);
32644
+ !flags.quiet && startSpinner(`Looking up package ${c15.bold(packageSpec)}...`);
32705
32645
  const lookupOptions = flags.provider ? { provider: flags.provider } : {};
32706
32646
  const lookupResult = await lookup(packageSpec, lookupOptions);
32707
32647
  if (!lookupResult || !lookupResult.resolved) {
@@ -32716,17 +32656,17 @@ async function ls(packageSpec, flags) {
32716
32656
  throw new JspmError(`Package "${packageSpec}" found but failed to fetch its configuration`);
32717
32657
  }
32718
32658
  console.log(
32719
- `${c16.bold("Package")}: ${c16.bold(resolvedPackage.name)}@${c16.bold(resolvedPackage.version)}`
32659
+ `${c15.bold("Package")}: ${c15.bold(resolvedPackage.name)}@${c15.bold(resolvedPackage.version)}`
32720
32660
  );
32721
32661
  if (!flags.quiet) {
32722
32662
  if (pjson.description) {
32723
- console.log(`${c16.bold("Description:")} ${pjson.description}`);
32663
+ console.log(`${c15.bold("Description:")} ${pjson.description}`);
32724
32664
  }
32725
32665
  if (pjson.license) {
32726
- console.log(`${c16.bold("License:")} ${c16.yellow(pjson.license)}`);
32666
+ console.log(`${c15.bold("License:")} ${c15.yellow(pjson.license)}`);
32727
32667
  }
32728
32668
  if (pjson.homepage) {
32729
- console.log(`${c16.bold("Homepage:")} ${c16.blue(pjson.homepage)}`);
32669
+ console.log(`${c15.bold("Homepage:")} ${c15.blue(pjson.homepage)}`);
32730
32670
  }
32731
32671
  if (pjson.repository) {
32732
32672
  let repoUrl = "";
@@ -32737,19 +32677,19 @@ async function ls(packageSpec, flags) {
32737
32677
  }
32738
32678
  if (repoUrl) {
32739
32679
  repoUrl = repoUrl.replace(/^git\+|\.git$/g, "").replace("git://", "https://").replace("git@github.com:", "https://github.com/");
32740
- console.log(`${c16.bold("Repository:")} ${c16.blue(repoUrl)}`);
32680
+ console.log(`${c15.bold("Repository:")} ${c15.blue(repoUrl)}`);
32741
32681
  }
32742
32682
  }
32743
32683
  }
32744
32684
  if (!pjson.exports) {
32745
32685
  !flags.quiet && console.log(
32746
32686
  `
32747
- ${c16.yellow("Warning:")} Package "${resolvedPackage.name}@${resolvedPackage.version}" has no exports defined.`
32687
+ ${c15.yellow("Warning:")} Package "${resolvedPackage.name}@${resolvedPackage.version}" has no exports defined.`
32748
32688
  );
32749
32689
  return;
32750
32690
  }
32751
32691
  !flags.quiet && console.log(`
32752
- ${c16.bold(c16.black(`Package Exports`))}`);
32692
+ ${c15.bold(c15.black(`Package Exports`))}`);
32753
32693
  const exportEntries = typeof pjson.exports === "string" || typeof pjson.exports === "object" && pjson.exports !== null && Object.keys(pjson.exports).every((expt) => !expt.startsWith(".")) ? [".", pjson.exports] : Object.entries(pjson.exports);
32754
32694
  let displayedEntries = 0;
32755
32695
  const limit = flags.limit ? parseInt(flags.limit.toString()) : 20;
@@ -32761,8 +32701,8 @@ ${c16.bold(c16.black(`Package Exports`))}`);
32761
32701
  if (displayedEntries >= limit) {
32762
32702
  break;
32763
32703
  }
32764
- const formattedSubpath = c16.green(subpath);
32765
- const formattedTarget = c16.cyan(JSON.stringify(target, null, 2));
32704
+ const formattedSubpath = c15.green(subpath);
32705
+ const formattedTarget = c15.cyan(JSON.stringify(target, null, 2));
32766
32706
  !flags.quiet && console.log(`${formattedSubpath} \u2192 ${formattedTarget}`);
32767
32707
  displayedEntries++;
32768
32708
  }
@@ -32770,13 +32710,13 @@ ${c16.bold(c16.black(`Package Exports`))}`);
32770
32710
  const remainingCount = totalFilteredCount - displayedEntries;
32771
32711
  !flags.quiet && console.log(
32772
32712
  `
32773
- ${c16.yellow("...")}${c16.bold(remainingCount)} more ${remainingCount === 1 ? "item" : "items"} (use ${c16.cyan("--filter")} or ${c16.cyan("--limit")} to extend listing)`
32713
+ ${c15.yellow("...")}${c15.bold(remainingCount)} more ${remainingCount === 1 ? "item" : "items"} (use ${c15.cyan("--filter")} or ${c15.cyan("--limit")} to extend listing)`
32774
32714
  );
32775
32715
  } else if (flags.filter && displayedEntries === 0) {
32776
- !flags.quiet && console.log(`${c16.yellow("No exports match the filter:")} ${flags.filter}`);
32716
+ !flags.quiet && console.log(`${c15.yellow("No exports match the filter:")} ${flags.filter}`);
32777
32717
  } else if (displayedEntries === 0) {
32778
32718
  !flags.quiet && console.log(
32779
- `${c16.yellow(
32719
+ `${c15.yellow(
32780
32720
  "Note:"
32781
32721
  )} Package has exports defined but they are not in the expected format.`
32782
32722
  );
@@ -32794,7 +32734,7 @@ ${c16.yellow("...")}${c16.bold(remainingCount)} more ${remainingCount === 1 ? "i
32794
32734
  // src/cli.ts
32795
32735
  init_init();
32796
32736
  var { version: version2 } = JSON.parse(readFileSync3(new URL("../package.json", import.meta.url), "utf8"));
32797
- var cli = dist_default(c17.yellow("jspm"));
32737
+ var cli = dist_default(c16.yellow("jspm"));
32798
32738
  var generateOpts = (cac2, release = false) => cac2.option(
32799
32739
  "-m, --map <file>",
32800
32740
  "File containing initial import map (defaults to importmap.json, supports .js with a JSON import map embedded, or HTML with an inline import map)",
@@ -32976,23 +32916,13 @@ Enhanced Security and Performance:
32976
32916
  - Use --preload to generate preload link tags when using HTML output, improving load performance
32977
32917
  - Preload supports both "static" (explicit imports) and "dynamic" (conditional imports) modes`
32978
32918
  ).action(wrapCommand(install));
32979
- outputOpts(generateOpts(cli.command("update [...packages]", "Update packages").alias("upgrade"))).example(
32919
+ outputOpts(generateOpts(cli.command("update", "Update packages").alias("upgrade"))).example(
32980
32920
  (name) => `
32981
- $ ${name} update react-dom
32921
+ $ ${name} update
32982
32922
 
32983
- Update the react-dom package.
32923
+ Update all resolutions.
32984
32924
  `
32985
- ).usage(
32986
- `update [flags] [...packages]
32987
-
32988
- Updates packages in an import map to the latest versions that are compatible with the local "package.json". The given packages must be valid package specifiers, such as "npm:react@18.0.0", "denoland:oak" or "lit", and must be present in the initial import map.
32989
-
32990
- Import Map Handling:
32991
- - Takes an input import map (--map) and produces an updated output map (--out)
32992
- - Only specified packages are updated; all other mappings remain unchanged
32993
- - Works with the same map formats as install (JSON, JS, HTML)
32994
- - If no packages are specified, attempts to update all top-level imports`
32995
- ).action(wrapCommand(update));
32925
+ ).usage(`update [flags]`).action(wrapCommand((flags) => install(flags, true)));
32996
32926
  outputOpts(
32997
32927
  generateOpts(
32998
32928
  cli.command("serve", "Start a local development server").option("-p, --port <number>", "Port to run the server on", {
@@ -33115,7 +33045,7 @@ optionally using the JSPM overrides for these via the "jspm" property in the pac
33115
33045
  Any build import map shoud be generated separately via a subsequent install operation on the
33116
33046
  build folder, for example like:
33117
33047
 
33118
- ${c17.bold("jspm install -d dist -C production --flatten-scopes --combine-subpaths")}
33048
+ ${c16.bold("jspm install -d dist -C production --flatten-scopes --combine-subpaths")}
33119
33049
 
33120
33050
  to generate an optimized production map.
33121
33051
  `
@@ -33303,14 +33233,14 @@ function defaultHelpCb(helpSections) {
33303
33233
  return [];
33304
33234
  }
33305
33235
  helpSections[0].body = `
33306
- ${c17.yellowBright("\u25A3 ")}${c17.bold(
33307
- c17.whiteBright(" JSPM ")
33308
- )} - ${c17.whiteBright("Import Map Package Management")}`;
33236
+ ${c16.yellowBright("\u25A3 ")}${c16.bold(
33237
+ c16.whiteBright(" JSPM ")
33238
+ )} - ${c16.whiteBright("Import Map Package Management")}`;
33309
33239
  for (const section of Object.values(helpSections)) {
33310
33240
  if (section.title?.startsWith("For more info")) {
33311
33241
  section.title = "";
33312
- section.body = `${c17.bold(
33313
- `For more info on a specific command <cmd>, ${c17.yellow("jspm <cmd> --help")} flag.`
33242
+ section.body = `${c16.bold(
33243
+ `For more info on a specific command <cmd>, ${c16.yellow("jspm <cmd> --help")} flag.`
33314
33244
  )}`;
33315
33245
  }
33316
33246
  if (section.title === "Options") {
@@ -33329,7 +33259,7 @@ ${c17.yellowBright("\u25A3 ")}${c17.bold(
33329
33259
  }
33330
33260
  for (const section of Object.values(helpSections)) {
33331
33261
  if (section.title)
33332
- section.title = c17.bold(section.title);
33262
+ section.title = c16.bold(section.title);
33333
33263
  }
33334
33264
  return helpSections;
33335
33265
  }