2024-04-25 14:56:13 +03:00
|
|
|
{
|
|
|
|
"name": "es-toolkit",
|
|
|
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
2024-05-31 11:05:55 +03:00
|
|
|
"version": "1.0.2",
|
2024-04-25 14:56:13 +03:00
|
|
|
"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/**/*",
|
2024-06-03 16:30:32 +03:00
|
|
|
"esm/**/*",
|
|
|
|
"*.d.ts"
|
2024-04-25 14:56:13 +03:00
|
|
|
],
|
|
|
|
"publishConfig": {
|
|
|
|
"access": "public",
|
2024-06-03 16:30:32 +03:00
|
|
|
"main": "./dist/index.js",
|
|
|
|
"types": "./dist/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"exports": {
|
|
|
|
".": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/index.mjs",
|
|
|
|
"require": "./dist/index.js"
|
|
|
|
},
|
|
|
|
"./array": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/array/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/array/index.mjs",
|
|
|
|
"require": "./dist/array/index.js"
|
|
|
|
},
|
|
|
|
"./function": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/function/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/function/index.mjs",
|
|
|
|
"require": "./dist/function/index.js"
|
|
|
|
},
|
|
|
|
"./math": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/math/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/math/index.mjs",
|
|
|
|
"require": "./dist/math/index.js"
|
|
|
|
},
|
|
|
|
"./object": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/object/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/object/index.mjs",
|
|
|
|
"require": "./dist/object/index.js"
|
|
|
|
},
|
|
|
|
"./predicate": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/predicate/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"import": "./esm/predicate/index.mjs",
|
|
|
|
"require": "./dist/predicate/index.js"
|
|
|
|
},
|
|
|
|
"./promise": {
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/promise/index.d.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"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",
|
2024-06-03 16:30:32 +03:00
|
|
|
"build": "rm -rf dist esm && tsc -p tsconfig.json --declaration --emitDeclarationOnly --declarationDir dist && rollup -c rollup.config.js && ./.scripts/postbuild.sh",
|
2024-04-25 14:56:13 +03:00
|
|
|
"test": "vitest run --coverage --typecheck"
|
|
|
|
}
|
|
|
|
}
|