Skip to content

Conversation

@meabed
Copy link
Contributor

@meabed meabed commented Sep 5, 2025

Summary

  • Added comprehensive exports field to package.json for better module resolution
  • Enhanced support for subpath imports allowing cleaner module access
  • Fixed main and types paths to correctly point to dist directory

Changes

  • Enhanced package.json exports field: Added subpath exports for /api, /configuration, /base, and /common
  • TypeScript support: Proper types exports for all subpaths
  • Optimized package size: Added files field to include only necessary files in npm package
  • Documentation: Updated CHANGELOG.md with all changes

Benefits

Users can now import the SDK modules in multiple ways:

// Main import
import { DevMeClient } from '@devmehq/sdk-js';

// Specific subpath imports
import { Configuration } from '@devmehq/sdk-js/configuration';
import { BaseAPI } from '@devmehq/sdk-js/base';

Test plan

  • Build the project successfully
  • Verify exports work with CommonJS require
  • Verify exports work with ES modules import
  • TypeScript types resolve correctly for all subpaths

dependabot bot and others added 6 commits April 26, 2023 08:58
## [1.1.3](v1.1.2...v1.1.3) (2023-04-26)

### Bug Fixes

* **deps:** update all non-major dependencies ([cfb88ed](cfb88ed))
* **deps:** update all non-major dependencies ([b3c98db](b3c98db))
* **deps:** update all non-major dependencies ([f36dc40](f36dc40))
* **deps:** update dependency axios to v0.26.1 ([cd14c5d](cd14c5d))
* **deps:** update dependency axios to v1 ([186c2a9](186c2a9))
* **deps:** update dependency axios to v1.1.0 ([6beceda](6beceda))
* **deps:** update dependency axios to v1.1.2 ([8f19647](8f19647))
* **deps:** update dependency axios to v1.1.3 ([c17860d](c17860d))
* **deps:** update dependency axios to v1.2.0 ([27ec760](27ec760))
* **deps:** update dependency axios to v1.2.1 ([650ce03](650ce03))
* **deps:** update dependency axios to v1.2.2 ([92bc437](92bc437))
* **deps:** update dependency axios to v1.2.3 ([dec0537](dec0537))
- Add comprehensive exports field to package.json with subpath exports
- Update CHANGELOG.md with new export enhancements
- Fix main and types paths to point to dist directory
- Enable cleaner imports like @devmehq/sdk-js/api and @devmehq/sdk-js/configuration
- Add files field to optimize npm package size
@meabed meabed merged commit 6449bbb into develop Sep 5, 2025
1 check failed
@github-actions
Copy link

github-actions bot commented Sep 5, 2025

🎉 This PR is included in version 1.2.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants