frontmcp 0.1.4 → 0.1.5

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.
Files changed (3) hide show
  1. package/dist/cli.js +2 -14
  2. package/package.json +1 -1
  3. package/src/cli.ts +2 -13
package/dist/cli.js CHANGED
@@ -219,19 +219,7 @@ function sanitizeForNpm(name) {
219
219
  /* ------------------------ Self-version detection -------------------------- */
220
220
  function getSelfVersion() {
221
221
  return __awaiter(this, void 0, void 0, function* () {
222
- // Best-effort: find our own package.json near the executed bin.
223
- const binPath = process.argv[1] || __filename;
224
- const candidates = [
225
- path.resolve(path.dirname(binPath), '../package.json'),
226
- path.resolve(path.dirname(binPath), '../../package.json'),
227
- ];
228
- for (const p of candidates) {
229
- const j = yield readJSON(p);
230
- if (j === null || j === void 0 ? void 0 : j.version)
231
- return j.version;
232
- }
233
- // Fallback if not found; still satisfies the "has field" requirement.
234
- return '0.0.0';
222
+ return '0.1.5';
235
223
  });
236
224
  }
237
225
  /* --------------------------------- Actions -------------------------------- */
@@ -285,7 +273,7 @@ const RECOMMENDED_TSCONFIG = {
285
273
  module: REQUIRED_DECORATOR_FIELDS.module,
286
274
  emitDecoratorMetadata: REQUIRED_DECORATOR_FIELDS.emitDecoratorMetadata,
287
275
  experimentalDecorators: REQUIRED_DECORATOR_FIELDS.experimentalDecorators,
288
- moduleResolution: 'NodeNext',
276
+ moduleResolution: 'node',
289
277
  strict: true,
290
278
  esModuleInterop: true,
291
279
  resolveJsonModule: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontmcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "FrontMCP command line interface",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/cli.ts CHANGED
@@ -177,18 +177,7 @@ function sanitizeForNpm(name: string): string {
177
177
  /* ------------------------ Self-version detection -------------------------- */
178
178
 
179
179
  async function getSelfVersion(): Promise<string> {
180
- // Best-effort: find our own package.json near the executed bin.
181
- const binPath = process.argv[1] || __filename;
182
- const candidates = [
183
- path.resolve(path.dirname(binPath), '../package.json'),
184
- path.resolve(path.dirname(binPath), '../../package.json'),
185
- ];
186
- for (const p of candidates) {
187
- const j = await readJSON<any>(p);
188
- if (j?.version) return j.version;
189
- }
190
- // Fallback if not found; still satisfies the "has field" requirement.
191
- return '0.0.0';
180
+ return '0.1.5';
192
181
  }
193
182
 
194
183
  /* --------------------------------- Actions -------------------------------- */
@@ -250,7 +239,7 @@ const RECOMMENDED_TSCONFIG = {
250
239
  emitDecoratorMetadata: REQUIRED_DECORATOR_FIELDS.emitDecoratorMetadata,
251
240
  experimentalDecorators: REQUIRED_DECORATOR_FIELDS.experimentalDecorators,
252
241
 
253
- moduleResolution: 'NodeNext',
242
+ moduleResolution: 'node',
254
243
  strict: true,
255
244
  esModuleInterop: true,
256
245
  resolveJsonModule: true,