resuml 1.13.0 → 1.13.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.
package/bin/resuml CHANGED
@@ -1,21 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  /* eslint-env node */
3
3
 
4
- const { existsSync } = require('fs');
5
- const { join } = require('path');
6
- const distPath = join(__dirname, '../dist/index.js');
4
+ import { existsSync } from 'fs';
5
+ import { dirname, join } from 'path';
6
+ import { fileURLToPath, pathToFileURL } from 'url';
7
7
 
8
- function startCli() {
9
- try {
10
- if (existsSync(distPath)) {
11
- require(distPath);
12
- } else {
13
- throw new Error('CLI not built. Please run "npm run build" first.');
14
- }
15
- } catch (err) {
16
- console.error('Error starting resuml CLI:', err);
17
- process.exit(1);
8
+ const currentDir = dirname(fileURLToPath(import.meta.url));
9
+ const distPath = join(currentDir, '../dist/index.js');
10
+
11
+ try {
12
+ if (!existsSync(distPath)) {
13
+ throw new Error('CLI not built. Please run "npm run build" first.');
18
14
  }
15
+ await import(pathToFileURL(distPath).href);
16
+ } catch (err) {
17
+ console.error('Error starting resuml CLI:', err);
18
+ process.exit(1);
19
19
  }
20
-
21
- startCli();
@@ -1,5 +1,5 @@
1
- import { T as ThemeModule } from './themeLoader-C7CBqNiC.cjs';
2
- export { R as Resume, l as loadResumeFiles, p as processResumeData } from './themeLoader-C7CBqNiC.cjs';
1
+ import { T as ThemeModule } from './themeLoader-C7CBqNiC.js';
2
+ export { R as Resume, l as loadResumeFiles, p as processResumeData } from './themeLoader-C7CBqNiC.js';
3
3
 
4
4
  /**
5
5
  * Node.js API: Only load theme from node_modules, do not auto-install
package/dist/api.js ADDED
@@ -0,0 +1,18 @@
1
+ import {
2
+ loadResumeFiles
3
+ } from "./chunk-4ZOTZUAW.js";
4
+ import {
5
+ processResumeData
6
+ } from "./chunk-CBMPNRQN.js";
7
+ import "./chunk-ZLA7NFYP.js";
8
+
9
+ // src/api.ts
10
+ async function loadTheme(themeName) {
11
+ return (await import("./themeLoader-ZGWEGYXG.js")).loadTheme(themeName, { autoInstall: false });
12
+ }
13
+ export {
14
+ loadResumeFiles,
15
+ loadTheme,
16
+ processResumeData
17
+ };
18
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api.ts"],"sourcesContent":["export * from './core';\nexport * from './utils/loadResume';\nexport * from './utils/themeLoader';\n\n/**\n * Node.js API: Only load theme from node_modules, do not auto-install\n */\nexport async function loadTheme(themeName: string) {\n return (await import('./utils/themeLoader')).loadTheme(themeName, { autoInstall: false });\n}\n"],"mappings":";;;;;;;;;AAOA,eAAsB,UAAU,WAAmB;AACjD,UAAQ,MAAM,OAAO,2BAAqB,GAAG,UAAU,WAAW,EAAE,aAAa,MAAM,CAAC;AAC1F;","names":[]}
@@ -1,54 +1,13 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
- // If the importer is in node compatibility mode or this is not an ESM
28
- // file that has been converted to a CommonJS file using a Babel-
29
- // compatible transform (i.e. "__esModule" has not been set), then set
30
- // "default" to the CommonJS "module.exports" for node compatibility.
31
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
- mod
33
- ));
34
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
-
36
- // node_modules/tsup/assets/cjs_shims.js
37
- var getImportMetaUrl, importMetaUrl;
38
- var init_cjs_shims = __esm({
39
- "node_modules/tsup/assets/cjs_shims.js"() {
40
- "use strict";
41
- getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
- importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
43
- }
44
- });
1
+ import {
2
+ __commonJS,
3
+ __toESM
4
+ } from "./chunk-ZLA7NFYP.js";
45
5
 
46
6
  // node_modules/balanced-match/index.js
47
7
  var require_balanced_match = __commonJS({
48
- "node_modules/balanced-match/index.js"(exports2, module2) {
8
+ "node_modules/balanced-match/index.js"(exports, module) {
49
9
  "use strict";
50
- init_cjs_shims();
51
- module2.exports = balanced;
10
+ module.exports = balanced;
52
11
  function balanced(a, b, str) {
53
12
  if (a instanceof RegExp) a = maybeMatch(a, str);
54
13
  if (b instanceof RegExp) b = maybeMatch(b, str);
@@ -104,11 +63,10 @@ var require_balanced_match = __commonJS({
104
63
 
105
64
  // node_modules/brace-expansion/index.js
106
65
  var require_brace_expansion = __commonJS({
107
- "node_modules/brace-expansion/index.js"(exports2, module2) {
66
+ "node_modules/brace-expansion/index.js"(exports, module) {
108
67
  "use strict";
109
- init_cjs_shims();
110
68
  var balanced = require_balanced_match();
111
- module2.exports = expandTop;
69
+ module.exports = expandTop;
112
70
  var escSlash = "\0SLASH" + Math.random() + "\0";
113
71
  var escOpen = "\0OPEN" + Math.random() + "\0";
114
72
  var escClose = "\0CLOSE" + Math.random() + "\0";
@@ -254,139 +212,18 @@ var require_brace_expansion = __commonJS({
254
212
  }
255
213
  });
256
214
 
257
- // src/utils/themeLoader.ts
258
- var themeLoader_exports = {};
259
- __export(themeLoader_exports, {
260
- loadTheme: () => loadTheme
261
- });
262
- function installTheme(packageName) {
263
- try {
264
- (0, import_child_process.execFileSync)("npm", ["install", packageName], {
265
- stdio: ["inherit", "pipe", "pipe"],
266
- encoding: "utf8"
267
- });
268
- } catch (error) {
269
- throw new Error(`Failed to install ${packageName}: ${error.message}`);
270
- }
271
- }
272
- function loadTheme(themeName, options) {
273
- let jsonResumeThemeName;
274
- let nativeThemeName;
275
- const autoInstall = options?.autoInstall !== false;
276
- try {
277
- jsonResumeThemeName = themeName.startsWith("jsonresume-theme-") ? themeName : `jsonresume-theme-${themeName}`;
278
- try {
279
- return require2(jsonResumeThemeName);
280
- } catch (_jsonResumeError) {
281
- nativeThemeName = `@resuml/theme-${themeName}`;
282
- try {
283
- return require2(nativeThemeName);
284
- } catch (_nativeError) {
285
- if (!autoInstall) {
286
- throw new Error(
287
- `Theme package ${jsonResumeThemeName} or ${nativeThemeName} not found in node_modules.
288
- Please install the theme package manually.`
289
- );
290
- }
291
- console.log(`\u{1F4E6} Theme ${jsonResumeThemeName} not found. Installing...`);
292
- try {
293
- installTheme(jsonResumeThemeName);
294
- console.log(`\u2705 Successfully installed ${jsonResumeThemeName}`);
295
- return require2(jsonResumeThemeName);
296
- } catch (installError) {
297
- throw new Error(
298
- `Failed to auto-install theme ${jsonResumeThemeName}: ${installError.message}`
299
- );
300
- }
301
- }
302
- }
303
- } catch (error) {
304
- if (error instanceof Error && error.message.includes("Failed to auto-install")) {
305
- throw error;
306
- }
307
- throw new Error(`Theme package ${themeName} not found`);
308
- }
309
- }
310
- var import_child_process, import_module, require2;
311
- var init_themeLoader = __esm({
312
- "src/utils/themeLoader.ts"() {
313
- "use strict";
314
- init_cjs_shims();
315
- import_child_process = require("child_process");
316
- import_module = require("module");
317
- require2 = (0, import_module.createRequire)(importMetaUrl);
318
- }
319
- });
320
-
321
- // src/api.ts
322
- var api_exports = {};
323
- __export(api_exports, {
324
- loadResumeFiles: () => loadResumeFiles,
325
- loadTheme: () => loadTheme2,
326
- processResumeData: () => processResumeData
327
- });
328
- module.exports = __toCommonJS(api_exports);
329
- init_cjs_shims();
330
-
331
- // src/core.ts
332
- init_cjs_shims();
333
- var import_yaml = require("yaml");
334
- var import_lodash = __toESM(require("lodash.merge"), 1);
335
- var import_schema = require("@jsonresume/schema");
336
- async function processResumeData(yamlContents) {
337
- if (yamlContents.length === 0) {
338
- throw new Error("No YAML content provided for processing.");
339
- }
340
- const dataObjects = yamlContents.map((content) => {
341
- try {
342
- return (0, import_yaml.parse)(content);
343
- } catch (error) {
344
- console.warn("Failed to parse YAML content:", error);
345
- return null;
346
- }
347
- }).filter((data) => typeof data === "object" && data !== null);
348
- if (dataObjects.length === 0) {
349
- throw new Error("No valid YAML content found after parsing.");
350
- }
351
- const customizer = (objValue, srcValue) => {
352
- if (Array.isArray(objValue)) {
353
- return objValue.concat(srcValue);
354
- }
355
- return void 0;
356
- };
357
- const mergedData = dataObjects.reduce((acc, data) => (0, import_lodash.default)(acc, data, customizer), {});
358
- return new Promise((resolve, reject) => {
359
- (0, import_schema.validate)(mergedData, (errors, isValid) => {
360
- if (!isValid) {
361
- reject(
362
- new Error(`Resume data failed schema validation: ${JSON.stringify(errors, null, 2)}`)
363
- );
364
- } else {
365
- resolve(mergedData);
366
- }
367
- });
368
- });
369
- }
370
-
371
215
  // src/utils/loadResume.ts
372
- init_cjs_shims();
373
- var import_promises3 = __toESM(require("fs/promises"), 1);
374
- var import_yaml2 = __toESM(require("yaml"), 1);
216
+ import fs2 from "fs/promises";
217
+ import YAML from "yaml";
375
218
 
376
219
  // src/utils/fileUtils.ts
377
- init_cjs_shims();
378
- var import_promises2 = __toESM(require("fs/promises"), 1);
379
- var import_path = __toESM(require("path"), 1);
380
-
381
- // node_modules/glob/dist/esm/index.js
382
- init_cjs_shims();
220
+ import fs from "fs/promises";
221
+ import path2 from "path";
383
222
 
384
223
  // node_modules/minimatch/dist/esm/index.js
385
- init_cjs_shims();
386
224
  var import_brace_expansion = __toESM(require_brace_expansion(), 1);
387
225
 
388
226
  // node_modules/minimatch/dist/esm/assert-valid-pattern.js
389
- init_cjs_shims();
390
227
  var MAX_PATTERN_LENGTH = 1024 * 64;
391
228
  var assertValidPattern = (pattern) => {
392
229
  if (typeof pattern !== "string") {
@@ -397,11 +234,7 @@ var assertValidPattern = (pattern) => {
397
234
  }
398
235
  };
399
236
 
400
- // node_modules/minimatch/dist/esm/ast.js
401
- init_cjs_shims();
402
-
403
237
  // node_modules/minimatch/dist/esm/brace-expressions.js
404
- init_cjs_shims();
405
238
  var posixClasses = {
406
239
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
407
240
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -511,7 +344,6 @@ var parseClass = (glob2, position) => {
511
344
  };
512
345
 
513
346
  // node_modules/minimatch/dist/esm/unescape.js
514
- init_cjs_shims();
515
347
  var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
516
348
  return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
517
349
  };
@@ -996,7 +828,6 @@ var AST = class _AST {
996
828
  };
997
829
 
998
830
  // node_modules/minimatch/dist/esm/escape.js
999
- init_cjs_shims();
1000
831
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1001
832
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1002
833
  };
@@ -1720,14 +1551,9 @@ minimatch.escape = escape;
1720
1551
  minimatch.unescape = unescape;
1721
1552
 
1722
1553
  // node_modules/glob/dist/esm/glob.js
1723
- init_cjs_shims();
1724
- var import_node_url2 = require("url");
1725
-
1726
- // node_modules/path-scurry/dist/esm/index.js
1727
- init_cjs_shims();
1554
+ import { fileURLToPath as fileURLToPath2 } from "url";
1728
1555
 
1729
1556
  // node_modules/lru-cache/dist/esm/index.js
1730
- init_cjs_shims();
1731
1557
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
1732
1558
  var warned = /* @__PURE__ */ new Set();
1733
1559
  var PROCESS = typeof process === "object" && !!process ? process : {};
@@ -3097,25 +2923,24 @@ var LRUCache = class _LRUCache {
3097
2923
  };
3098
2924
 
3099
2925
  // node_modules/path-scurry/dist/esm/index.js
3100
- var import_node_path = require("path");
3101
- var import_node_url = require("url");
3102
- var import_fs = require("fs");
3103
- var actualFS = __toESM(require("fs"), 1);
3104
- var import_promises = require("fs/promises");
2926
+ import { posix, win32 } from "path";
2927
+ import { fileURLToPath } from "url";
2928
+ import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
2929
+ import * as actualFS from "fs";
2930
+ import { lstat, readdir, readlink, realpath } from "fs/promises";
3105
2931
 
3106
2932
  // node_modules/minipass/dist/esm/index.js
3107
- init_cjs_shims();
3108
- var import_node_events = require("events");
3109
- var import_node_stream = __toESM(require("stream"), 1);
3110
- var import_node_string_decoder = require("string_decoder");
2933
+ import { EventEmitter } from "events";
2934
+ import Stream from "stream";
2935
+ import { StringDecoder } from "string_decoder";
3111
2936
  var proc = typeof process === "object" && process ? process : {
3112
2937
  stdout: null,
3113
2938
  stderr: null
3114
2939
  };
3115
- var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
3116
- var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
3117
- s.pipe !== import_node_stream.default.Writable.prototype.pipe;
3118
- var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
2940
+ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof Stream || isReadable(s) || isWritable(s));
2941
+ var isReadable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
2942
+ s.pipe !== Stream.Writable.prototype.pipe;
2943
+ var isWritable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.write === "function" && typeof s.end === "function";
3119
2944
  var EOF = Symbol("EOF");
3120
2945
  var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
3121
2946
  var EMITTED_END = Symbol("emittedEnd");
@@ -3191,7 +3016,7 @@ var PipeProxyErrors = class extends Pipe {
3191
3016
  };
3192
3017
  var isObjectModeOptions = (o) => !!o.objectMode;
3193
3018
  var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
3194
- var Minipass = class extends import_node_events.EventEmitter {
3019
+ var Minipass = class extends EventEmitter {
3195
3020
  [FLOWING] = false;
3196
3021
  [PAUSED] = false;
3197
3022
  [PIPES] = [];
@@ -3242,7 +3067,7 @@ var Minipass = class extends import_node_events.EventEmitter {
3242
3067
  this[ENCODING] = null;
3243
3068
  }
3244
3069
  this[ASYNC] = !!options.async;
3245
- this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
3070
+ this[DECODER] = this[ENCODING] ? new StringDecoder(this[ENCODING]) : null;
3246
3071
  if (options && options.debugExposeBuffer === true) {
3247
3072
  Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
3248
3073
  }
@@ -3987,18 +3812,18 @@ var Minipass = class extends import_node_events.EventEmitter {
3987
3812
  };
3988
3813
 
3989
3814
  // node_modules/path-scurry/dist/esm/index.js
3990
- var realpathSync = import_fs.realpathSync.native;
3815
+ var realpathSync = rps.native;
3991
3816
  var defaultFS = {
3992
- lstatSync: import_fs.lstatSync,
3993
- readdir: import_fs.readdir,
3994
- readdirSync: import_fs.readdirSync,
3995
- readlinkSync: import_fs.readlinkSync,
3817
+ lstatSync,
3818
+ readdir: readdirCB,
3819
+ readdirSync,
3820
+ readlinkSync,
3996
3821
  realpathSync,
3997
3822
  promises: {
3998
- lstat: import_promises.lstat,
3999
- readdir: import_promises.readdir,
4000
- readlink: import_promises.readlink,
4001
- realpath: import_promises.realpath
3823
+ lstat,
3824
+ readdir,
3825
+ readlink,
3826
+ realpath
4002
3827
  }
4003
3828
  };
4004
3829
  var fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ? defaultFS : {
@@ -5007,7 +4832,7 @@ var PathWin32 = class _PathWin32 extends PathBase {
5007
4832
  * @internal
5008
4833
  */
5009
4834
  getRootString(path3) {
5010
- return import_node_path.win32.parse(path3).root;
4835
+ return win32.parse(path3).root;
5011
4836
  }
5012
4837
  /**
5013
4838
  * @internal
@@ -5106,7 +4931,7 @@ var PathScurryBase = class {
5106
4931
  constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs3 = defaultFS } = {}) {
5107
4932
  this.#fs = fsFromOption(fs3);
5108
4933
  if (cwd instanceof URL || cwd.startsWith("file://")) {
5109
- cwd = (0, import_node_url.fileURLToPath)(cwd);
4934
+ cwd = fileURLToPath(cwd);
5110
4935
  }
5111
4936
  const cwdPath = pathImpl.resolve(cwd);
5112
4937
  this.roots = /* @__PURE__ */ Object.create(null);
@@ -5647,7 +5472,7 @@ var PathScurryWin32 = class extends PathScurryBase {
5647
5472
  sep = "\\";
5648
5473
  constructor(cwd = process.cwd(), opts = {}) {
5649
5474
  const { nocase = true } = opts;
5650
- super(cwd, import_node_path.win32, "\\", { ...opts, nocase });
5475
+ super(cwd, win32, "\\", { ...opts, nocase });
5651
5476
  this.nocase = nocase;
5652
5477
  for (let p = this.cwd; p; p = p.parent) {
5653
5478
  p.nocase = this.nocase;
@@ -5657,7 +5482,7 @@ var PathScurryWin32 = class extends PathScurryBase {
5657
5482
  * @internal
5658
5483
  */
5659
5484
  parseRootPath(dir) {
5660
- return import_node_path.win32.parse(dir).root.toUpperCase();
5485
+ return win32.parse(dir).root.toUpperCase();
5661
5486
  }
5662
5487
  /**
5663
5488
  * @internal
@@ -5679,7 +5504,7 @@ var PathScurryPosix = class extends PathScurryBase {
5679
5504
  sep = "/";
5680
5505
  constructor(cwd = process.cwd(), opts = {}) {
5681
5506
  const { nocase = false } = opts;
5682
- super(cwd, import_node_path.posix, "/", { ...opts, nocase });
5507
+ super(cwd, posix, "/", { ...opts, nocase });
5683
5508
  this.nocase = nocase;
5684
5509
  }
5685
5510
  /**
@@ -5711,7 +5536,6 @@ var Path = process.platform === "win32" ? PathWin32 : PathPosix;
5711
5536
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
5712
5537
 
5713
5538
  // node_modules/glob/dist/esm/pattern.js
5714
- init_cjs_shims();
5715
5539
  var isPatternList = (pl) => pl.length >= 1;
5716
5540
  var isGlobList = (gl) => gl.length >= 1;
5717
5541
  var Pattern = class _Pattern {
@@ -5876,11 +5700,7 @@ var Pattern = class _Pattern {
5876
5700
  }
5877
5701
  };
5878
5702
 
5879
- // node_modules/glob/dist/esm/walker.js
5880
- init_cjs_shims();
5881
-
5882
5703
  // node_modules/glob/dist/esm/ignore.js
5883
- init_cjs_shims();
5884
5704
  var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
5885
5705
  var Ignore = class {
5886
5706
  relative;
@@ -5968,7 +5788,6 @@ var Ignore = class {
5968
5788
  };
5969
5789
 
5970
5790
  // node_modules/glob/dist/esm/processor.js
5971
- init_cjs_shims();
5972
5791
  var HasWalkedCache = class _HasWalkedCache {
5973
5792
  store;
5974
5793
  constructor(store = /* @__PURE__ */ new Map()) {
@@ -6577,7 +6396,7 @@ var Glob = class {
6577
6396
  if (!opts.cwd) {
6578
6397
  this.cwd = "";
6579
6398
  } else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
6580
- opts.cwd = (0, import_node_url2.fileURLToPath)(opts.cwd);
6399
+ opts.cwd = fileURLToPath2(opts.cwd);
6581
6400
  }
6582
6401
  this.cwd = opts.cwd || "";
6583
6402
  this.root = opts.root;
@@ -6717,7 +6536,6 @@ var Glob = class {
6717
6536
  };
6718
6537
 
6719
6538
  // node_modules/glob/dist/esm/has-magic.js
6720
- init_cjs_shims();
6721
6539
  var hasMagic = (pattern, options = {}) => {
6722
6540
  if (!Array.isArray(pattern)) {
6723
6541
  pattern = [pattern];
@@ -6794,11 +6612,11 @@ async function findInputFiles(inputPath) {
6794
6612
  }
6795
6613
  }
6796
6614
  try {
6797
- const stat = await import_promises2.default.stat(inputPath);
6615
+ const stat = await fs.stat(inputPath);
6798
6616
  if (stat.isFile()) {
6799
6617
  return [inputPath];
6800
6618
  } else if (stat.isDirectory()) {
6801
- const pattern = import_path.default.join(inputPath, "*.{yaml,yml}");
6619
+ const pattern = path2.join(inputPath, "*.{yaml,yml}");
6802
6620
  try {
6803
6621
  const yamlFiles = await glob(pattern);
6804
6622
  if (yamlFiles.length === 0) {
@@ -6827,8 +6645,8 @@ async function loadResumeFiles(inputPath) {
6827
6645
  const yamlContents = [];
6828
6646
  for (const file of files) {
6829
6647
  try {
6830
- const content = await import_promises3.default.readFile(file, "utf-8");
6831
- const parsed = import_yaml2.default.parse(content);
6648
+ const content = await fs2.readFile(file, "utf-8");
6649
+ const parsed = YAML.parse(content);
6832
6650
  if (parsed && typeof parsed === "object") {
6833
6651
  yamlContents.push(content);
6834
6652
  }
@@ -6842,15 +6660,7 @@ async function loadResumeFiles(inputPath) {
6842
6660
  return { files, yamlContents };
6843
6661
  }
6844
6662
 
6845
- // src/api.ts
6846
- init_themeLoader();
6847
- async function loadTheme2(themeName) {
6848
- return (await Promise.resolve().then(() => (init_themeLoader(), themeLoader_exports))).loadTheme(themeName, { autoInstall: false });
6849
- }
6850
- // Annotate the CommonJS export names for ESM import in node:
6851
- 0 && (module.exports = {
6852
- loadResumeFiles,
6853
- loadTheme,
6854
- processResumeData
6855
- });
6856
- //# sourceMappingURL=api.cjs.map
6663
+ export {
6664
+ loadResumeFiles
6665
+ };
6666
+ //# sourceMappingURL=chunk-4ZOTZUAW.js.map