mirror of
https://git.ddmt.top/ddmt/ddmt-tool.git
synced 2026-03-23 05:17:06 +00:00
feat(module): Improve module exports and compatibility
- Add explicit ES Module and CommonJS exports in index.js - Update package.json to support both import and require - Ensure consistent function exports across module systems
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
"description": "A utility library that provides commonly used functions to simplify everyday development tasks. Whether it's string manipulation, array operations, or other frequent functionalities, `ddmt-tool` helps you work more efficiently.",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./index.js",
|
||||
"require": "./index.js"
|
||||
}
|
||||
},
|
||||
"types": "types/index.d.ts",
|
||||
"scripts": {
|
||||
"dev": "node index.js"
|
||||
|
||||
Reference in New Issue
Block a user