@editora/cli 1.0.5 → 1.0.6
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/index.cjs +3 -0
- package/dist/index.mjs +16 -0
- package/package.json +4 -4
package/dist/index.cjs
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ESM programmatic entrypoint — load the existing CommonJS implementation
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
4
|
+
const cli = require('../bin/editora.js');
|
|
5
|
+
|
|
6
|
+
export const run = cli.run;
|
|
7
|
+
export const parseArgs = cli.parseArgs;
|
|
8
|
+
export const resolveTarget = cli.resolveTarget;
|
|
9
|
+
export const detectPackageManager = cli.detectPackageManager;
|
|
10
|
+
export const installCommand = cli.installCommand;
|
|
11
|
+
export const getVersion = cli.getVersion;
|
|
12
|
+
export const formatHelpText = cli.formatHelpText;
|
|
13
|
+
export const uiReactComponents = cli.uiReactComponents;
|
|
14
|
+
export const specialRegistry = cli.specialRegistry;
|
|
15
|
+
|
|
16
|
+
export default cli;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editora/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Official Editora CLI for quickly adding UI components, editor packages, and SaaS-ready building blocks.",
|
|
5
5
|
"author": "Ajay Kumar <ajaykr089@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "node
|
|
34
|
+
"build": "node ./scripts/build.js",
|
|
35
35
|
"dev": "node -e \"console.log('editora cli: no dev server')\"",
|
|
36
36
|
"clean": "node -e \"console.log('editora cli: no artifacts to clean')\"",
|
|
37
|
-
"lint": "node --check ./bin/editora.js",
|
|
37
|
+
"lint": "node --check ./bin/editora.js && node --check ./scripts/build.js",
|
|
38
38
|
"test": "node --test ./test/cli.test.js",
|
|
39
39
|
"prepublishOnly": "npm test"
|
|
40
40
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=16.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "7883627e823aa99dd5ecb66a5201116df972f88b"
|
|
60
60
|
}
|