@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 +59 -0
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +59 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -509,6 +509,65 @@ ${locations.join("\n")}`
|
|
|
509
509
|
loader: "js"
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
|
+
build2.onResolve({ filter: /^lucide-react/ }, async (args) => {
|
|
513
|
+
var _a;
|
|
514
|
+
if ((_a = args.pluginData) == null ? void 0 : _a.skipStub) return void 0;
|
|
515
|
+
try {
|
|
516
|
+
const result = await build2.resolve(args.path, {
|
|
517
|
+
kind: args.kind,
|
|
518
|
+
resolveDir: args.resolveDir,
|
|
519
|
+
importer: args.importer,
|
|
520
|
+
namespace: "file",
|
|
521
|
+
pluginData: { skipStub: true }
|
|
522
|
+
});
|
|
523
|
+
if (!result.errors.length) return result;
|
|
524
|
+
} catch (e) {
|
|
525
|
+
}
|
|
526
|
+
return { path: args.path, namespace: "lucide-stub" };
|
|
527
|
+
});
|
|
528
|
+
build2.onLoad({ filter: /.*/, namespace: "lucide-stub" }, () => ({
|
|
529
|
+
// Provide all icon names used by @onexapis/core as no-op SVG stub components
|
|
530
|
+
contents: `
|
|
531
|
+
const icon = (props) => null;
|
|
532
|
+
export { icon as Check, icon as ChevronDown, icon as XCircle, icon as AlertTriangle };
|
|
533
|
+
export { icon as CheckCircle, icon as Info, icon as X, icon as XIcon };
|
|
534
|
+
export { icon as CircleIcon, icon as Star, icon as ShoppingCart };
|
|
535
|
+
export { icon as ChevronRight, icon as ChevronLeft, icon as ChevronUp };
|
|
536
|
+
export { icon as Search, icon as Menu, icon as Heart, icon as User };
|
|
537
|
+
export { icon as Trash2, icon as Plus, icon as Minus, icon as Eye, icon as EyeOff };
|
|
538
|
+
export { icon as ArrowRight, icon as ArrowLeft, icon as ExternalLink, icon as Mail };
|
|
539
|
+
export { icon as Phone, icon as MapPin, icon as Calendar, icon as Clock };
|
|
540
|
+
export { icon as Facebook, icon as Twitter, icon as Instagram, icon as Linkedin, icon as Github };
|
|
541
|
+
export default new Proxy({}, { get: (_, name) => name === '__esModule' ? true : icon });
|
|
542
|
+
`.trim(),
|
|
543
|
+
loader: "jsx"
|
|
544
|
+
}));
|
|
545
|
+
build2.onResolve({ filter: /^framer-motion/ }, async (args) => {
|
|
546
|
+
var _a;
|
|
547
|
+
if ((_a = args.pluginData) == null ? void 0 : _a.skipStub) return void 0;
|
|
548
|
+
try {
|
|
549
|
+
const result = await build2.resolve(args.path, {
|
|
550
|
+
kind: args.kind,
|
|
551
|
+
resolveDir: args.resolveDir,
|
|
552
|
+
importer: args.importer,
|
|
553
|
+
namespace: "file",
|
|
554
|
+
pluginData: { skipStub: true }
|
|
555
|
+
});
|
|
556
|
+
if (!result.errors.length) return result;
|
|
557
|
+
} catch (e) {
|
|
558
|
+
}
|
|
559
|
+
return { path: args.path, namespace: "motion-stub" };
|
|
560
|
+
});
|
|
561
|
+
build2.onLoad({ filter: /.*/, namespace: "motion-stub" }, () => ({
|
|
562
|
+
contents: `
|
|
563
|
+
const stub = (props) => props.children || null;
|
|
564
|
+
const handler = { get: (_, name) => name === '__esModule' ? true : stub };
|
|
565
|
+
export const motion = new Proxy({}, handler);
|
|
566
|
+
export const AnimatePresence = stub;
|
|
567
|
+
export default { motion, AnimatePresence };
|
|
568
|
+
`.trim(),
|
|
569
|
+
loader: "jsx"
|
|
570
|
+
}));
|
|
512
571
|
}
|
|
513
572
|
};
|
|
514
573
|
await esbuild.build({
|