notion-github 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. package/dist/cli.js +20 -3
  2. package/package.json +2 -3
package/dist/cli.js CHANGED
@@ -2788,9 +2788,26 @@ var {
2788
2788
  Help
2789
2789
  } = import_index.default;
2790
2790
 
2791
+ // package.json
2792
+ var version = "0.1.6";
2793
+
2794
+ // src/commands/create/action.ts
2795
+ async function action(options) {
2796
+ console.log("Create command called with:", options);
2797
+ }
2798
+
2799
+ // src/commands/create/index.ts
2800
+ function createCommand2(program3) {
2801
+ program3.command("create").description("Create a new PR").requiredOption("--title <title>", "PR title").option("--description <description>", "PR description").option("--branch <branch>", "Target branch", "main").action(action);
2802
+ }
2803
+
2804
+ // src/commands/index.ts
2805
+ function registerCommands(program3) {
2806
+ createCommand2(program3);
2807
+ }
2808
+
2791
2809
  // src/cli.ts
2792
2810
  var program2 = new Command();
2793
- program2.name("pr-cli").description("A simple CLI tool").version("0.1.2").action(() => {
2794
- console.log("Hello World");
2795
- });
2811
+ program2.name("pr-cli").description("A simple CLI tool").version(version);
2812
+ registerCommands(program2);
2796
2813
  program2.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notion-github",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "GitHub and Notion integration for PR automation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,8 +26,7 @@
26
26
  "@changesets/cli": "^2.27.11",
27
27
  "@notionhq/client": "^2.0.0",
28
28
  "@octokit/rest": "^19.0.0",
29
- "commander": "^11.0.0",
30
- "ora": "^8.1.1"
29
+ "commander": "^11.0.0"
31
30
  },
32
31
  "bin": {
33
32
  "pr-cli": "dist/cli.js"