@nzz/q-cli 2.2.5 → 2.2.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/README.md +6 -3
- package/dist/index.js +0 -0
- package/package.json +21 -21
- package/src/index.ts +24 -0
package/README.md
CHANGED
|
@@ -70,10 +70,13 @@ Q update-item -e local -c ./tests/q.config.json
|
|
|
70
70
|
|
|
71
71
|
## Release
|
|
72
72
|
|
|
73
|
-
Changes to the Q-cli won't be automatically released by the CI/CD. After the changes have been merged into the `main` branch, and the changeset got applied, the Q-cli needs to be manually published
|
|
73
|
+
Changes to the Q-cli won't be automatically released by the CI/CD. After the changes have been merged into the `main` branch, and the changeset got applied, the Q-cli needs to be manually published.
|
|
74
|
+
|
|
75
|
+
Use `pnpm publish` (not `npm publish`) so `catalog:` deps are rewritten to real versions in the published package. `npm publish` ships `catalog:` as-is and breaks `npm install -g @nzz/q-cli`.
|
|
74
76
|
|
|
75
77
|
```bash
|
|
76
78
|
pnpm build
|
|
77
|
-
|
|
78
|
-
npm publish
|
|
79
|
+
pnpm publish
|
|
79
80
|
```
|
|
81
|
+
|
|
82
|
+
Optional: run `pnpm pack` first and inspect the tarball's `package.json` to confirm `catalog:` was replaced with concrete versions.
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nzz/q-cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@1password/op-js": "^0.1.13",
|
|
17
|
+
"ajv": "^8.17.1",
|
|
18
|
+
"commander": "^13.1.0",
|
|
19
|
+
"form-data": "^4.0.2",
|
|
20
|
+
"node-fetch": "^3.3.2"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
24
|
+
"typescript": "^5.9.3",
|
|
25
|
+
"vitest": "^4.1.5",
|
|
26
|
+
"@repo/types-custom-code": "^1.4.0",
|
|
27
|
+
"@repo/types-db": "^1.4.1",
|
|
28
|
+
"delivery-server": "3.12.9",
|
|
29
|
+
"eslint-config-custom": "2.0.0",
|
|
30
|
+
"@repo/types-files": "^1.2.0"
|
|
31
|
+
},
|
|
13
32
|
"scripts": {
|
|
14
33
|
"build": "tsc && npm run copy-assets",
|
|
15
34
|
"copy-assets": "cp -R src/assets dist/",
|
|
@@ -22,24 +41,5 @@
|
|
|
22
41
|
"eslint": "TIMING=1 eslint .",
|
|
23
42
|
"lint:all": "run-s -c tscheck lint svelte-check",
|
|
24
43
|
"tscheck": "tsc --noEmit"
|
|
25
|
-
},
|
|
26
|
-
"author": "",
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@1password/op-js": "catalog:",
|
|
30
|
-
"ajv": "^8.17.1",
|
|
31
|
-
"commander": "^13.1.0",
|
|
32
|
-
"form-data": "catalog:",
|
|
33
|
-
"node-fetch": "^3.3.2"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@repo/types-custom-code": "workspace:^",
|
|
37
|
-
"@repo/types-db": "workspace:^",
|
|
38
|
-
"@repo/types-files": "workspace:^",
|
|
39
|
-
"@vitest/coverage-v8": "catalog:",
|
|
40
|
-
"delivery-server": "workspace:*",
|
|
41
|
-
"eslint-config-custom": "workspace:*",
|
|
42
|
-
"typescript": "catalog:",
|
|
43
|
-
"vitest": "catalog:"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { Command } from 'commander';
|
|
4
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
5
|
+
import { createCreateCustomCodeItemCommand } from './commands/createCustomCodeItem.js';
|
|
6
|
+
import { createUpdateItemCommand } from './commands/updateItem.js';
|
|
7
|
+
import { createNewCustomCodeCommand } from './commands/newCustomCode.js';
|
|
8
|
+
|
|
9
|
+
const program = new Command();
|
|
10
|
+
const version = packageJson.version;
|
|
11
|
+
|
|
12
|
+
async function main() {
|
|
13
|
+
program.version(version).description('Q Toolbox cli');
|
|
14
|
+
|
|
15
|
+
createNewCustomCodeCommand(program);
|
|
16
|
+
|
|
17
|
+
createUpdateItemCommand(program);
|
|
18
|
+
|
|
19
|
+
createCreateCustomCodeItemCommand(program);
|
|
20
|
+
|
|
21
|
+
await program.parseAsync(process.argv);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
main();
|