@intelligentgraphics/ig.gfx.packager 3.0.6 → 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 {
@@ -1962,6 +1983,7 @@ const startSession = async ({
1962
1983
  throw new Error(message);
1963
1984
  }
1964
1985
  return {
1986
+ _kind: "AssetService",
1965
1987
  url,
1966
1988
  sessionId,
1967
1989
  domain: params.domain,
@@ -2164,7 +2186,7 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
2164
2186
  }
2165
2187
  const {
2166
2188
  buildFolders
2167
- } = await import('./index-e2dc4a57.js').then(function (n) { return n.i; });
2189
+ } = await import('./index-c1b42e4c.js').then(function (n) { return n.i; });
2168
2190
  await buildFolders({
2169
2191
  ...options,
2170
2192
  packages: folders,
@@ -2287,7 +2309,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
2287
2309
  }
2288
2310
  const {
2289
2311
  releaseFolder
2290
- } = await import('./index-fb306868.js');
2312
+ } = await import('./index-66de4fea.js');
2291
2313
  const prompter = createDefaultPrompter();
2292
2314
  const fullOptions = {
2293
2315
  ...options,
@@ -2415,25 +2437,46 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
2415
2437
  });
2416
2438
  yargsInstance.command({
2417
2439
  command: "generateIndex [directory]",
2418
- builder: argv => {
2419
- return argv.option("ignore", {
2420
- type: "array",
2421
- default: [],
2422
- 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
2423
2458
  });
2424
2459
  },
2460
+ describe: "Generates an index file for a package based on typescript types"
2461
+ });
2462
+ yargsInstance.command({
2463
+ command: "generateParameterType [directory] [name]",
2425
2464
  handler: async ({
2426
2465
  directory,
2427
- ignore
2466
+ name
2428
2467
  }) => {
2429
2468
  const workspace = detectWorkspace(process.cwd());
2430
2469
  await preCommandCheck(workspace);
2431
2470
  const {
2432
- extract
2433
- } = await import('./generate-3019231d.js');
2471
+ generateParameterType
2472
+ } = await import('./generateParameterType-e49e4ba0.js');
2434
2473
  const location = detectPackage(workspace, directory);
2435
- extract(location, ignore);
2436
- }
2474
+ generateParameterType({
2475
+ location,
2476
+ name
2477
+ });
2478
+ },
2479
+ describe: "Generates a parameter type for an interactor or evaluator"
2437
2480
  });
2438
2481
  yargsInstance.command({
2439
2482
  command: "postinstall",
@@ -2441,7 +2484,7 @@ yargsInstance.command({
2441
2484
  handler: async () => {
2442
2485
  const {
2443
2486
  executePostInstall
2444
- } = await import('./postinstall-2c12dd4f.js');
2487
+ } = await import('./postinstall-ecbdcf37.js');
2445
2488
  executePostInstall(detectWorkspace(process.cwd()));
2446
2489
  },
2447
2490
  describe: "Runs postinstall tasks"
@@ -2467,7 +2510,7 @@ yargsInstance.command({
2467
2510
  const workspace = detectWorkspace(process.cwd());
2468
2511
  const {
2469
2512
  publishToNpm
2470
- } = await import('./publishNpm-1a1b8561.js');
2513
+ } = await import('./publishNpm-5ea951b3.js');
2471
2514
  await publishToNpm({
2472
2515
  workspace,
2473
2516
  location: detectPackage(workspace, directory),
@@ -2483,5 +2526,5 @@ var cli = /*#__PURE__*/Object.freeze({
2483
2526
  __proto__: null
2484
2527
  });
2485
2528
 
2486
- 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 };
2487
- //# sourceMappingURL=cli-0844c1bd.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