forked from facebookarchive/draft-js
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
139 lines (139 loc) · 4.08 KB
/
package.json
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "@descript/draft-js",
"description": "A React framework for building text editors.",
"version": "0.11.6-descript.27",
"keywords": [
"draftjs",
"editor",
"react",
"richtext"
],
"homepage": "http://draftjs.org/",
"bugs": "https://github.com/facebook/draft-js/issues",
"files": [
"dist/",
"lib/",
"LICENSE"
],
"main": "lib/Draft.js",
"style": "dist/Draft.css",
"repository": "facebook/draft-js",
"license": "MIT",
"scripts": {
"prepublish": "npm run build",
"pretest": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
"build": "gulp",
"dev": "gulp dev",
"postbuild": "node node_modules/fbjs-scripts/node/check-lib-requires.js lib",
"lint": "eslint src/.",
"lint-docs": "alex . && yarn format-docs:diff",
"format": "eslint . --fix",
"format-docs": "prettier --config prettier.config.js --write \"docs/**/*.md\"",
"format-docs:diff": "prettier --config prettier.config.js --list-different \"docs/**/*.md\"",
"test": "cross-env NODE_ENV=test jest",
"test-ci": "cross-env NODE_ENV=test npm run lint && npm run test"
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fbjs": "^1.0.0",
"memoize-one": "^5.1.1",
"object-assign": "^4.1.1"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0",
"react-dom": "^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@types/jest": "^29.5.4",
"@types/react": "^16.9.36",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"alex": "^8.0.0",
"babel-eslint": "^10.1.0",
"babel-preset-fbjs": "^3.3.0",
"cross-env": "^7.0.2",
"del": "^5.1.0",
"es6-shim": "^0.35.5",
"eslint": "^8.49.0",
"eslint-config-fbjs": "^4.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"fbjs-scripts": "^1.2.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-clean-css": "^4.2.0",
"gulp-concat-css": "^3.1.0",
"gulp-derequire": "^3.0.0",
"gulp-flatten": "^0.4.0",
"gulp-header": "^2.0.9",
"gulp-if": "^3.0.0",
"gulp-rename": "^2.0.0",
"gulp-typescript": "^6.0.0-alpha.1",
"gulp-util": "^3.0.6",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"merge2": "^1.4.1",
"prettier": "1.19.1",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-test-renderer": "^16.0.0",
"stats-webpack-plugin": "^0.7.0",
"terser-webpack-plugin": "^3.0.5",
"through2": "^3.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-stream": "^7.0.0"
},
"devEngines": {
"node": "14.x || 16.x || 18.x || 20.x",
"npm": "2.x || 3.x || 5.x || 6.x || 7.x || 8.x || 9.x || 10.x"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"globals": {
"__DEV__": true,
"ts-jest": {
"diagnostics": {
"warnOnly": true
}
}
},
"rootDir": "./",
"roots": [
"<rootDir>/src/"
],
"setupFiles": [
"<rootDir>/scripts/jest/shims.js"
],
"setupFilesAfterEnv": [
"<rootDir>/scripts/jest/setupAfterEnv.ts"
],
"haste": {
"hasteImplModulePath": "<rootDir>/scripts/jest/hasteImpl.js"
},
"modulePathIgnorePatterns": [
"<rootDir>/lib/",
"<rootDir>/node_modules/"
],
"transformIgnorePatterns": [
"<rootDir>/node_modules/"
],
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/fbjs/node_modules/",
"<rootDir>/node_modules/fbjs/lib/UserAgent.js",
"<rootDir>/node_modules/fbjs/lib/UserAgentData.js",
"<rootDir>/node_modules/fbjs-scripts/",
"<rootDir>/node_modules/object-assign/",
"<rootDir>/node_modules/react/",
"<rootDir>/node_modules/react-dom/"
]
}
}