diff --git a/package.json b/package.json index e1266af..1962b29 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,30 @@ { "name": "@navy.gif/wrappers", - "version": "1.0.0", + "version": "1.1.0", "description": "Various wrapper classes I use in my projects", - "main": "index.js", "repository": "https://git.corgi.wtf/Navy.gif/wrappers.git", "author": "Navy.gif", "license": "MIT", "private": false, "type": "module", + "main": "build/cjs/index.js", + "module": "build/esm/index.js", + "types": "./build/esm/index.d.ts", + "exports": { + ".": { + "import": "./build/esm/index.js", + "require": "./build/cjs/index.js", + "default": "./build/cjs/index.js", + "types": "./build/esm/index.d.ts" + } + }, "files": [ - "build" + "build/**/*" ], "scripts": { - "build": "tsc", - "test": "tsc && jest", - "release": "tsc && yarn publish", + "build": "tsc && tsc -p tsconfig.cjs.json && node ./scripts/declareTypes.js", + "test": "yarn build && jest", + "release": "yarn build && yarn publish", "lint": "eslint --fix" }, "devDependencies": {