@d-zero/backlog-projects 0.4.15 → 0.5.0
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/README.md +5 -0
- package/dist/cli.js +9 -0
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
import dotenv from 'dotenv';
|
|
3
4
|
import Enquirer from 'enquirer';
|
|
4
5
|
import minimist from 'minimist';
|
|
@@ -6,12 +7,20 @@ import { assign } from './assign.js';
|
|
|
6
7
|
import { createBacklogClient } from './create-backlog-client.js';
|
|
7
8
|
import { roles } from './define.js';
|
|
8
9
|
import { getBacklogProjectIdFromUrl } from './get-backlog-project-id-from-url.js';
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
const pkg = require('../package.json');
|
|
9
12
|
dotenv.config();
|
|
10
13
|
const cli = minimist(process.argv.slice(2), {
|
|
11
14
|
alias: {
|
|
12
15
|
a: 'assign',
|
|
16
|
+
v: 'version',
|
|
13
17
|
},
|
|
14
18
|
});
|
|
19
|
+
// Handle -v / --version option
|
|
20
|
+
if (cli.version === true) {
|
|
21
|
+
process.stdout.write(`${pkg.name} v${pkg.version}\n`);
|
|
22
|
+
process.exit(0);
|
|
23
|
+
}
|
|
15
24
|
const backlog = createBacklogClient();
|
|
16
25
|
if (cli.assign) {
|
|
17
26
|
const users = await backlog.getUsers();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/backlog-projects",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A manipulating Backlog projects library",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"clean": "tsc --build --clean"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@d-zero/notion": "2.0.
|
|
30
|
-
"@d-zero/shared": "0.17.
|
|
29
|
+
"@d-zero/notion": "2.0.8",
|
|
30
|
+
"@d-zero/shared": "0.17.1",
|
|
31
31
|
"backlog-js": "0.15.0",
|
|
32
32
|
"dayjs": "1.11.19",
|
|
33
33
|
"dotenv": "17.2.3",
|
|
34
34
|
"enquirer": "2.4.1",
|
|
35
35
|
"minimist": "1.2.8"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9aa03b3928e271d45865c6e2eff4c89041fe20a2"
|
|
38
38
|
}
|