adjust how types are exposed

master
Conduitry 1 year ago
parent deb7a32cf0
commit 0165f71750
  1. 3
      .gitignore
  2. 0
      dist/index.d.ts
  3. 8
      package.json

3
.gitignore vendored

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

@ -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"

Loading…
Cancel
Save