Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
116 lines (116 loc) · 3.31 KB
/
Copy pathpackage.json
File metadata and controls
116 lines (116 loc) · 3.31 KB
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
{
"name": "diff",
"version": "9.0.0",
"description": "A JavaScript text diff implementation.",
"keywords": [
"diff",
"jsdiff",
"compare",
"patch",
"text",
"json",
"css",
"javascript"
],
"maintainers": [
"Kevin Decker <kpdecker@gmail.com> (http://incaseofstairs.com)",
"Mark Amery <markrobertamery+jsdiff@gmail.com>"
],
"bugs": "http://github.com/kpdecker/jsdiff/issues",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/kpdecker/jsdiff.git"
},
"main": "./libcjs/index.js",
"module": "./libesm/index.js",
"browser": "./dist/diff.js",
"unpkg": "./dist/diff.js",
"exports": {
".": {
"import": {
"types": "./libesm/index.d.ts",
"default": "./libesm/index.js"
},
"require": {
"types": "./libcjs/index.d.ts",
"default": "./libcjs/index.js"
}
},
"./package.json": "./package.json",
"./lib/*.js": {
"import": {
"types": "./libesm/*.d.ts",
"default": "./libesm/*.js"
},
"require": {
"types": "./libcjs/*.d.ts",
"default": "./libcjs/*.js"
}
},
"./lib/": {
"import": {
"types": "./libesm/",
"default": "./libesm/"
},
"require": {
"types": "./libcjs/",
"default": "./libcjs/"
}
}
},
"type": "module",
"types": "libcjs/index.d.ts",
"scripts": {
"clean": "rm -rf libcjs/ libesm/ dist/ coverage/",
"lint": "yarn eslint",
"build": "yarn lint && yarn generate-esm && yarn generate-cjs && yarn check-types && yarn run-rollup && yarn run-uglify",
"generate-cjs": "yarn tsc --module commonjs --outDir libcjs && node --eval \"fs.writeFileSync('libcjs/package.json', JSON.stringify({type:'commonjs',sideEffects:false}))\"",
"generate-esm": "yarn tsc --module nodenext --outDir libesm --target es6 --sourceMap && node --eval \"fs.writeFileSync('libesm/package.json', JSON.stringify({type:'module',sideEffects:false}))\"",
"check-types": "yarn run-tsd && yarn run-attw",
"test": "c8 yarn _test",
"_test": "yarn build && yarn run-mocha",
"run-attw": "yarn attw --pack --entrypoints . && yarn attw --pack --entrypoints lib/diff/word.js --profile node16",
"run-tsd": "yarn tsd --typings libesm/ && yarn tsd --files test-d/",
"run-rollup": "rollup -c rollup.config.mjs",
"run-uglify": "uglifyjs dist/diff.js -c -o dist/diff.min.js",
"run-mocha": "mocha 'test/**/*.js'"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.5",
"@colors/colors": "^1.6.1",
"@eslint/js": "^10.0.1",
"c8": "^12.0.0",
"chai": "^6.3.0",
"eslint": "^10.13.0",
"globals": "^17.13.0",
"karma": "^6.4.4",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.4.0",
"karma-webpack": "^5.0.1",
"mocha": "^12.0.3",
"rollup": "^4.64.10",
"tsd": "^0.33.0",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.1",
"uglify-js": "^3.19.3",
"webpack": "^5.112.0",
"webpack-dev-server": "^6.0.0"
},
"c8": {
"reporter": [
"lcov",
"text"
],
"include": [
"libesm/**/*.js"
],
"check-coverage": true,
"branches": 95,
"lines": 98,
"functions": 100,
"statements": 98
},
"packageManager": "yarn@4.18.1"
}