@tnotesjs/core 0.1.1 → 0.1.2
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.
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// config/ConfigManager.ts
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
6
|
|
|
8
7
|
// config/defaultConfig.ts
|
|
9
8
|
function getDefaultConfig(repoName) {
|
|
@@ -117,8 +116,7 @@ var ConfigManager = class _ConfigManager {
|
|
|
117
116
|
if (rootPath) {
|
|
118
117
|
this.rootPath = rootPath;
|
|
119
118
|
} else {
|
|
120
|
-
|
|
121
|
-
this.rootPath = path.resolve(__dirname, "..", "..", "..");
|
|
119
|
+
this.rootPath = process.cwd();
|
|
122
120
|
}
|
|
123
121
|
this.configPath = path.normalize(
|
|
124
122
|
path.resolve(this.rootPath, ".tnotes.json")
|
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED