@tnotesjs/core 0.1.1 → 0.1.3
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.
Potentially problematic release.
This version of @tnotesjs/core might be problematic. Click here for more details.
- package/dist/chunk-H2NACWVJ.js +4631 -0
- package/dist/{chunk-NYLJBCWL.js → chunk-UIXF3LPU.js} +28 -4
- package/dist/cli/index.js +71 -4636
- package/dist/index.js +1 -2
- package/dist/vitepress/config/index.js +993 -0
- package/package.json +2 -3
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
2
26
|
|
|
3
27
|
// config/ConfigManager.ts
|
|
4
28
|
import fs from "fs";
|
|
5
29
|
import path from "path";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
30
|
|
|
8
31
|
// config/defaultConfig.ts
|
|
9
32
|
function getDefaultConfig(repoName) {
|
|
@@ -117,8 +140,7 @@ var ConfigManager = class _ConfigManager {
|
|
|
117
140
|
if (rootPath) {
|
|
118
141
|
this.rootPath = rootPath;
|
|
119
142
|
} else {
|
|
120
|
-
|
|
121
|
-
this.rootPath = path.resolve(__dirname, "..", "..", "..");
|
|
143
|
+
this.rootPath = process.cwd();
|
|
122
144
|
}
|
|
123
145
|
this.configPath = path.normalize(
|
|
124
146
|
path.resolve(this.rootPath, ".tnotes.json")
|
|
@@ -202,6 +224,8 @@ function getConfigManager() {
|
|
|
202
224
|
}
|
|
203
225
|
|
|
204
226
|
export {
|
|
227
|
+
__commonJS,
|
|
228
|
+
__toESM,
|
|
205
229
|
ConfigManager,
|
|
206
230
|
getConfigManager
|
|
207
231
|
};
|