notion-github 0.1.9 → 0.1.11
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/cli.js +11 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
@@ -2789,7 +2789,7 @@ var {
|
|
2789
2789
|
} = import_index.default;
|
2790
2790
|
|
2791
2791
|
// package.json
|
2792
|
-
var version = "0.1.
|
2792
|
+
var version = "0.1.11";
|
2793
2793
|
|
2794
2794
|
// src/commands/create/action.ts
|
2795
2795
|
var import_rest = require("@octokit/rest");
|
@@ -2800,14 +2800,24 @@ var import_path = __toESM(require("path"));
|
|
2800
2800
|
var import_os = __toESM(require("os"));
|
2801
2801
|
var CONFIG_FILE = "notion_github_config.json";
|
2802
2802
|
function readConfig() {
|
2803
|
+
console.log("=== Debug Information ===");
|
2804
|
+
console.log("Current working directory:", process.cwd());
|
2805
|
+
console.log("Home directory:", import_os.default.homedir());
|
2803
2806
|
try {
|
2804
2807
|
const currentDirPath = import_path.default.join(process.cwd(), CONFIG_FILE);
|
2805
2808
|
const homeDirPath = import_path.default.join(import_os.default.homedir(), CONFIG_FILE);
|
2809
|
+
console.log("\nSearching for config file at:");
|
2810
|
+
console.log("1.", currentDirPath);
|
2811
|
+
console.log(" Exists:", import_fs.default.existsSync(currentDirPath));
|
2812
|
+
console.log("2.", homeDirPath);
|
2813
|
+
console.log(" Exists:", import_fs.default.existsSync(homeDirPath));
|
2806
2814
|
let configPath = "";
|
2807
2815
|
if (import_fs.default.existsSync(currentDirPath)) {
|
2808
2816
|
configPath = currentDirPath;
|
2817
|
+
console.log("\nUsing config from current directory");
|
2809
2818
|
} else if (import_fs.default.existsSync(homeDirPath)) {
|
2810
2819
|
configPath = homeDirPath;
|
2820
|
+
console.log("\nUsing config from home directory");
|
2811
2821
|
} else {
|
2812
2822
|
throw new Error(
|
2813
2823
|
`Config file not found. Please create ${CONFIG_FILE} in your project directory or home directory.`
|