pasika 0.10.86 → 0.10.87

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.
@@ -844,17 +844,21 @@ function componentFacadeTarget(context, filename) {
844
844
  if (statements.length === 0 || statements.some((node) => node.type !== "ExportNamedDeclaration" || !node.source)) {
845
845
  return void 0;
846
846
  }
847
- const exports = statements.flatMap((node) => node.type === "ExportNamedDeclaration" ? node.specifiers : []);
848
- const sources = statements.map((node) => node.type === "ExportNamedDeclaration" ? node.source?.value : void 0);
849
- if (new Set(sources).size !== 1 || typeof sources[0] !== "string" || !sources[0].startsWith("./")) {
850
- return void 0;
847
+ for (const statement of statements) {
848
+ if (statement.type !== "ExportNamedDeclaration" || typeof statement.source?.value !== "string") continue;
849
+ if (!statement.source.value.startsWith("./")) return void 0;
850
+ const componentFile = path6.resolve(path6.dirname(filename), `${statement.source.value}.tsx`);
851
+ if (!fs2.existsSync(componentFile)) continue;
852
+ const components = parseComponentInfo(fs2.readFileSync(componentFile, "utf8"), componentFile);
853
+ if (components.some(
854
+ ({ name }) => statement.specifiers.some(
855
+ (specifier) => specifier.local.type === "Identifier" && specifier.local.name === name
856
+ )
857
+ )) {
858
+ return componentFile;
859
+ }
851
860
  }
852
- const componentFile = path6.resolve(path6.dirname(filename), `${sources[0]}.tsx`);
853
- if (!fs2.existsSync(componentFile)) return void 0;
854
- const components = parseComponentInfo(fs2.readFileSync(componentFile, "utf8"), componentFile);
855
- return components.some(
856
- ({ name }) => exports.some((specifier) => specifier.local.type === "Identifier" && specifier.local.name === name)
857
- ) ? componentFile : void 0;
861
+ return void 0;
858
862
  }
859
863
  var applicationStructureRule = {
860
864
  meta: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.86",
3
+ "version": "0.10.87",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",