adjust how types are exposed

This commit is contained in:
Conduitry 2021-10-04 10:10:42 -04:00
parent deb7a32cf0
commit 0165f71750
3 changed files with 6 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
/dist/
/dist/*
!/dist/*.d.ts
/node_modules/
/package-lock.json
/pnpm-lock.yaml

View File

View File

@ -11,17 +11,17 @@
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "types/index.d.ts",
"types": "./dist/index.d.ts",
"files": [
"*.md",
"dist",
"types"
"dist"
],
"engines": {
"node": "^12.17 || >=13.10"