@contentful/mcp-tools 0.4.0 → 0.4.1

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 +4 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4333,8 +4333,6 @@ function createTaxonomyTools(config) {
4333
4333
 
4334
4334
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4335
4335
  import { z as z72 } from "zod";
4336
- import * as contentfulExportModule from "contentful-export";
4337
- import { join } from "path";
4338
4336
 
4339
4337
  // src/types/querySchema.ts
4340
4338
  import { z as z71 } from "zod";
@@ -4356,7 +4354,6 @@ var AssetQuerySchema = z71.object({
4356
4354
  });
4357
4355
 
4358
4356
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4359
- var contentfulExport = contentfulExportModule.default ?? contentfulExportModule;
4360
4357
  var ExportSpaceToolParams = BaseToolSchema.extend({
4361
4358
  exportDir: z72.string().optional().describe(
4362
4359
  "Directory to save the exported space data (optional, defaults to current directory)"
@@ -4406,8 +4403,10 @@ function createExportSpaceTool(config) {
4406
4403
  contentFile: args.contentFile || `contentful-export-${args.spaceId}.json`
4407
4404
  };
4408
4405
  try {
4409
- const result = await contentfulExport(exportOptions);
4410
- const exportPath = join(
4406
+ const contentfulExport = await import("contentful-export");
4407
+ const path = await import("path");
4408
+ const result = await contentfulExport.default(exportOptions);
4409
+ const exportPath = path.join(
4411
4410
  exportOptions.exportDir,
4412
4411
  exportOptions.contentFile
4413
4412
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/mcp-tools",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",