|
1 | 1 | {
|
2 | 2 | "name": "deep-object-diff",
|
3 |
| - "version": "1.1.0", |
| 3 | + "version": "1.1.5", |
4 | 4 | "description": "Deep diffs two objects, including nested structures of arrays and objects, and return the difference.",
|
5 |
| - "main": "dist/index.js", |
| 5 | + "main": "cjs/index.js", |
| 6 | + "module": "mjs/index.js", |
| 7 | + "exports": { |
| 8 | + ".": { |
| 9 | + "import": "./mjs/index.js", |
| 10 | + "require": "./cjs/index.js" |
| 11 | + } |
| 12 | + }, |
6 | 13 | "types": "./index.d.ts",
|
7 |
| - "files": [ |
8 |
| - "dist", |
9 |
| - "index.d.ts", |
10 |
| - "README.md" |
11 |
| - ], |
12 | 14 | "scripts": {
|
13 |
| - "build": "babel src -d dist --ignore *.test.js", |
| 15 | + "build": "rm -rf dist && babel src -d dist/cjs && node scripts/build.mjs", |
14 | 16 | "prepublish": "yarn build",
|
| 17 | + "lint": "eslint src", |
15 | 18 | "test": "jest",
|
16 |
| - "test:coverage": "yarn test -- --coverage", |
17 |
| - "test:report": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", |
| 19 | + "test:coverage": "yarn test --coverage", |
18 | 20 | "test:watch": "yarn test -- --watch"
|
19 | 21 | },
|
20 | 22 | "author": "Matt Phillips",
|
21 | 23 | "license": "MIT",
|
22 | 24 | "devDependencies": {
|
23 |
| - "babel-cli": "^6.18.0", |
24 |
| - "babel-core": "^6.18.2", |
25 |
| - "babel-jest": "^22.0.0", |
26 |
| - "babel-jest-assertions": "^0.1.0", |
27 |
| - "babel-plugin-add-module-exports": "^0.2.1", |
28 |
| - "babel-plugin-gwt": "^1.0.0", |
29 |
| - "babel-plugin-transform-es2015-modules-umd": "^6.23.0", |
30 |
| - "babel-preset-es2015": "^6.18.0", |
31 |
| - "babel-preset-stage-0": "^6.16.0", |
32 |
| - "coveralls": "^3.0.0", |
33 |
| - "jest": "^23.6.0" |
| 25 | + "@babel/cli": "^7.16.8", |
| 26 | + "@babel/core": "^7.16.12", |
| 27 | + "@babel/preset-env": "^7.16.11", |
| 28 | + "babel-jest": "^27.4.6", |
| 29 | + "eslint": "^8.7.0", |
| 30 | + "jest": "^27.4.7" |
34 | 31 | },
|
35 | 32 | "babel": {
|
36 | 33 | "presets": [
|
37 |
| - "es2015", |
38 |
| - "stage-0" |
39 |
| - ], |
40 |
| - "plugins": [ |
41 |
| - "add-module-exports", |
42 |
| - "transform-es2015-modules-umd", |
43 |
| - "babel-jest-assertions", |
44 |
| - "gwt" |
| 34 | + [ |
| 35 | + "@babel/preset-env", |
| 36 | + { |
| 37 | + "targets": { |
| 38 | + "node": "12" |
| 39 | + } |
| 40 | + } |
| 41 | + ] |
45 | 42 | ]
|
46 | 43 | },
|
47 | 44 | "repository": {
|
|
0 commit comments