@intelligentgraphics/ig.gfx.packager 3.0.7 → 3.0.8

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.
@@ -62,6 +62,27 @@ const ANIMATION_FILE_SUFFIX = ".animation.json";
62
62
  * @interface PackageLocation
63
63
  */
64
64
 
65
+ const getCreatorIndexParameterPrimaryJSType = type => {
66
+ switch (type) {
67
+ case "LengthM":
68
+ case "ArcDEG":
69
+ case "Integer":
70
+ case "Int":
71
+ case "Float":
72
+ return "number";
73
+ case "Boolean":
74
+ case "Bool":
75
+ return "boolean";
76
+ case "String":
77
+ case "Material":
78
+ case "Geometry":
79
+ case "Animation":
80
+ case "Interactor":
81
+ case "Evaluator":
82
+ default:
83
+ return "string";
84
+ }
85
+ };
65
86
  const parseCreatorPackageName = manifest => {
66
87
  const [domain, ...subdomainParts] = manifest.Package.split(".");
67
88
  return {
@@ -2165,7 +2186,7 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
2165
2186
  }
2166
2187
  const {
2167
2188
  buildFolders
2168
- } = await import('./index-1b304a61.js').then(function (n) { return n.i; });
2189
+ } = await import('./index-c1b42e4c.js').then(function (n) { return n.i; });
2169
2190
  await buildFolders({
2170
2191
  ...options,
2171
2192
  packages: folders,
@@ -2288,7 +2309,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
2288
2309
  }
2289
2310
  const {
2290
2311
  releaseFolder
2291
- } = await import('./index-4d792508.js');
2312
+ } = await import('./index-66de4fea.js');
2292
2313
  const prompter = createDefaultPrompter();
2293
2314
  const fullOptions = {
2294
2315
  ...options,
@@ -2416,25 +2437,46 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
2416
2437
  });
2417
2438
  yargsInstance.command({
2418
2439
  command: "generateIndex [directory]",
2419
- builder: argv => {
2420
- return argv.option("ignore", {
2421
- type: "array",
2422
- default: [],
2423
- description: "Files to ignore while generating index"
2440
+ builder: argv => argv.option("ignore", {
2441
+ type: "array",
2442
+ default: [],
2443
+ description: "Files to ignore while generating index"
2444
+ }),
2445
+ handler: async ({
2446
+ directory,
2447
+ ignore
2448
+ }) => {
2449
+ const workspace = detectWorkspace(process.cwd());
2450
+ await preCommandCheck(workspace);
2451
+ const {
2452
+ generateIndex
2453
+ } = await import('./generateIndex-eb975b01.js');
2454
+ const location = detectPackage(workspace, directory);
2455
+ generateIndex({
2456
+ location,
2457
+ ignore
2424
2458
  });
2425
2459
  },
2460
+ describe: "Generates an index file for a package based on typescript types"
2461
+ });
2462
+ yargsInstance.command({
2463
+ command: "generateParameterType [directory] [name]",
2426
2464
  handler: async ({
2427
2465
  directory,
2428
- ignore
2466
+ name
2429
2467
  }) => {
2430
2468
  const workspace = detectWorkspace(process.cwd());
2431
2469
  await preCommandCheck(workspace);
2432
2470
  const {
2433
- extract
2434
- } = await import('./generate-01f1838f.js');
2471
+ generateParameterType
2472
+ } = await import('./generateParameterType-e49e4ba0.js');
2435
2473
  const location = detectPackage(workspace, directory);
2436
- extract(location, ignore);
2437
- }
2474
+ generateParameterType({
2475
+ location,
2476
+ name
2477
+ });
2478
+ },
2479
+ describe: "Generates a parameter type for an interactor or evaluator"
2438
2480
  });
2439
2481
  yargsInstance.command({
2440
2482
  command: "postinstall",
@@ -2442,7 +2484,7 @@ yargsInstance.command({
2442
2484
  handler: async () => {
2443
2485
  const {
2444
2486
  executePostInstall
2445
- } = await import('./postinstall-a621a30d.js');
2487
+ } = await import('./postinstall-ecbdcf37.js');
2446
2488
  executePostInstall(detectWorkspace(process.cwd()));
2447
2489
  },
2448
2490
  describe: "Runs postinstall tasks"
@@ -2468,7 +2510,7 @@ yargsInstance.command({
2468
2510
  const workspace = detectWorkspace(process.cwd());
2469
2511
  const {
2470
2512
  publishToNpm
2471
- } = await import('./publishNpm-6671ae3b.js');
2513
+ } = await import('./publishNpm-5ea951b3.js');
2472
2514
  await publishToNpm({
2473
2515
  workspace,
2474
2516
  location: detectPackage(workspace, directory),
@@ -2484,5 +2526,5 @@ var cli = /*#__PURE__*/Object.freeze({
2484
2526
  __proto__: null
2485
2527
  });
2486
2528
 
2487
- export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageAnimationList as a, readPackageCreatorIndex as b, readWorkspaceNpmManifest as c, getPackageReleasesDirectory as d, getExistingPackages as e, closeSession as f, getWorkspaceOutputPath as g, getPackageTypescriptFiles as h, isErrorENOENT as i, writePackageCreatorIndex as j, getWorkspaceLibPath as k, readNpmManifest as l, stripUtf8Bom as m, readPackageNpmManifest as n, writePackageNpmManifest as o, parseCreatorPackageName as p, iterateWorkspacePackages as q, readPackageCreatorManifest as r, startSession as s, cli as t, uploadPackage as u, writePackageCreatorManifest as w };
2488
- //# sourceMappingURL=cli-5a0c1608.js.map
2529
+ export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageAnimationList as a, readPackageCreatorIndex as b, readWorkspaceNpmManifest as c, getPackageReleasesDirectory as d, getExistingPackages as e, closeSession as f, getWorkspaceOutputPath as g, getPackageTypescriptFiles as h, isErrorENOENT as i, writePackageCreatorIndex as j, getCreatorIndexParameterPrimaryJSType as k, getWorkspaceLibPath as l, readNpmManifest as m, stripUtf8Bom as n, readPackageNpmManifest as o, parseCreatorPackageName as p, writePackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, iterateWorkspacePackages as t, uploadPackage as u, cli as v, writePackageCreatorManifest as w };
2530
+ //# sourceMappingURL=cli-fbbf208b.js.map