@opendirectory.dev/skills 0.1.1 → 0.1.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/index.js +3 -1
- package/package.json +1 -1
- package/src/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -39,15 +39,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
const commander_1 = require("commander");
|
|
41
41
|
const fs = __importStar(require("node:fs/promises"));
|
|
42
|
+
const fsSync = __importStar(require("node:fs"));
|
|
42
43
|
const path = __importStar(require("node:path"));
|
|
43
44
|
const chalk_1 = __importDefault(require("chalk"));
|
|
44
45
|
const ora_1 = __importDefault(require("ora"));
|
|
45
46
|
const cli_table3_1 = __importDefault(require("cli-table3"));
|
|
46
47
|
const program = new commander_1.Command();
|
|
48
|
+
const pkg = JSON.parse(fsSync.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
47
49
|
program
|
|
48
50
|
.name('@opendirectory.dev/skills')
|
|
49
51
|
.description(chalk_1.default.blue.bold('CLI to install OpenDirectory skills'))
|
|
50
|
-
.version(
|
|
52
|
+
.version(pkg.version);
|
|
51
53
|
const getProjectRoot = () => {
|
|
52
54
|
return path.resolve(__dirname, '..');
|
|
53
55
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import * as fs from 'node:fs/promises';
|
|
5
|
+
import * as fsSync from 'node:fs';
|
|
5
6
|
import * as path from 'node:path';
|
|
6
7
|
import { Skill } from './transformers';
|
|
7
8
|
import { safeWriteFile } from './fs-adapters';
|
|
@@ -11,10 +12,12 @@ import Table from 'cli-table3';
|
|
|
11
12
|
|
|
12
13
|
const program = new Command();
|
|
13
14
|
|
|
15
|
+
const pkg = JSON.parse(fsSync.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
16
|
+
|
|
14
17
|
program
|
|
15
18
|
.name('@opendirectory.dev/skills')
|
|
16
19
|
.description(chalk.blue.bold('CLI to install OpenDirectory skills'))
|
|
17
|
-
.version(
|
|
20
|
+
.version(pkg.version);
|
|
18
21
|
|
|
19
22
|
const getProjectRoot = () => {
|
|
20
23
|
return path.resolve(__dirname, '..');
|