@intelligentgraphics/ig.gfx.packager 3.0.28 → 3.1.0-alpha.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 (34) hide show
  1. package/build/bin.mjs +1 -1
  2. package/build/{cli-RWjcRDQ7.mjs → cli-CuiqZ39_.mjs} +16 -22
  3. package/build/{cli-RWjcRDQ7.mjs.map → cli-CuiqZ39_.mjs.map} +1 -1
  4. package/build/{dependencies-_6rsdwHk.mjs → dependencies-BiYItaVS.mjs} +2 -2
  5. package/build/{dependencies-_6rsdwHk.mjs.map → dependencies-BiYItaVS.mjs.map} +1 -1
  6. package/build/{generateIndex-Dy12utjI.mjs → generateIndex-hg6jRXQv.mjs} +96 -83
  7. package/build/generateIndex-hg6jRXQv.mjs.map +1 -0
  8. package/build/{generateParameterType-DKwRLh1m.mjs → generateParameterType-CDjqLM4J.mjs} +2 -3
  9. package/build/{generateParameterType-DKwRLh1m.mjs.map → generateParameterType-CDjqLM4J.mjs.map} +1 -1
  10. package/build/{index-B9e-vtmM.mjs → index-B2kXo6K7.mjs} +298 -84
  11. package/build/index-B2kXo6K7.mjs.map +1 -0
  12. package/build/{index-CLoWLYI6.mjs → index-BoGrZubW.mjs} +14 -14
  13. package/build/index-BoGrZubW.mjs.map +1 -0
  14. package/build/{postinstall-DlYP6BrQ.mjs → postinstall-CbMUz2zy.mjs} +3 -4
  15. package/build/{postinstall-DlYP6BrQ.mjs.map → postinstall-CbMUz2zy.mjs.map} +1 -1
  16. package/build/{publishNpm-CEhZI6-O.mjs → publishNpm-CrnuTwss.mjs} +11 -10
  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 +421 -331
  25. package/package.json +13 -8
  26. package/readme.md +87 -10
  27. package/build/generateIndex-Dy12utjI.mjs.map +0 -1
  28. package/build/index-B9e-vtmM.mjs.map +0 -1
  29. package/build/index-CLoWLYI6.mjs.map +0 -1
  30. package/build/publishNpm-CEhZI6-O.mjs.map +0 -1
  31. package/build/scripts-EvIjiH6G.mjs +0 -10
  32. package/build/scripts-EvIjiH6G.mjs.map +0 -1
  33. package/build/versionFile-C7xf8PjZ.mjs +0 -380
  34. package/build/versionFile-C7xf8PjZ.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-RWjcRDQ7.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,7 +12,6 @@ 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
16
  import axios, { AxiosError } from 'axios';
18
17
  import inquirer from 'inquirer';
@@ -624,10 +623,8 @@ function serializeActiveFile(absoluteName) {
624
623
  return new Promise((resolve)=>{
625
624
  // make a queue if it doesn't already exist
626
625
  if (!activeFiles[absoluteName]) activeFiles[absoluteName] = [];
627
- activeFiles[absoluteName].push(resolve) // add this job to the queue
628
- ;
629
- if (activeFiles[absoluteName].length === 1) resolve() // kick off the first one
630
- ;
626
+ activeFiles[absoluteName].push(resolve); // add this job to the queue
627
+ if (activeFiles[absoluteName].length === 1) resolve(); // kick off the first one
631
628
  });
632
629
  }
633
630
  // https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
@@ -711,11 +708,9 @@ async function writeFileAsync(filename, data, options = {}) {
711
708
  }
712
709
  removeOnExitHandler();
713
710
  await promisify(fs.unlink)(tmpfile).catch(()=>{});
714
- activeFiles[absoluteName].shift() // remove the element added by serializeSameFile
715
- ;
711
+ activeFiles[absoluteName].shift(); // remove the element added by serializeSameFile
716
712
  if (activeFiles[absoluteName].length > 0) {
717
- activeFiles[absoluteName][0]() // start next job if one is pending
718
- ;
713
+ activeFiles[absoluteName][0](); // start next job if one is pending
719
714
  } else delete activeFiles[absoluteName];
720
715
  }
721
716
  }
@@ -948,8 +943,8 @@ const createDefaultPrompter = ()=>{
948
943
  };
949
944
 
950
945
  const __filename$1 = fileURLToPath(import.meta.url);
951
- const __dirname = path$1.dirname(__filename$1);
952
- 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"));
953
948
  const captureError = (err)=>{
954
949
  console.log("");
955
950
  if (process.env.NODE_ENV !== "production") {
@@ -987,10 +982,9 @@ const buildOptions = {
987
982
  }
988
983
  };
989
984
  const preCommandCheck = async (workspaceLocation)=>{
990
- var _repositoryPackage_dependencies, _repositoryPackage_devDependencies;
991
985
  const executedLocalPackager = __filename$1.startsWith(workspaceLocation.path);
992
986
  const repositoryPackage = readWorkspaceNpmManifest(workspaceLocation);
993
- 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"]) {
994
988
  const parts = [
995
989
  "Detected locally installed ig.gfx.packager."
996
990
  ];
@@ -1052,7 +1046,7 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
1052
1046
  if (folders.length === 0) {
1053
1047
  return console.log("No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.");
1054
1048
  }
1055
- const { buildFolders, buildFoldersWatch } = await import('./index-B9e-vtmM.mjs').then(function (n) { return n.i; });
1049
+ const { buildFolders, buildFoldersWatch } = await import('./index-B2kXo6K7.mjs').then(function (n) { return n.i; });
1056
1050
  if (watch) {
1057
1051
  await buildFoldersWatch({
1058
1052
  ...options,
@@ -1159,7 +1153,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
1159
1153
  license: content.toString("base64")
1160
1154
  };
1161
1155
  } catch (err) {
1162
- if ((err == null ? void 0 : err.code) === "ENOENT") {
1156
+ if (err?.code === "ENOENT") {
1163
1157
  captureError(new Error(`Expected to find a license file at path: ${fullLicensePath}`));
1164
1158
  return;
1165
1159
  }
@@ -1174,7 +1168,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
1174
1168
  password
1175
1169
  };
1176
1170
  }
1177
- const { releaseFolder } = await import('./index-CLoWLYI6.mjs');
1171
+ const { releaseFolder } = await import('./index-BoGrZubW.mjs');
1178
1172
  const prompter = createDefaultPrompter();
1179
1173
  const fullOptions = {
1180
1174
  ...options,
@@ -1248,7 +1242,7 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
1248
1242
  license: content.toString("base64")
1249
1243
  };
1250
1244
  } catch (err) {
1251
- if ((err == null ? void 0 : err.code) === "ENOENT") {
1245
+ if (err?.code === "ENOENT") {
1252
1246
  captureError(new Error(`Expected to find a license file at path: ${fullLicensePath}`));
1253
1247
  return;
1254
1248
  }
@@ -1305,7 +1299,7 @@ yargsInstance.command({
1305
1299
  handler: async ({ directory, ignore, strictOptional })=>{
1306
1300
  const workspace = detectWorkspace(process.cwd());
1307
1301
  await preCommandCheck(workspace);
1308
- const { generateIndex } = await import('./generateIndex-Dy12utjI.mjs');
1302
+ const { generateIndex } = await import('./generateIndex-hg6jRXQv.mjs');
1309
1303
  const location = detectPackage(workspace, directory);
1310
1304
  generateIndex({
1311
1305
  location,
@@ -1320,7 +1314,7 @@ yargsInstance.command({
1320
1314
  handler: async ({ directory, name })=>{
1321
1315
  const workspace = detectWorkspace(process.cwd());
1322
1316
  await preCommandCheck(workspace);
1323
- const { generateParameterType } = await import('./generateParameterType-DKwRLh1m.mjs');
1317
+ const { generateParameterType } = await import('./generateParameterType-CDjqLM4J.mjs');
1324
1318
  const location = detectPackage(workspace, directory);
1325
1319
  generateParameterType({
1326
1320
  location,
@@ -1333,7 +1327,7 @@ yargsInstance.command({
1333
1327
  command: "postinstall",
1334
1328
  builder: (argv)=>argv,
1335
1329
  handler: async ()=>{
1336
- const { executePostInstall } = await import('./postinstall-DlYP6BrQ.mjs');
1330
+ const { executePostInstall } = await import('./postinstall-CbMUz2zy.mjs');
1337
1331
  executePostInstall(detectWorkspace(process.cwd()));
1338
1332
  },
1339
1333
  describe: "Runs postinstall tasks"
@@ -1353,7 +1347,7 @@ yargsInstance.command({
1353
1347
  }),
1354
1348
  handler: async ({ directory, newVersion, dryRun })=>{
1355
1349
  const workspace = detectWorkspace(process.cwd());
1356
- const { publishToNpm } = await import('./publishNpm-CEhZI6-O.mjs');
1350
+ const { publishToNpm } = await import('./publishNpm-CrnuTwss.mjs');
1357
1351
  await publishToNpm({
1358
1352
  workspace,
1359
1353
  location: detectPackage(workspace, directory),
@@ -1370,4 +1364,4 @@ var cli = /*#__PURE__*/Object.freeze({
1370
1364
  });
1371
1365
 
1372
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 };
1373
- //# sourceMappingURL=cli-RWjcRDQ7.mjs.map
1367
+ //# sourceMappingURL=cli-CuiqZ39_.mjs.map