@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
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConfigManager,
4
4
  getConfigManager
5
- } from "../chunk-NYLJBCWL.js";
5
+ } from "../chunk-WC3B6S3J.js";
6
6
 
7
7
  // commands/models.ts
8
8
  var COMMAND_NAMES = {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConfigManager,
4
4
  getConfigManager
5
- } from "./chunk-NYLJBCWL.js";
5
+ } from "./chunk-WC3B6S3J.js";
6
6
  export {
7
7
  ConfigManager,
8
8
  getConfigManager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tnotesjs/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "TNotes 知识库核心框架 —— 基于 VitePress 的笔记管理系统",
5
5
  "type": "module",
6
6
  "bin": {