jsii 6.0.26-dev.0 → 6.0.26-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 +5 -2
- package/lib/assembler.js.map +1 -1
- package/lib/jsii-diagnostic.d.ts +1 -0
- package/lib/jsii-diagnostic.js +7 -0
- package/lib/jsii-diagnostic.js.map +1 -1
- package/lib/version.d.ts +2 -2
- package/lib/version.js +2 -2
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
package/lib/assembler.js
CHANGED
|
@@ -173,6 +173,9 @@ class Assembler {
|
|
|
173
173
|
* @return the result of the assembly emission.
|
|
174
174
|
*/
|
|
175
175
|
emit() {
|
|
176
|
+
if (this.projectInfo.name.includes('.')) {
|
|
177
|
+
this._diagnostics.push(jsii_diagnostic_1.JsiiDiagnostic.JSII_0009_PACKAGE_NAME_CONTAINS_DOT.createDetached(this.projectInfo.name));
|
|
178
|
+
}
|
|
176
179
|
if (!this.projectInfo.description) {
|
|
177
180
|
this._diagnostics.push(jsii_diagnostic_1.JsiiDiagnostic.JSII_0001_PKG_MISSING_DESCRIPTION.createDetached());
|
|
178
181
|
}
|
|
@@ -398,12 +401,12 @@ class Assembler {
|
|
|
398
401
|
if (typeof ref !== 'string') {
|
|
399
402
|
ref = ref.fqn;
|
|
400
403
|
}
|
|
401
|
-
const [assm] = ref.split('.');
|
|
402
404
|
let type;
|
|
403
|
-
if (
|
|
405
|
+
if (ref.startsWith(`${this.projectInfo.name}.`)) {
|
|
404
406
|
type = this._types.get(ref);
|
|
405
407
|
}
|
|
406
408
|
else {
|
|
409
|
+
const [assm] = ref.split('.');
|
|
407
410
|
const assembly = this.projectInfo.dependencyClosure.find((dep) => dep.name === assm);
|
|
408
411
|
type = assembly?.types?.[ref];
|
|
409
412
|
// since we are exposing a type of this assembly in this module's public API,
|