|
1 | 1 | { |
2 | 2 | "name": "runtime-memcache", |
3 | | - "version": "1.3.1", |
| 3 | + "version": "2.0.0-beta.1", |
4 | 4 | "description": "A no dependency javascript runtime key-value cache store for small chunks of arbitrary data (strings, objects, numbers)", |
5 | 5 | "homepage": "https://github.com/tusharf5/runtime-memcache", |
| 6 | + "main": "./dist/umd/index.js", |
| 7 | + "module": "./dist/esm/index.js", |
| 8 | + "types": "./dist/index.d.ts", |
| 9 | + "files": [ |
| 10 | + "dist/" |
| 11 | + ], |
6 | 12 | "repository": { |
7 | 13 | "type": "git", |
8 | 14 | "url": "https://github.com/tusharf5/runtime-memcache" |
|
17 | 23 | "dev": "yarn build && yarn test", |
18 | 24 | "lint": "eslint 'src/**/*.{ts}' 'tests/**/*.{ts}'", |
19 | 25 | "format": "npx prettier --write '**/*.{ts,js,json}'", |
20 | | - "build": "rm -rf lib && tsc -p . && rm -rf lib/tests && rm -rf lib/src", |
| 26 | + "build": "webpack --mode=production", |
| 27 | + "prebuild": "rm -rf dist && tsc -p . && rm -rf dist/tests && rm -rf dist/src", |
21 | 28 | "prepublish": "npm run build && npm run test" |
22 | 29 | }, |
23 | 30 | "license": "MIT", |
24 | | - "main": "lib/index.js", |
25 | 31 | "keywords": [ |
26 | 32 | "js cache", |
27 | 33 | "javascript cache", |
|
34 | 40 | "timeout", |
35 | 41 | "mru" |
36 | 42 | ], |
37 | | - "typings": "lib/index.d.ts", |
38 | | - "files": [ |
39 | | - "lib/" |
40 | | - ], |
41 | 43 | "devDependencies": { |
42 | 44 | "@types/jest": "^25.2.1", |
43 | 45 | "@types/node": "^13.11.0", |
| 46 | + "babel-loader": "^8.1.0", |
44 | 47 | "eslint": "^6.8.0", |
45 | 48 | "eslint-config-airbnb": "^18.0.1", |
46 | 49 | "eslint-config-prettier": "^6.10.1", |
|
55 | 58 | "prettier": "^2.0.2", |
56 | 59 | "ts-node": "^8.8.2", |
57 | 60 | "typescript": "^3.8.3", |
58 | | - "typescript-eslint-parser": "^22.0.0" |
| 61 | + "typescript-eslint-parser": "^22.0.0", |
| 62 | + "webpack": "^4.43.0", |
| 63 | + "webpack-cli": "^3.3.11" |
59 | 64 | } |
60 | 65 | } |
0 commit comments