UNPKG

3.12 kBJSONView Raw
1{
2 "name": "typesafe-actions",
3 "version": "5.1.0",
4 "description": "Typesafe Action Creators for Redux / Flux Architectures (in TypeScript)",
5 "author": "Piotr Witek <piotrek.witek@gmail.com> (http://piotrwitek.github.io)",
6 "repository": "https://github.com/piotrwitek/typesafe-actions",
7 "homepage": "https://github.com/piotrwitek/typesafe-actions",
8 "license": "MIT",
9 "types": "dist/index.d.ts",
10 "main": "index.js",
11 "module": "dist/typesafe-actions.es.production.js",
12 "browser": "dist/typesafe-actions.umd.production.js",
13 "engines": {
14 "node": ">= 4"
15 },
16 "husky": {
17 "hooks": {
18 "pre-push": "npm run prettier:fix && npm run lint && npm run tsc && npm run test:update && npm run doctoc"
19 }
20 },
21 "scripts": {
22 "ci-check": "npm run prettier && npm run lint && npm run tsc && npm run test",
23 "reinstall": "rm -rf node_modules/ dist/ && npm install",
24 "prettier": "prettier --list-different 'src/**/*.ts' || (echo '\nPlease fix code formatting by running:\nnpm run prettier:fix\n'; exit 1)",
25 "prettier:fix": "prettier --write 'src/**/*.ts'",
26 "lint": "tslint --project './tsconfig.json'",
27 "tsc": "tsc -p ./tsconfig.build.json --noEmit",
28 "tsc:watch": "tsc -p ./tsconfig.build.json --noEmit -w",
29 "test": "jest --config jest.config.json && dts-jest-remap ./src/*.spec.ts --rename {{basename}}.snap.{{extname}} --check",
30 "test:update": "jest --config jest.config.json --no-cache -u && dts-jest-remap ./src/*.spec.ts --rename {{basename}}.snap.{{extname}}",
31 "test:watch": "jest --config jest.config.json --watch",
32 "doctoc": "doctoc --maxlevel=4 README.md",
33 "prebuild": "rm -rf dist/ .size-snapshot.json && tsc -p ./tsconfig.declaration.json",
34 "build": "tsc -p ./tsconfig.build.json && rollup -c",
35 "postbuild": "rm -rf out",
36 "prepublishOnly": "npm run reinstall && npm run ci-check && npm run build",
37 "benchmark:10": "node --max-old-space-size=8000 ./node_modules/.bin/tsc --diagnostics --outDir out benchmarks/10-actions.ts && rm -rf out",
38 "benchmark:150": "node --max-old-space-size=8000 ./node_modules/.bin/tsc --diagnostics --outDir out benchmarks/150-actions.ts && rm -rf out"
39 },
40 "devDependencies": {
41 "@babel/core": "7.6.4",
42 "@babel/preset-env": "7.6.3",
43 "@types/jest": "21.1.10",
44 "babel-plugin-annotate-pure-calls": "0.4.0",
45 "babel-plugin-dev-expression": "0.2.2",
46 "core-js": "3.3.6",
47 "doctoc": "1.4.0",
48 "dts-jest": "22.0.4",
49 "husky": "3.0.9",
50 "jest": "21.2.1",
51 "prettier": "1.18.2",
52 "rollup": "1.26.3",
53 "rollup-plugin-babel": "4.3.3",
54 "rollup-plugin-commonjs": "10.1.0",
55 "rollup-plugin-json": "4.0.0",
56 "rollup-plugin-node-resolve": "5.2.0",
57 "rollup-plugin-replace": "2.2.0",
58 "rollup-plugin-size-snapshot": "0.10.0",
59 "rollup-plugin-sourcemaps": "0.4.2",
60 "rollup-plugin-terser": "5.1.2",
61 "ts-jest": "22.4.6",
62 "tslint": "5.20.0",
63 "typescript": "3.8.0-dev.20191026"
64 },
65 "keywords": [
66 "typescript",
67 "typesafe",
68 "actions",
69 "action-creator",
70 "redux",
71 "flux",
72 "redux-actions",
73 "static-typing"
74 ]
75}