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 diff --git a/test/esm-exports.spec.ts b/test/esm-exports.spec.ts index da07797..908f393 100644 --- a/test/esm-exports.spec.ts +++ b/test/esm-exports.spec.ts @@ -29,7 +29,7 @@ describe('ESM Exports Tests', () => { it('should re-export getData from ESM index.js', () => { const indexContent = fs.readFileSync(esmIndexPath, 'utf-8'); // ESM builds include .js extension in import paths - expect(indexContent).toContain("export * from './lib/request.js'"); + expect(indexContent).toContain("export * from './lib/request.js.js'"); }); it('should verify getData is a named export in ESM build', () => {