@onexapis/cli 1.1.0 → 1.1.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/dist/cli.js CHANGED
@@ -552,6 +552,65 @@ ${locations.join("\n")}`
552
552
  loader: "js"
553
553
  };
554
554
  });
555
+ build2.onResolve({ filter: /^lucide-react/ }, async (args) => {
556
+ var _a;
557
+ if ((_a = args.pluginData) == null ? void 0 : _a.skipStub) return void 0;
558
+ try {
559
+ const result = await build2.resolve(args.path, {
560
+ kind: args.kind,
561
+ resolveDir: args.resolveDir,
562
+ importer: args.importer,
563
+ namespace: "file",
564
+ pluginData: { skipStub: true }
565
+ });
566
+ if (!result.errors.length) return result;
567
+ } catch (e) {
568
+ }
569
+ return { path: args.path, namespace: "lucide-stub" };
570
+ });
571
+ build2.onLoad({ filter: /.*/, namespace: "lucide-stub" }, () => ({
572
+ // Provide all icon names used by @onexapis/core as no-op SVG stub components
573
+ contents: `
574
+ const icon = (props) => null;
575
+ export { icon as Check, icon as ChevronDown, icon as XCircle, icon as AlertTriangle };
576
+ export { icon as CheckCircle, icon as Info, icon as X, icon as XIcon };
577
+ export { icon as CircleIcon, icon as Star, icon as ShoppingCart };
578
+ export { icon as ChevronRight, icon as ChevronLeft, icon as ChevronUp };
579
+ export { icon as Search, icon as Menu, icon as Heart, icon as User };
580
+ export { icon as Trash2, icon as Plus, icon as Minus, icon as Eye, icon as EyeOff };
581
+ export { icon as ArrowRight, icon as ArrowLeft, icon as ExternalLink, icon as Mail };
582
+ export { icon as Phone, icon as MapPin, icon as Calendar, icon as Clock };
583
+ export { icon as Facebook, icon as Twitter, icon as Instagram, icon as Linkedin, icon as Github };
584
+ export default new Proxy({}, { get: (_, name) => name === '__esModule' ? true : icon });
585
+ `.trim(),
586
+ loader: "jsx"
587
+ }));
588
+ build2.onResolve({ filter: /^framer-motion/ }, async (args) => {
589
+ var _a;
590
+ if ((_a = args.pluginData) == null ? void 0 : _a.skipStub) return void 0;
591
+ try {
592
+ const result = await build2.resolve(args.path, {
593
+ kind: args.kind,
594
+ resolveDir: args.resolveDir,
595
+ importer: args.importer,
596
+ namespace: "file",
597
+ pluginData: { skipStub: true }
598
+ });
599
+ if (!result.errors.length) return result;
600
+ } catch (e) {
601
+ }
602
+ return { path: args.path, namespace: "motion-stub" };
603
+ });
604
+ build2.onLoad({ filter: /.*/, namespace: "motion-stub" }, () => ({
605
+ contents: `
606
+ const stub = (props) => props.children || null;
607
+ const handler = { get: (_, name) => name === '__esModule' ? true : stub };
608
+ export const motion = new Proxy({}, handler);
609
+ export const AnimatePresence = stub;
610
+ export default { motion, AnimatePresence };
611
+ `.trim(),
612
+ loader: "jsx"
613
+ }));
555
614
  }
556
615
  };
557
616
  await esbuild__namespace.build({