@komaci/esm-generator 260.31.0 → 260.32.1

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.
@@ -376,6 +376,24 @@ export default class Component extends LightningElement {
376
376
  expect(metadata.files.length).toBeGreaterThan(0);
377
377
  const tsFile = metadata.files.find((f) => f.fileName === 'component.ts');
378
378
  expect(tsFile).toBeDefined();
379
+ expect(tsFile?.komaciDoc).toBeDefined();
380
+ // Massage inputs for generateKomaciModule:
381
+ const srcFileMap = bundleFiles.reduce((map, { fileName, source }) => ({ ...map, [fileName]: source }), {});
382
+ const inputFiles = Object.fromEntries(metadata.files
383
+ .map(({ fileName, komaciDoc }) => [fileName, komaciDoc])
384
+ .filter(([, komaciDoc]) => !!komaciDoc));
385
+ const generatorInput = {
386
+ moduleInfo: {
387
+ name: bundleConfig.name,
388
+ namespace: bundleConfig.namespace,
389
+ type: 'bundle',
390
+ files: inputFiles,
391
+ },
392
+ srcFileMap,
393
+ };
394
+ // Verify the full ADG generation path works with TypeScript bundle
395
+ const result = (0, index_1.generateKomaciModule)(generatorInput);
396
+ expect(result).not.toContain('ErrorFunction');
379
397
  }).not.toThrow();
380
398
  });
381
399
  // Test that verifies the file extension is properly detected
package/build/index.js CHANGED
@@ -134,7 +134,7 @@ function processGeneratorInputAndState(input) {
134
134
  if (fileExt == 'html') {
135
135
  filesMap['html'] = filesObj;
136
136
  }
137
- else if (fileExt === 'js') {
137
+ else if (fileExt === 'js' || fileExt === 'ts') {
138
138
  filesMap['js'] = filesObj;
139
139
  }
140
140
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/esm-generator",
3
- "version": "260.31.0",
3
+ "version": "260.32.1",
4
4
  "description": "Komaci generator for ADG ES modules",
5
5
  "homepage": "https://komaci.dev/",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "@babel/core": "^7.9.0",
30
30
  "@babel/generator": "^7.9.0",
31
31
  "@babel/types": "^7.9.0",
32
- "@komaci/common-shared": "258.0.0",
33
- "@komaci/static-analyzer": "258.0.0"
32
+ "@komaci/common-shared": "^260.32.0",
33
+ "@komaci/static-analyzer": "^260.32.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@komaci/types": "258.0.0",
36
+ "@komaci/types": "^260.32.0",
37
37
  "@lwc-platform/sfdc-lwc-compiler": "248.3.9-3.5.0",
38
38
  "@lwc/metadata": "^12.0.0"
39
39
  }