forked from HubSpot/draft-convert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 1.99 KB
/
package.json
File metadata and controls
66 lines (66 loc) · 1.99 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
{
"name": "@20minutes/draft-convert",
"version": "3.1.2",
"description": "Extensibly serialize & deserialize Draft.js ContentState",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
}
},
"repository": "20minutes/draft-convert",
"scripts": {
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:types",
"build:cjs": "swc src -d dist --config-file .cjs.swcrc --strip-leading-paths && node scripts/rename-dist-cjs-entry.js",
"build:esm": "swc src -d dist --config-file .esm.swcrc --strip-leading-paths --delete-dir-on-start --out-file-extension mjs && node scripts/fix-dist-esm-imports.js",
"build:types": "node scripts/build-dist-types.js",
"test": "jest",
"test:watch": "jest --watch",
"clean": "rimraf ./dist ./lib ./esm",
"build-and-test": "yarn clean && yarn test",
"lint": "biome check --max-diagnostics=none",
"lint:fix": "biome check --write --unsafe --max-diagnostics=none"
},
"files": [
"dist"
],
"keywords": [
"draft",
"draftjs",
"draft-convert",
"convert"
],
"author": "bbriggs@hubspot.com",
"license": "Apache-2.0",
"engines": {
"node": ">=22"
},
"peerDependencies": {
"draft-js": ">=0.7.0",
"react": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"immutable": "~5.1.4",
"invariant": "^2.2.1"
},
"devDependencies": {
"@20minutes/eslint-config": "^3.0.0",
"@swc/cli": "^0.8.0",
"@swc/core": "^1.9.2",
"@swc/jest": "^0.2.36",
"draft-js": "^0.11.7",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"prettier": "^3.6.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "6.1.3",
"tsx": "^4.21.0"
}
}