@postxl/cli 1.4.4 → 1.4.5
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.js +7 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
const commander_1 = require("commander");
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
5
9
|
const create_project_command_1 = require("./create-project.command");
|
|
6
10
|
const generate_command_1 = require("./generate.command");
|
|
7
11
|
const validate_command_1 = require("./validate.command");
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
+
const { version } = require(node_path_1.default.join(__dirname, '..', 'package.json'));
|
|
8
14
|
const program = new commander_1.Command();
|
|
9
15
|
program
|
|
10
16
|
//
|
|
11
17
|
.name('pxl')
|
|
12
18
|
.description('CLI for PostXL')
|
|
13
|
-
.version(
|
|
19
|
+
.version(version);
|
|
14
20
|
// Adding all the commands
|
|
15
21
|
(0, generate_command_1.register)(program);
|
|
16
22
|
(0, create_project_command_1.register)(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postxl/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Command-line interface for PostXL code generation framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"dotenv": "17.3.1",
|
|
46
46
|
"zod-validation-error": "5.0.0",
|
|
47
47
|
"@postxl/generator": "^1.3.7",
|
|
48
|
-
"@postxl/generators": "^1.
|
|
49
|
-
"@postxl/schema": "^1.8.
|
|
48
|
+
"@postxl/generators": "^1.22.0",
|
|
49
|
+
"@postxl/schema": "^1.8.1",
|
|
50
50
|
"@postxl/utils": "^1.4.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {},
|