@revealui/core 0.0.1-pre.2 → 0.0.1-pre.3
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/exports/bin-entry.js +15 -3
- package/dist/node/cli/index.js +18 -3
- package/package.json +2 -2
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// Import the CLI
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
// Import the CLI - try multiple locations for compatibility
|
|
4
|
+
(async () => {
|
|
5
|
+
try {
|
|
6
|
+
// Try core/cli/bin.js first (compiled by TypeScript)
|
|
7
|
+
await import("../core/cli/bin.js");
|
|
8
|
+
} catch {
|
|
9
|
+
try {
|
|
10
|
+
// Fallback to node/cli/index.js (created by build script)
|
|
11
|
+
await import("../node/cli/index.js");
|
|
12
|
+
} catch (error) {
|
|
13
|
+
console.error("Failed to load RevealUI CLI:", error);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
})();
|
package/dist/node/cli/index.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// CLI entry point - re-export from the actual CLI implementation
|
|
3
|
+
// This file is created when dist/core/cli/bin.js doesn't exist
|
|
4
|
+
// It will work once TypeScript compiles src/core/cli/bin.ts
|
|
5
|
+
|
|
6
|
+
// Try to import from the compiled location
|
|
7
|
+
try {
|
|
8
|
+
const cli = await import("../../core/cli/bin.js");
|
|
9
|
+
// If it's a default export, use it; otherwise use the module
|
|
10
|
+
if (cli.default) {
|
|
11
|
+
module.exports = cli.default;
|
|
12
|
+
} else {
|
|
13
|
+
Object.assign(module.exports, cli);
|
|
14
|
+
}
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.error("Failed to load CLI:", error);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revealui/core",
|
|
3
|
-
"version": "0.0.1-pre.
|
|
3
|
+
"version": "0.0.1-pre.3",
|
|
4
4
|
"description": "Modern React 19 framework with Next.js 16, Vike, and PayloadCMS integration. Production-ready, Vercel-optimized, and enterprise-grade.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"LICENSE_SUMMARY.md"
|
|
22
22
|
],
|
|
23
23
|
"bin": {
|
|
24
|
-
"
|
|
24
|
+
"revealui": "./dist/exports/bin-entry.js"
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"keywords": [
|