es-toolkit/package.json
Jonghyeon Ko 848f2c66ff
fix(package.json): Provide correct types for moduleResolution: node, node10, and node16 (#16)
* fix: remove unnecessary exports overriding

* Revert "fix: remove unnecessary exports overriding"

This reverts commit f8534a14c1.

* chore(package.json): add types field in publishConfig.exports

* build: Support moduleResolution: node10 and node16 (nodenext)

* build: Support moduleResolution: node10 and node16 (nodenext)

* build: Support moduleResolution: node10 and node16 (nodenext)

* fix delay

* Update .gitignore

Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>

* Update .scripts/postbuild.sh

Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>

---------

Co-authored-by: raon0211 <raon0211@toss.im>
2024-06-03 22:30:32 +09:00

98 lines
3.0 KiB
JSON

{
"name": "es-toolkit",
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
"version": "1.0.2",
"workspaces": [
"docs"
],
"packageManager": "yarn@4.2.2",
"exports": {
".": "./src/index.ts",
"./array": "./src/array/index.ts",
"./function": "./src/function/index.ts",
"./math": "./src/math/index.ts",
"./object": "./src/object/index.ts",
"./predicate": "./src/predicate/index.ts",
"./promise": "./src/promise/index.ts",
"./package.json": "./package.json"
},
"files": [
"dist/**/*",
"esm/**/*",
"*.d.ts"
],
"publishConfig": {
"access": "public",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./esm/index.mjs",
"require": "./dist/index.js"
},
"./array": {
"types": "./dist/array/index.d.ts",
"import": "./esm/array/index.mjs",
"require": "./dist/array/index.js"
},
"./function": {
"types": "./dist/function/index.d.ts",
"import": "./esm/function/index.mjs",
"require": "./dist/function/index.js"
},
"./math": {
"types": "./dist/math/index.d.ts",
"import": "./esm/math/index.mjs",
"require": "./dist/math/index.js"
},
"./object": {
"types": "./dist/object/index.d.ts",
"import": "./esm/object/index.mjs",
"require": "./dist/object/index.js"
},
"./predicate": {
"types": "./dist/predicate/index.d.ts",
"import": "./esm/predicate/index.mjs",
"require": "./dist/predicate/index.js"
},
"./promise": {
"types": "./dist/promise/index.d.ts",
"import": "./esm/promise/index.mjs",
"require": "./dist/promise/index.js"
},
"./package.json": "./package.json"
}
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/preset-typescript": "^7.24.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@toss/rollup-config": "0.2.0-canary.0",
"@types/babel__core": "^7",
"@types/babel__preset-env": "^7",
"@types/broken-link-checker": "^0",
"@types/lodash": "^4",
"@types/node": "^20.12.11",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-istanbul": "^1.5.2",
"broken-link-checker": "^0.7.8",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.5.0",
"lodash": "^4.17.21",
"prettier": "^3.2.5",
"rollup": "^2.78.0",
"typescript": "^5.4.5",
"vitest": "^1.5.2"
},
"sideEffects": false,
"scripts": {
"prepack": "yarn build",
"build": "rm -rf dist esm && tsc -p tsconfig.json --declaration --emitDeclarationOnly --declarationDir dist && rollup -c rollup.config.js && ./.scripts/postbuild.sh",
"test": "vitest run --coverage --typecheck"
}
}