forked from unadlib/mutative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
156 lines (156 loc) · 5.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "mutative",
"version": "1.0.0",
"description": "A JavaScript library for efficient immutable updates",
"main": "dist/index.js",
"module": "dist/mutative.esm.js",
"umd:main": "dist/mutative.umd.production.min.js",
"unpkg": "dist/mutative.umd.production.min.js",
"jsdelivr": "dist/mutative.umd.production.min.js",
"jsnext:main": "dist/mutative.esm.js",
"react-native": "dist/mutative.esm.js",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/mutative.esm.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": [
"dist",
"src"
],
"scripts": {
"test": "jest",
"clean": "rimraf dist",
"test:coverage": "jest --coverage && coveralls < coverage/lcov.info",
"perf": "cd test/performance && NODE_ENV='production' ts-node add-data.ts && NODE_ENV='production' ts-node todo.ts && NODE_ENV='production' ts-node incremental.ts",
"benchmark": "yarn build && yarn benchmark:base && yarn benchmark:object && yarn benchmark:array",
"benchmark:base": "NODE_ENV='production' ts-node test/performance/benchmark.ts",
"benchmark:object": "NODE_ENV='production' ts-node test/performance/benchmark-object.ts",
"benchmark:array": "NODE_ENV='production' ts-node test/performance/benchmark-array.ts",
"performance:basic": "cd test/performance && NODE_ENV='production' ts-node index.ts",
"performance:set-map": "cd test/performance && NODE_ENV='production' ts-node set-map.ts",
"performance:big-object": "cd test/performance && NODE_ENV='production' ts-node big-object.ts",
"performance:sample": "cd test/performance && NODE_ENV='production' ts-node sample.ts",
"performance:array-object": "cd test/performance && NODE_ENV='production' ts-node array-object.ts",
"performance": "yarn build && yarn perf && yarn performance:basic && yarn performance:set-map && yarn performance:big-object && yarn performance:sample && yarn performance:array-object",
"build": "yarn clean && rollup --config --bundleConfigAsCjs",
"build:doc": "rimraf docs && typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts --readme none",
"commit": "yarn git-cz",
"size": "size-limit",
"analyze": "size-limit --why",
"prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"publish:docs": "yarn clean && cd website && GIT_USER=unadlib USE_SSH=true yarn run deploy",
"start:docs": "cd website && yarn run start"
},
"size-limit": [
{
"path": "dist/mutative.cjs.production.min.js",
"limit": "5 KB"
},
{
"path": "dist/mutative.esm.js",
"limit": "5 KB"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/unadlib/mutative.git"
},
"author": "unadlib",
"keywords": [
"mutative",
"immutable",
"mutable",
"immutability",
"mutation"
],
"license": "MIT",
"engines": {
"node": ">=14.0"
},
"bugs": {
"url": "https://github.com/unadlib/mutative/issues"
},
"homepage": "https://mutative.js.org/",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@size-limit/esbuild": "^8.2.6",
"@size-limit/esbuild-why": "^8.2.6",
"@size-limit/preset-small-lib": "^8.1.0",
"@size-limit/webpack": "^8.1.0",
"@size-limit/webpack-why": "^8.1.0",
"@types/jest": "^29.4.0",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"benchmark": "^2.1.4",
"commitizen": "^4.3.0",
"coveralls": "^3.1.1",
"deep-freeze": "^0.0.1",
"eslint": "^8.11.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.32.1",
"fast-json-patch": "^3.1.1",
"immer": "^10.0.3",
"immutable": "^4.0.0",
"jest": "^29.4.0",
"jsdoc-tests": "^1.1.0",
"json2csv": "^5.0.7",
"lodash": "^4.17.21",
"prettier": "^2.8.7",
"quickchart-js": "^3.1.2",
"redux": "^4.2.0",
"rimraf": "^3.0.2",
"rollup": "^4.9.0",
"rollup-plugin-terser": "^7.0.0",
"seamless-immutable": "^7.1.4",
"size-limit": "^8.1.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typedoc": "^0.24.4",
"typedoc-plugin-markdown": "^3.15.1",
"typescript": "^5.3.2",
"yargs": "^17.3.1"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"jest": {
"preset": "ts-jest",
"coveragePathIgnorePatterns": [
"<rootDir>/test/"
],
"transform": {
"\\.[jt]sx?$": [
"ts-jest",
{
"tsconfig": {
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
"noUnusedLocals": false,
"noUnusedParameters": false
}
}
]
},
"globals": {
"__DEV__": true
}
}
}