From e1bd29a82ada85e8419d394f21d9758eb1ce7c45 Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Mon, 12 Jan 2026 19:01:23 +0530 Subject: [PATCH 1/2] fix: update esm export path to include .js extension --- test/esm-exports.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/esm-exports.spec.ts b/test/esm-exports.spec.ts index fe70c69..40e7313 100644 --- a/test/esm-exports.spec.ts +++ b/test/esm-exports.spec.ts @@ -28,7 +28,7 @@ describe('ESM Exports Tests', () => { it('should re-export getData from ESM index.js', () => { const indexContent = fs.readFileSync(esmIndexPath, 'utf-8'); - expect(indexContent).toContain("export * from './lib/request'"); + expect(indexContent).toContain("export * from './lib/request.js'"); }); it('should verify getData is a named export in ESM build', () => { From d804978caf945ea6c7ec900c855a7fd55790de65 Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Mon, 12 Jan 2026 19:07:04 +0530 Subject: [PATCH 2/2] fix: update readme --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 34dc0f4..8ef1194 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Contentstack is a headless CMS with an API-first approach. It is a CMS that deve ## Description -This package contains core modules and utilities used by the [Contentstack TypeScript Delivery SDK](https://github.com/contentstack/contentstack-javascript/). It provides essential functionality including HTTP client configuration, error handling, request management, parameter serialization, and retry policies. +This package contains core modules and utilities used by the [Contentstack TypeScript Delivery SDK](https://github.com/contentstack/contentstack-typescript/). It provides essential functionality including HTTP client configuration, error handling, request management, parameter serialization, and retry policies. ## Features @@ -39,8 +39,6 @@ Then import the modules: ```typescript import { httpClient, - ContentstackError, - ApiError, // ... other exports } from '@contentstack/core'; ``` @@ -72,6 +70,7 @@ npm run build Build specific formats: ```bash +npm run build # Build all npm run build:cjs # CommonJS npm run build:esm # ES Modules npm run build:umd # UMD