Skip to content

Commit

Permalink
update package.json (more explicit on ESM/CJS exports & typings)
Browse files Browse the repository at this point in the history
  • Loading branch information
kefniark committed May 17, 2023
1 parent e8aa38f commit 5db2aed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
28 changes: 18 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,34 @@
"name": "tinyld",
"description": "Simple and Performant Language detection library (pure JS and zero dependencies)",
"version": "1.3.3",
"main": "./dist/tinyld.normal.node.js",
"license": "MIT",
"exports": {
".": {
"require": "./dist/tinyld.normal.node.js",
"import": "./dist/tinyld.normal.node.mjs",
"browser": "./dist/tinyld.normal.browser.js"
},
"./light": {
"require": "./dist/tinyld.light.node.js",
"import": "./dist/tinyld.light.node.mjs",
"browser": "./dist/tinyld.light.browser.js"
"browser": "./dist/tinyld.light.browser.js",
"types": "./dist/tinyld.light.node.d.ts"
},
"./heavy": {
"require": "./dist/tinyld.heavy.node.js",
"import": "./dist/tinyld.heavy.node.mjs",
"browser": "./dist/tinyld.heavy.browser.js"
"browser": "./dist/tinyld.heavy.browser.js",
"types": "./dist/tinyld.heavy.node.d.ts"
},
".": {
"require": "./dist/tinyld.normal.node.js",
"import": "./dist/tinyld.normal.node.mjs",
"browser": "./dist/tinyld.normal.browser.js",
"types": "./dist/tinyld.normal.node.d.ts"
}
},
"typesVersions": {
"*": {
"light": ["./dist/tinyld.light.node.d.ts"],
"heavy": ["./dist/tinyld.heavy.node.d.ts"],
"*": ["./dist/tinyld.normal.node.d.ts"]
}
},
"license": "MIT",
"types": "./dist/tinyld.normal.node.d.ts",
"bin": {
"tinyld": "./bin/tinyld.js",
"tinyld-light": "./bin/tinyld-light.js",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@
integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==

"@types/node@^18.0.0":
version "18.14.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.0.tgz#94c47b9217bbac49d4a67a967fdcdeed89ebb7d0"
integrity sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==
version "18.16.12"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.12.tgz#f11e19055c5b3daeb79dc6eb7ccdd3d036313034"
integrity sha512-tIRrjbY9C277MOfP8M3zjMIhtMlUJ6YVqkGgLjz+74jVsdf4/UjC6Hku4+1N0BS0qyC0JAS6tJLUk9H6JUKviQ==

"@typescript-eslint/eslint-plugin@^4.28.5":
version "4.33.0"
Expand Down Expand Up @@ -1839,9 +1839,9 @@ prelude-ls@~1.1.2:
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=

prettier@^2.3.2:
version "2.8.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.4.tgz#34dd2595629bfbb79d344ac4a91ff948694463c3"
integrity sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

process-nextick-args@~2.0.0:
version "2.0.1"
Expand Down

0 comments on commit 5db2aed

Please sign in to comment.