@intelligentgraphics/ig.gfx.packager 3.1.0-alpha.1 → 3.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/bin.mjs +1 -1
  2. package/build/{cli-fec9c069.mjs → cli-CuiqZ39_.mjs} +87 -82
  3. package/build/cli-CuiqZ39_.mjs.map +1 -0
  4. package/build/{dependencies-d870016d.mjs → dependencies-BiYItaVS.mjs} +2 -2
  5. package/build/{dependencies-d870016d.mjs.map → dependencies-BiYItaVS.mjs.map} +1 -1
  6. package/build/{generateIndex-dd0b4563.mjs → generateIndex-hg6jRXQv.mjs} +96 -83
  7. package/build/generateIndex-hg6jRXQv.mjs.map +1 -0
  8. package/build/{generateParameterType-9a671e36.mjs → generateParameterType-CDjqLM4J.mjs} +3 -4
  9. package/build/{generateParameterType-9a671e36.mjs.map → generateParameterType-CDjqLM4J.mjs.map} +1 -1
  10. package/build/{index-0caf1a6e.mjs → index-B2kXo6K7.mjs} +343 -119
  11. package/build/index-B2kXo6K7.mjs.map +1 -0
  12. package/build/{index-7fa42d48.mjs → index-BoGrZubW.mjs} +201 -188
  13. package/build/index-BoGrZubW.mjs.map +1 -0
  14. package/build/{postinstall-81b6f0b0.mjs → postinstall-CbMUz2zy.mjs} +3 -4
  15. package/build/{postinstall-81b6f0b0.mjs.map → postinstall-CbMUz2zy.mjs.map} +1 -1
  16. package/build/{publishNpm-c985bd6e.mjs → publishNpm-CrnuTwss.mjs} +14 -11
  17. package/build/publishNpm-CrnuTwss.mjs.map +1 -0
  18. package/build/rollup-UR3DADp8.mjs +198 -0
  19. package/build/rollup-UR3DADp8.mjs.map +1 -0
  20. package/build/scripts-Bfojy_uD.mjs +48 -0
  21. package/build/scripts-Bfojy_uD.mjs.map +1 -0
  22. package/build/versionFile-DSqOw-XB.mjs +208 -0
  23. package/build/versionFile-DSqOw-XB.mjs.map +1 -0
  24. package/lib/lib.mjs +2649 -18
  25. package/package.json +20 -15
  26. package/readme.md +126 -13
  27. package/build/cli-fec9c069.mjs.map +0 -1
  28. package/build/generateIndex-dd0b4563.mjs.map +0 -1
  29. package/build/index-0caf1a6e.mjs.map +0 -1
  30. package/build/index-7fa42d48.mjs.map +0 -1
  31. package/build/publishNpm-c985bd6e.mjs.map +0 -1
  32. package/build/scripts-7ed8dff6.mjs +0 -10
  33. package/build/scripts-7ed8dff6.mjs.map +0 -1
  34. package/build/swc-9ed0f3ce.mjs +0 -60
  35. package/build/swc-9ed0f3ce.mjs.map +0 -1
  36. package/build/versionFile-cbfd3f4a.mjs +0 -380
  37. package/build/versionFile-cbfd3f4a.mjs.map +0 -1
package/build/bin.mjs CHANGED
@@ -2,5 +2,5 @@
2
2
  import 'source-map-support/register.js';
3
3
  import 'v8-compile-cache';
4
4
 
5
- import('./cli-fec9c069.mjs').then(function (n) { return n.x; });
5
+ import('./cli-CuiqZ39_.mjs').then(function (n) { return n.x; });
6
6
  //# sourceMappingURL=bin.mjs.map
@@ -12,9 +12,8 @@ import 'node:path';
12
12
  import 'node:fs';
13
13
  import require$$0 from 'assert';
14
14
  import require$$2 from 'events';
15
- import 'core-js/modules/es.typed-array.set.js';
16
15
  import require$$6 from 'util';
17
- import axios from 'axios';
16
+ import axios, { AxiosError } from 'axios';
18
17
  import inquirer from 'inquirer';
19
18
 
20
19
  const stripUtf8Bom = (text)=>{
@@ -80,13 +79,16 @@ const getCreatorIndexParameterPrimaryJSType = (type)=>{
80
79
  return "string";
81
80
  }
82
81
  };
83
- const parseCreatorPackageName = (manifest)=>{
82
+ function parseCreatorPackageName(manifest) {
84
83
  const [domain, subdomain] = manifest.Package.split(".");
84
+ if (subdomain === undefined) {
85
+ throw new Error(`Expected "Package" field of the _Package.json file to contain a value in the form of Domain.SubDomain`);
86
+ }
85
87
  return {
86
88
  domain,
87
89
  subdomain
88
90
  };
89
- };
91
+ }
90
92
  /**
91
93
  * Detects the package at the given directory.
92
94
  *
@@ -138,7 +140,7 @@ const readPackageCreatorManifest = (location)=>{
138
140
  };
139
141
  const writePackageCreatorManifest = (location, creatorPackage)=>{
140
142
  const packageJsonPath = path$1.join(location.manifestDir, PACKAGE_FILE);
141
- fs$1.writeFileSync(packageJsonPath, JSON.stringify(creatorPackage, null, " ") + "\n");
143
+ fs$1.writeFileSync(packageJsonPath, JSON.stringify(creatorPackage, null, "\t") + "\n");
142
144
  };
143
145
  const getPackageCreatorIndexPath = (location)=>path$1.join(location.manifestDir, INDEX_FILE);
144
146
  const readPackageCreatorIndex = (location)=>{
@@ -157,7 +159,7 @@ const readPackageCreatorIndex = (location)=>{
157
159
  };
158
160
  const writePackageCreatorIndex = (location, index)=>{
159
161
  const indexPath = getPackageCreatorIndexPath(location);
160
- fs$1.writeFileSync(indexPath, JSON.stringify(index, null, " ") + "\n");
162
+ fs$1.writeFileSync(indexPath, JSON.stringify(index, null, "\t") + "\n");
161
163
  };
162
164
  const readPackageNpmManifest = (location)=>{
163
165
  try {
@@ -238,7 +240,7 @@ var imurmurhash = {exports: {}};
238
240
  function MurmurHash3(key, seed) {
239
241
  var m = this instanceof MurmurHash3 ? this : cache;
240
242
  m.reset(seed);
241
- if (typeof key === "string" && key.length > 0) {
243
+ if (typeof key === 'string' && key.length > 0) {
242
244
  m.hash(key);
243
245
  }
244
246
  if (m !== this) {
@@ -323,7 +325,7 @@ var imurmurhash = {exports: {}};
323
325
  //
324
326
  // @param {number} seed An optional positive integer
325
327
  MurmurHash3.prototype.reset = function(seed) {
326
- this.h1 = typeof seed === "number" ? seed : 0;
328
+ this.h1 = typeof seed === 'number' ? seed : 0;
327
329
  this.rem = this.k1 = this.len = 0;
328
330
  return this;
329
331
  };
@@ -367,17 +369,17 @@ function requireSignals() {
367
369
  // state from which it is not safe to try and enter JS
368
370
  // listeners.
369
371
  module.exports = [
370
- "SIGABRT",
371
- "SIGALRM",
372
- "SIGHUP",
373
- "SIGINT",
374
- "SIGTERM"
372
+ 'SIGABRT',
373
+ 'SIGALRM',
374
+ 'SIGHUP',
375
+ 'SIGINT',
376
+ 'SIGTERM'
375
377
  ];
376
- if (process.platform !== "win32") {
377
- module.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
378
+ if (process.platform !== 'win32') {
379
+ module.exports.push('SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT');
378
380
  }
379
- if (process.platform === "linux") {
380
- module.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
381
+ if (process.platform === 'linux') {
382
+ module.exports.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', 'SIGUNUSED');
381
383
  }
382
384
  })(signals$1);
383
385
  return signals$1.exports;
@@ -389,7 +391,7 @@ function requireSignals() {
389
391
  // grab a reference to node's real process object right away
390
392
  var process$1 = commonjsGlobal.process;
391
393
  const processOk = function(process) {
392
- return process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
394
+ return process && typeof process === 'object' && typeof process.removeListener === 'function' && typeof process.emit === 'function' && typeof process.reallyExit === 'function' && typeof process.listeners === 'function' && typeof process.kill === 'function' && typeof process.pid === 'number' && typeof process.on === 'function';
393
395
  };
394
396
  // some kind of non-node environment, just no-op
395
397
  /* istanbul ignore if */ if (!processOk(process$1)) {
@@ -401,7 +403,7 @@ const processOk = function(process) {
401
403
  var signals = requireSignals();
402
404
  var isWin = /^win/i.test(process$1.platform);
403
405
  var EE = require$$2;
404
- /* istanbul ignore if */ if (typeof EE !== "function") {
406
+ /* istanbul ignore if */ if (typeof EE !== 'function') {
405
407
  EE = EE.EventEmitter;
406
408
  }
407
409
  var emitter;
@@ -424,17 +426,17 @@ const processOk = function(process) {
424
426
  /* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
425
427
  return function() {};
426
428
  }
427
- assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
429
+ assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
428
430
  if (loaded === false) {
429
431
  load();
430
432
  }
431
- var ev = "exit";
433
+ var ev = 'exit';
432
434
  if (opts && opts.alwaysLast) {
433
- ev = "afterexit";
435
+ ev = 'afterexit';
434
436
  }
435
437
  var remove = function() {
436
438
  emitter.removeListener(ev, cb);
437
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
439
+ if (emitter.listeners('exit').length === 0 && emitter.listeners('afterexit').length === 0) {
438
440
  unload();
439
441
  }
440
442
  };
@@ -477,12 +479,12 @@ const processOk = function(process) {
477
479
  var listeners = process$1.listeners(sig);
478
480
  if (listeners.length === emitter.count) {
479
481
  unload();
480
- emit("exit", null, sig);
481
- /* istanbul ignore next */ emit("afterexit", null, sig);
482
- /* istanbul ignore next */ if (isWin && sig === "SIGHUP") {
482
+ emit('exit', null, sig);
483
+ /* istanbul ignore next */ emit('afterexit', null, sig);
484
+ /* istanbul ignore next */ if (isWin && sig === 'SIGHUP') {
483
485
  // "SIGHUP" throws an `ENOSYS` error on Windows,
484
486
  // so use a supported signal instead
485
- sig = "SIGINT";
487
+ sig = 'SIGINT';
486
488
  }
487
489
  /* istanbul ignore next */ process$1.kill(process$1.pid, sig);
488
490
  }
@@ -520,19 +522,19 @@ const processOk = function(process) {
520
522
  return;
521
523
  }
522
524
  process$1.exitCode = code || /* istanbul ignore next */ 0;
523
- emit("exit", process$1.exitCode, null);
524
- /* istanbul ignore next */ emit("afterexit", process$1.exitCode, null);
525
+ emit('exit', process$1.exitCode, null);
526
+ /* istanbul ignore next */ emit('afterexit', process$1.exitCode, null);
525
527
  /* istanbul ignore next */ originalProcessReallyExit.call(process$1, process$1.exitCode);
526
528
  };
527
529
  var originalProcessEmit = process$1.emit;
528
530
  var processEmit = function processEmit(ev, arg) {
529
- if (ev === "exit" && processOk(commonjsGlobal.process)) {
531
+ if (ev === 'exit' && processOk(commonjsGlobal.process)) {
530
532
  /* istanbul ignore else */ if (arg !== undefined) {
531
533
  process$1.exitCode = arg;
532
534
  }
533
535
  var ret = originalProcessEmit.apply(this, arguments);
534
- /* istanbul ignore next */ emit("exit", process$1.exitCode, null);
535
- /* istanbul ignore next */ emit("afterexit", process$1.exitCode, null);
536
+ /* istanbul ignore next */ emit('exit', process$1.exitCode, null);
537
+ /* istanbul ignore next */ emit('afterexit', process$1.exitCode, null);
536
538
  /* istanbul ignore next */ return ret;
537
539
  } else {
538
540
  return originalProcessEmit.apply(this, arguments);
@@ -546,15 +548,15 @@ isTypedArray$2.strict = isStrictTypedArray;
546
548
  isTypedArray$2.loose = isLooseTypedArray;
547
549
  var toString = Object.prototype.toString;
548
550
  var names = {
549
- "[object Int8Array]": true,
550
- "[object Int16Array]": true,
551
- "[object Int32Array]": true,
552
- "[object Uint8Array]": true,
553
- "[object Uint8ClampedArray]": true,
554
- "[object Uint16Array]": true,
555
- "[object Uint32Array]": true,
556
- "[object Float32Array]": true,
557
- "[object Float64Array]": true
551
+ '[object Int8Array]': true,
552
+ '[object Int16Array]': true,
553
+ '[object Int32Array]': true,
554
+ '[object Uint8Array]': true,
555
+ '[object Uint8ClampedArray]': true,
556
+ '[object Uint16Array]': true,
557
+ '[object Uint32Array]': true,
558
+ '[object Float32Array]': true,
559
+ '[object Float64Array]': true
558
560
  };
559
561
  function isTypedArray$2(arr) {
560
562
  return isStrictTypedArray(arr) || isLooseTypedArray(arr);
@@ -598,7 +600,7 @@ const activeFiles = {};
598
600
  // if we run inside of a worker_thread, `process.pid` is not unique
599
601
  /* istanbul ignore next */ const threadId = function getId() {
600
602
  try {
601
- const workerThreads = require("worker_threads");
603
+ const workerThreads = require('worker_threads');
602
604
  /// if we are in main thread, this is set to `0`
603
605
  return workerThreads.threadId;
604
606
  } catch (e) {
@@ -608,12 +610,12 @@ const activeFiles = {};
608
610
  }();
609
611
  let invocations = 0;
610
612
  function getTmpname(filename) {
611
- return filename + "." + MurmurHash3(__filename).hash(String(process.pid)).hash(String(threadId)).hash(String(++invocations)).result();
613
+ return filename + '.' + MurmurHash3(__filename).hash(String(process.pid)).hash(String(threadId)).hash(String(++invocations)).result();
612
614
  }
613
615
  function cleanupOnExit(tmpfile) {
614
616
  return ()=>{
615
617
  try {
616
- fs.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
618
+ fs.unlinkSync(typeof tmpfile === 'function' ? tmpfile() : tmpfile);
617
619
  } catch (_) {}
618
620
  };
619
621
  }
@@ -621,27 +623,25 @@ function serializeActiveFile(absoluteName) {
621
623
  return new Promise((resolve)=>{
622
624
  // make a queue if it doesn't already exist
623
625
  if (!activeFiles[absoluteName]) activeFiles[absoluteName] = [];
624
- activeFiles[absoluteName].push(resolve) // add this job to the queue
625
- ;
626
- if (activeFiles[absoluteName].length === 1) resolve() // kick off the first one
627
- ;
626
+ activeFiles[absoluteName].push(resolve); // add this job to the queue
627
+ if (activeFiles[absoluteName].length === 1) resolve(); // kick off the first one
628
628
  });
629
629
  }
630
630
  // https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
631
631
  function isChownErrOk(err) {
632
- if (err.code === "ENOSYS") {
632
+ if (err.code === 'ENOSYS') {
633
633
  return true;
634
634
  }
635
635
  const nonroot = !process.getuid || process.getuid() !== 0;
636
636
  if (nonroot) {
637
- if (err.code === "EINVAL" || err.code === "EPERM") {
637
+ if (err.code === 'EINVAL' || err.code === 'EPERM') {
638
638
  return true;
639
639
  }
640
640
  }
641
641
  return false;
642
642
  }
643
643
  async function writeFileAsync(filename, data, options = {}) {
644
- if (typeof options === "string") {
644
+ if (typeof options === 'string') {
645
645
  options = {
646
646
  encoding: options
647
647
  };
@@ -670,7 +670,7 @@ async function writeFileAsync(filename, data, options = {}) {
670
670
  }
671
671
  }
672
672
  }
673
- fd = await promisify(fs.open)(tmpfile, "w", options.mode);
673
+ fd = await promisify(fs.open)(tmpfile, 'w', options.mode);
674
674
  if (options.tmpfileCreated) {
675
675
  await options.tmpfileCreated(tmpfile);
676
676
  }
@@ -680,7 +680,7 @@ async function writeFileAsync(filename, data, options = {}) {
680
680
  if (Buffer.isBuffer(data)) {
681
681
  await promisify(fs.write)(fd, data, 0, data.length, 0);
682
682
  } else if (data != null) {
683
- await promisify(fs.write)(fd, String(data), 0, String(options.encoding || "utf8"));
683
+ await promisify(fs.write)(fd, String(data), 0, String(options.encoding || 'utf8'));
684
684
  }
685
685
  if (options.fsync !== false) {
686
686
  await promisify(fs.fsync)(fd);
@@ -708,11 +708,9 @@ async function writeFileAsync(filename, data, options = {}) {
708
708
  }
709
709
  removeOnExitHandler();
710
710
  await promisify(fs.unlink)(tmpfile).catch(()=>{});
711
- activeFiles[absoluteName].shift() // remove the element added by serializeSameFile
712
- ;
711
+ activeFiles[absoluteName].shift(); // remove the element added by serializeSameFile
713
712
  if (activeFiles[absoluteName].length > 0) {
714
- activeFiles[absoluteName][0]() // start next job if one is pending
715
- ;
713
+ activeFiles[absoluteName][0](); // start next job if one is pending
716
714
  } else delete activeFiles[absoluteName];
717
715
  }
718
716
  }
@@ -728,7 +726,7 @@ function writeFile(filename, data, options, callback) {
728
726
  return promise;
729
727
  }
730
728
  function writeFileSync(filename, data, options) {
731
- if (typeof options === "string") options = {
729
+ if (typeof options === 'string') options = {
732
730
  encoding: options
733
731
  };
734
732
  else if (!options) options = {};
@@ -762,7 +760,7 @@ function writeFileSync(filename, data, options) {
762
760
  const removeOnExitHandler = onExit(cleanup);
763
761
  let threw = true;
764
762
  try {
765
- fd = fs.openSync(tmpfile, "w", options.mode || 438);
763
+ fd = fs.openSync(tmpfile, 'w', options.mode || 438);
766
764
  if (options.tmpfileCreated) {
767
765
  options.tmpfileCreated(tmpfile);
768
766
  }
@@ -772,7 +770,7 @@ function writeFileSync(filename, data, options) {
772
770
  if (Buffer.isBuffer(data)) {
773
771
  fs.writeSync(fd, data, 0, data.length, 0);
774
772
  } else if (data != null) {
775
- fs.writeSync(fd, String(data), 0, String(options.encoding || "utf8"));
773
+ fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8'));
776
774
  }
777
775
  if (options.fsync !== false) {
778
776
  fs.fsyncSync(fd);
@@ -857,11 +855,23 @@ const closeSession = async (session)=>{
857
855
  baseURL: session.url
858
856
  });
859
857
  };
860
- const uploadPackageFromStream = async (session, { name, version }, stream)=>{
861
- await uploadPackageToUrl(session.url, `UploadPackage/${session.sessionId}/${name}_${version}/`, stream);
858
+ const uploadPackageFromBuffer = async (session, { name, version }, buffer)=>{
859
+ try {
860
+ await uploadPackageToUrl(session.url, `UploadPackage/${session.sessionId}/${name}_${version}`, buffer);
861
+ } catch (err) {
862
+ if (err instanceof AxiosError) {
863
+ var _err_response;
864
+ if (((_err_response = err.response) == null ? void 0 : _err_response.status) === 404) {
865
+ await uploadPackageToUrl(session.url, `UploadPackage/${session.sessionId}/${name}_${version}/`, buffer);
866
+ return;
867
+ }
868
+ throw new Error(`Failed to upload package: ${err.message}`);
869
+ }
870
+ throw err;
871
+ }
862
872
  };
863
- const uploadPackageToUrl = async (url, path, stream)=>{
864
- const { data, status } = await axios.post(path, stream, {
873
+ const uploadPackageToUrl = async (url, path, buffer)=>{
874
+ const { data, status } = await axios.post(path, buffer, {
865
875
  baseURL: url
866
876
  });
867
877
  let objectBody;
@@ -933,8 +943,8 @@ const createDefaultPrompter = ()=>{
933
943
  };
934
944
 
935
945
  const __filename$1 = fileURLToPath(import.meta.url);
936
- const __dirname = path$1.dirname(__filename$1);
937
- const pjson = JSON.parse(fs$1.readFileSync(path$1.join(__dirname, "..", "package.json"), "utf8"));
946
+ const __dirname$1 = path$1.dirname(__filename$1);
947
+ const pjson = JSON.parse(fs$1.readFileSync(path$1.join(__dirname$1, "..", "package.json"), "utf8"));
938
948
  const captureError = (err)=>{
939
949
  console.log("");
940
950
  if (process.env.NODE_ENV !== "production") {
@@ -969,17 +979,12 @@ const buildOptions = {
969
979
  docs: {
970
980
  type: "boolean",
971
981
  default: false
972
- },
973
- experimentalSwc: {
974
- type: "boolean",
975
- default: false
976
982
  }
977
983
  };
978
984
  const preCommandCheck = async (workspaceLocation)=>{
979
- var _repositoryPackage_dependencies, _repositoryPackage_devDependencies;
980
985
  const executedLocalPackager = __filename$1.startsWith(workspaceLocation.path);
981
986
  const repositoryPackage = readWorkspaceNpmManifest(workspaceLocation);
982
- if ((repositoryPackage == null ? void 0 : (_repositoryPackage_dependencies = repositoryPackage.dependencies) == null ? void 0 : _repositoryPackage_dependencies["@intelligentgraphics/ig.gfx.packager"]) || (repositoryPackage == null ? void 0 : (_repositoryPackage_devDependencies = repositoryPackage.devDependencies) == null ? void 0 : _repositoryPackage_devDependencies["@intelligentgraphics/ig.gfx.packager"])) {
987
+ if (repositoryPackage?.dependencies?.["@intelligentgraphics/ig.gfx.packager"] || repositoryPackage?.devDependencies?.["@intelligentgraphics/ig.gfx.packager"]) {
983
988
  const parts = [
984
989
  "Detected locally installed ig.gfx.packager."
985
990
  ];
@@ -1041,7 +1046,7 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
1041
1046
  if (folders.length === 0) {
1042
1047
  return console.log("No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.");
1043
1048
  }
1044
- const { buildFolders, buildFoldersWatch } = await import('./index-0caf1a6e.mjs').then(function (n) { return n.i; });
1049
+ const { buildFolders, buildFoldersWatch } = await import('./index-B2kXo6K7.mjs').then(function (n) { return n.i; });
1045
1050
  if (watch) {
1046
1051
  await buildFoldersWatch({
1047
1052
  ...options,
@@ -1148,7 +1153,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
1148
1153
  license: content.toString("base64")
1149
1154
  };
1150
1155
  } catch (err) {
1151
- if ((err == null ? void 0 : err.code) === "ENOENT") {
1156
+ if (err?.code === "ENOENT") {
1152
1157
  captureError(new Error(`Expected to find a license file at path: ${fullLicensePath}`));
1153
1158
  return;
1154
1159
  }
@@ -1163,7 +1168,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
1163
1168
  password
1164
1169
  };
1165
1170
  }
1166
- const { releaseFolder } = await import('./index-7fa42d48.mjs');
1171
+ const { releaseFolder } = await import('./index-BoGrZubW.mjs');
1167
1172
  const prompter = createDefaultPrompter();
1168
1173
  const fullOptions = {
1169
1174
  ...options,
@@ -1237,7 +1242,7 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
1237
1242
  license: content.toString("base64")
1238
1243
  };
1239
1244
  } catch (err) {
1240
- if ((err == null ? void 0 : err.code) === "ENOENT") {
1245
+ if (err?.code === "ENOENT") {
1241
1246
  captureError(new Error(`Expected to find a license file at path: ${fullLicensePath}`));
1242
1247
  return;
1243
1248
  }
@@ -1294,7 +1299,7 @@ yargsInstance.command({
1294
1299
  handler: async ({ directory, ignore, strictOptional })=>{
1295
1300
  const workspace = detectWorkspace(process.cwd());
1296
1301
  await preCommandCheck(workspace);
1297
- const { generateIndex } = await import('./generateIndex-dd0b4563.mjs');
1302
+ const { generateIndex } = await import('./generateIndex-hg6jRXQv.mjs');
1298
1303
  const location = detectPackage(workspace, directory);
1299
1304
  generateIndex({
1300
1305
  location,
@@ -1309,7 +1314,7 @@ yargsInstance.command({
1309
1314
  handler: async ({ directory, name })=>{
1310
1315
  const workspace = detectWorkspace(process.cwd());
1311
1316
  await preCommandCheck(workspace);
1312
- const { generateParameterType } = await import('./generateParameterType-9a671e36.mjs');
1317
+ const { generateParameterType } = await import('./generateParameterType-CDjqLM4J.mjs');
1313
1318
  const location = detectPackage(workspace, directory);
1314
1319
  generateParameterType({
1315
1320
  location,
@@ -1322,7 +1327,7 @@ yargsInstance.command({
1322
1327
  command: "postinstall",
1323
1328
  builder: (argv)=>argv,
1324
1329
  handler: async ()=>{
1325
- const { executePostInstall } = await import('./postinstall-81b6f0b0.mjs');
1330
+ const { executePostInstall } = await import('./postinstall-CbMUz2zy.mjs');
1326
1331
  executePostInstall(detectWorkspace(process.cwd()));
1327
1332
  },
1328
1333
  describe: "Runs postinstall tasks"
@@ -1342,7 +1347,7 @@ yargsInstance.command({
1342
1347
  }),
1343
1348
  handler: async ({ directory, newVersion, dryRun })=>{
1344
1349
  const workspace = detectWorkspace(process.cwd());
1345
- const { publishToNpm } = await import('./publishNpm-c985bd6e.mjs');
1350
+ const { publishToNpm } = await import('./publishNpm-CrnuTwss.mjs');
1346
1351
  await publishToNpm({
1347
1352
  workspace,
1348
1353
  location: detectPackage(workspace, directory),
@@ -1358,5 +1363,5 @@ var cli = /*#__PURE__*/Object.freeze({
1358
1363
  __proto__: null
1359
1364
  });
1360
1365
 
1361
- export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageCreatorIndex as a, readWorkspaceNpmManifest as b, readPackageAnimationList as c, isErrorEACCES as d, isErrorEPERM as e, getPackageReleasesDirectory as f, getWorkspaceOutputPath as g, getExistingPackages as h, isErrorENOENT as i, closeSession as j, writePackageCreatorIndex as k, getCreatorIndexParameterPrimaryJSType as l, getWorkspaceLibPath as m, readNpmManifest as n, stripUtf8Bom as o, parseCreatorPackageName as p, readPackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, writePackageNpmManifest as t, uploadPackageFromStream as u, iterateWorkspacePackages as v, writePackageCreatorManifest as w, cli as x };
1362
- //# sourceMappingURL=cli-fec9c069.mjs.map
1366
+ export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageCreatorIndex as a, readWorkspaceNpmManifest as b, closeSession as c, getWorkspaceOutputPath as d, readPackageAnimationList as e, isErrorEACCES as f, getExistingPackages as g, isErrorEPERM as h, isErrorENOENT as i, getPackageReleasesDirectory as j, writePackageCreatorIndex as k, getCreatorIndexParameterPrimaryJSType as l, getWorkspaceLibPath as m, readNpmManifest as n, stripUtf8Bom as o, parseCreatorPackageName as p, readPackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, writePackageNpmManifest as t, uploadPackageFromBuffer as u, iterateWorkspacePackages as v, writePackageCreatorManifest as w, cli as x };
1367
+ //# sourceMappingURL=cli-CuiqZ39_.mjs.map