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-10-16 04:07:41 +03:00
|
|
|
"version": "1.25.2",
|
2024-07-03 03:13:16 +03:00
|
|
|
"homepage": "https://es-toolkit.slash.page",
|
|
|
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/toss/es-toolkit.git"
|
|
|
|
},
|
|
|
|
"license": "MIT",
|
2024-04-25 14:56:13 +03:00
|
|
|
"workspaces": [
|
2024-07-15 04:20:33 +03:00
|
|
|
"docs",
|
|
|
|
"benchmarks"
|
2024-04-25 14:56:13 +03:00
|
|
|
],
|
|
|
|
"packageManager": "yarn@4.2.2",
|
|
|
|
"exports": {
|
|
|
|
".": "./src/index.ts",
|
|
|
|
"./array": "./src/array/index.ts",
|
2024-07-14 17:55:52 +03:00
|
|
|
"./compat": "./src/compat/index.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"./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",
|
2024-07-11 03:14:09 +03:00
|
|
|
"./string": "./src/string/index.ts",
|
2024-04-25 14:56:13 +03:00
|
|
|
"./package.json": "./package.json"
|
|
|
|
},
|
|
|
|
"files": [
|
2024-06-04 03:56:07 +03:00
|
|
|
"dist",
|
2024-06-03 16:30:32 +03:00
|
|
|
"*.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",
|
2024-06-04 03:56:07 +03:00
|
|
|
"module": "./dist/index.mjs",
|
2024-06-03 16:30:32 +03:00
|
|
|
"types": "./dist/index.d.ts",
|
2024-07-25 04:05:14 +03:00
|
|
|
"browser": "./dist/browser.global.js",
|
2024-04-25 14:56:13 +03:00
|
|
|
"exports": {
|
|
|
|
".": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/index.d.mts",
|
|
|
|
"default": "./dist/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"default": "./dist/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./array": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/array/index.d.mts",
|
|
|
|
"default": "./dist/array/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/array/index.d.ts",
|
|
|
|
"default": "./dist/array/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./function": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/function/index.d.mts",
|
|
|
|
"default": "./dist/function/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/function/index.d.ts",
|
|
|
|
"default": "./dist/function/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./math": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/math/index.d.mts",
|
|
|
|
"default": "./dist/math/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/math/index.d.ts",
|
|
|
|
"default": "./dist/math/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./object": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/object/index.d.mts",
|
|
|
|
"default": "./dist/object/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/object/index.d.ts",
|
|
|
|
"default": "./dist/object/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./predicate": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/predicate/index.d.mts",
|
|
|
|
"default": "./dist/predicate/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/predicate/index.d.ts",
|
|
|
|
"default": "./dist/predicate/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
|
|
|
"./promise": {
|
2024-06-04 03:56:07 +03:00
|
|
|
"import": {
|
|
|
|
"types": "./dist/promise/index.d.mts",
|
|
|
|
"default": "./dist/promise/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/promise/index.d.ts",
|
|
|
|
"default": "./dist/promise/index.js"
|
|
|
|
}
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
2024-07-11 03:14:09 +03:00
|
|
|
"./string": {
|
|
|
|
"import": {
|
|
|
|
"types": "./dist/string/index.d.mts",
|
|
|
|
"default": "./dist/string/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/string/index.d.ts",
|
|
|
|
"default": "./dist/string/index.js"
|
|
|
|
}
|
|
|
|
},
|
2024-07-18 18:02:18 +03:00
|
|
|
"./compat": {
|
|
|
|
"import": {
|
|
|
|
"types": "./dist/compat/index.d.mts",
|
|
|
|
"default": "./dist/compat/index.mjs"
|
|
|
|
},
|
|
|
|
"require": {
|
|
|
|
"types": "./dist/compat/index.d.ts",
|
|
|
|
"default": "./dist/compat/index.js"
|
|
|
|
}
|
|
|
|
},
|
2024-04-25 14:56:13 +03:00
|
|
|
"./package.json": "./package.json"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-07-23 17:03:27 +03:00
|
|
|
"@arethetypeswrong/cli": "^0.15.3",
|
2024-04-25 14:56:13 +03:00
|
|
|
"@changesets/changelog-github": "^0.5.0",
|
|
|
|
"@changesets/cli": "^2.27.1",
|
2024-08-20 15:55:39 +03:00
|
|
|
"@eslint/js": "^9.9.0",
|
2024-07-24 18:37:53 +03:00
|
|
|
"@rollup/plugin-terser": "^0.4.4",
|
2024-10-04 04:21:28 +03:00
|
|
|
"@rollup/plugin-typescript": "^12.1.0",
|
2024-10-01 08:00:45 +03:00
|
|
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
2024-04-25 14:56:13 +03:00
|
|
|
"@types/broken-link-checker": "^0",
|
2024-08-20 15:55:39 +03:00
|
|
|
"@types/eslint": "^9",
|
2024-10-04 04:21:28 +03:00
|
|
|
"@types/jscodeshift": "^0.12.0",
|
|
|
|
"@types/node": "^22.7.4",
|
2024-07-24 18:15:16 +03:00
|
|
|
"@types/tar": "^6.1.13",
|
2024-10-03 16:01:40 +03:00
|
|
|
"@vitest/coverage-istanbul": "^2.1.2",
|
2024-10-01 08:00:45 +03:00
|
|
|
"@vue/compiler-sfc": "^3.5.10",
|
2024-04-25 14:56:13 +03:00
|
|
|
"broken-link-checker": "^0.7.8",
|
2024-08-20 15:55:39 +03:00
|
|
|
"eslint": "^9.9.0",
|
|
|
|
"eslint-config-prettier": "^9.1.0",
|
|
|
|
"eslint-plugin-jsdoc": "^50.2.2",
|
2024-09-24 04:35:28 +03:00
|
|
|
"eslint-plugin-no-for-of-array": "^0.0.1",
|
2024-10-01 08:00:45 +03:00
|
|
|
"eslint-plugin-prettier": "^5.2.1",
|
2024-09-07 17:36:54 +03:00
|
|
|
"eslint-plugin-vue": "^9.28.0",
|
2024-07-24 18:15:16 +03:00
|
|
|
"execa": "^9.3.0",
|
2024-08-20 15:55:39 +03:00
|
|
|
"globals": "^15.9.0",
|
2024-09-12 15:31:29 +03:00
|
|
|
"jscodeshift": "^17.0.0",
|
2024-04-25 14:56:13 +03:00
|
|
|
"prettier": "^3.2.5",
|
2024-10-06 14:57:02 +03:00
|
|
|
"prettier-plugin-sort-re-exports": "^0.1.0",
|
2024-07-24 18:37:53 +03:00
|
|
|
"rollup": "^4.19.0",
|
|
|
|
"rollup-plugin-dts": "^6.1.1",
|
2024-07-24 18:15:16 +03:00
|
|
|
"tar": "^6",
|
2024-07-24 18:37:53 +03:00
|
|
|
"tslib": "^2.6.3",
|
2024-09-08 11:02:19 +03:00
|
|
|
"tsx": "^4.19.0",
|
2024-04-25 14:56:13 +03:00
|
|
|
"typescript": "^5.4.5",
|
2024-08-20 15:55:39 +03:00
|
|
|
"typescript-eslint": "^8.1.0",
|
2024-10-03 16:01:40 +03:00
|
|
|
"vitest": "^2.1.2"
|
2024-04-25 14:56:13 +03:00
|
|
|
},
|
2024-10-01 08:00:45 +03:00
|
|
|
"dependenciesMeta": {
|
|
|
|
"@trivago/prettier-plugin-sort-imports@4.3.0": {
|
|
|
|
"unplugged": true
|
2024-10-06 11:04:48 +03:00
|
|
|
},
|
|
|
|
"prettier-plugin-sort-re-exports@0.0.1": {
|
|
|
|
"unplugged": true
|
2024-10-01 08:00:45 +03:00
|
|
|
}
|
|
|
|
},
|
2024-04-25 14:56:13 +03:00
|
|
|
"sideEffects": false,
|
|
|
|
"scripts": {
|
|
|
|
"prepack": "yarn build",
|
2024-07-24 18:37:53 +03:00
|
|
|
"build": "rollup -c rollup.config.mjs && ./.scripts/postbuild.sh",
|
2024-09-28 15:40:09 +03:00
|
|
|
"test": "vitest --coverage --typecheck",
|
2024-06-18 04:40:07 +03:00
|
|
|
"bench": "vitest bench",
|
2024-08-20 15:55:39 +03:00
|
|
|
"lint": "eslint --config eslint.config.mjs",
|
2024-09-12 15:31:29 +03:00
|
|
|
"format": "prettier --write .",
|
|
|
|
"transform": "jscodeshift -t ./.scripts/tests/transform-lodash-test.ts $0 && prettier --write $0"
|
2024-04-25 14:56:13 +03:00
|
|
|
}
|
2024-10-14 18:11:55 +03:00
|
|
|
}
|