@fre4x/docx 1.0.50 → 1.0.54

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 (2) hide show
  1. package/dist/index.js +10 -1
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -58954,6 +58954,14 @@ var paginationSchema = z2.object({
58954
58954
  offset: z2.number().int().min(0).default(0).describe("Number of results to skip for pagination (default 0)")
58955
58955
  });
58956
58956
 
58957
+ // ../packages/shared/dist/package.js
58958
+ import { createRequire as createJsonRequire } from "node:module";
58959
+ function getPackageVersion(moduleUrl) {
58960
+ const require2 = createJsonRequire(moduleUrl);
58961
+ const packageJson = require2("../package.json");
58962
+ return packageJson.version ?? "0.0.0";
58963
+ }
58964
+
58957
58965
  // src/api.ts
58958
58966
  import * as fs from "node:fs/promises";
58959
58967
  import { existsSync } from "node:fs";
@@ -77905,10 +77913,11 @@ var ReadDocumentSchema = external_exports3.object({
77905
77913
  });
77906
77914
 
77907
77915
  // src/index.ts
77916
+ var PACKAGE_VERSION = getPackageVersion(import.meta.url);
77908
77917
  var server = new Server(
77909
77918
  {
77910
77919
  name: "@fre4x/docx",
77911
- version: "1.0.0"
77920
+ version: PACKAGE_VERSION
77912
77921
  },
77913
77922
  {
77914
77923
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fre4x/docx",
3
- "version": "1.0.50",
3
+ "version": "1.0.54",
4
4
  "description": "DOCX Editor MCP server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "type": "module",
13
13
  "scripts": {
14
- "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && npx esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --banner:js=\"import{createRequire}from'module';const require=createRequire(import.meta.url);\" && node -e \"const fs=require('fs');const p='dist/index.js';const c=fs.readFileSync(p,'utf8');const next=c.startsWith('#!/usr/bin/env node')?c:'#!/usr/bin/env node\\n'+c;fs.writeFileSync(p,next);fs.chmodSync(p,0o755);\"",
14
+ "build": "node ../scripts/build-package.mjs",
15
15
  "dev": "tsx src/index.ts",
16
16
  "typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit",
17
17
  "prepublishOnly": "npm run typecheck && npm run build",
@@ -21,7 +21,6 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^25.3.5",
24
- "esbuild": "^0.27.3",
25
24
  "tsx": "^4.21.0",
26
25
  "typescript": "^5.9.3",
27
26
  "vitest": "^4.0.18"