jsii 5.9.63-dev.0 → 5.9.63-dev.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.
package/lib/assembler.js CHANGED
@@ -121,6 +121,9 @@ class Assembler {
121
121
  * @return the result of the assembly emission.
122
122
  */
123
123
  emit() {
124
+ if (this.projectInfo.name.includes('.')) {
125
+ this._diagnostics.push(jsii_diagnostic_1.JsiiDiagnostic.JSII_0009_PACKAGE_NAME_CONTAINS_DOT.createDetached(this.projectInfo.name));
126
+ }
124
127
  if (!this.projectInfo.description) {
125
128
  this._diagnostics.push(jsii_diagnostic_1.JsiiDiagnostic.JSII_0001_PKG_MISSING_DESCRIPTION.createDetached());
126
129
  }
@@ -346,12 +349,12 @@ class Assembler {
346
349
  if (typeof ref !== 'string') {
347
350
  ref = ref.fqn;
348
351
  }
349
- const [assm] = ref.split('.');
350
352
  let type;
351
- if (assm === this.projectInfo.name) {
353
+ if (ref.startsWith(`${this.projectInfo.name}.`)) {
352
354
  type = this._types.get(ref);
353
355
  }
354
356
  else {
357
+ const [assm] = ref.split('.');
355
358
  const assembly = this.projectInfo.dependencyClosure.find((dep) => dep.name === assm);
356
359
  type = assembly?.types?.[ref];
357
360
  // since we are exposing a type of this assembly in this module's public API,