|
5 | 5 | "license": "MIT", |
6 | 6 | "main": "lib/index.js", |
7 | 7 | "types": "lib/index.d.ts", |
| 8 | + "module": "esm/index.js", |
8 | 9 | "files": [ |
9 | | - "lib/" |
| 10 | + "lib/", |
| 11 | + "esm/" |
10 | 12 | ], |
11 | 13 | "repository": { |
12 | 14 | "type": "git", |
|
19 | 21 | "homepage": "https://github.com/bigcommerce/request-sender-js", |
20 | 22 | "scripts": { |
21 | 23 | "prebuild": "rm -rf lib", |
22 | | - "build": "tsc --outDir lib --project tsconfig-build.json", |
| 24 | + "build:cjs": "tsc --outDir lib --project tsconfig-build.json", |
| 25 | + "build:esm": "tsc --outDir esm --project tsconfig-build.json --target ES2015 --module esnext", |
| 26 | + "build": "npm run build:cjs && npm run build:esm", |
23 | 27 | "lint": "tslint 'src/**/*.ts' --config tslint.json --project tsconfig.json && tsc --noEmit", |
24 | 28 | "prepare": "npm run build", |
25 | 29 | "prerelease": "git fetch --tags && npm run validate-commits && npm run lint && npm test", |
|
33 | 37 | }, |
34 | 38 | "dependencies": { |
35 | 39 | "@types/js-cookie": "^2.2.6", |
36 | | - "@types/lodash": "^4.14.150", |
37 | 40 | "@types/query-string": "^5.1.0", |
38 | 41 | "js-cookie": "^2.2.1", |
39 | | - "lodash": "^4.17.15", |
| 42 | + "lodash.merge": "^4.6.2", |
40 | 43 | "query-string": "^5.1.1", |
41 | 44 | "tslib": "^1.11.0" |
42 | 45 | }, |
43 | 46 | "devDependencies": { |
44 | 47 | "@bigcommerce/tslint-config": "^4.1.0", |
45 | 48 | "@bigcommerce/validate-commits": "^2.2.0", |
46 | 49 | "@types/jest": "^25.2.1", |
| 50 | + "@types/lodash.merge": "^4.6.6", |
47 | 51 | "@types/node": "^13.13.4", |
48 | 52 | "@typescript-eslint/parser": "^2.30.0", |
49 | 53 | "eslint": "^6.8.0", |
|
0 commit comments