-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
113 lines (113 loc) · 3.98 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
{
"name": "@kontent-ai/rich-text-resolver",
"version": "1.2.2",
"private": false,
"description": "Kontent.ai rich text element resolver and PortableText transformer for JavaScript and TypeScript",
"license": "MIT",
"author": "Daniel Pokorny",
"main": "./dist/cjs/index.js",
"module": "./dist/esnext/index.js",
"browser": "./dist/legacy/index.js",
"types": "./dist/esnext/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/kontent-ai/rich-text-resolver-js.git"
},
"exports": {
".": {
"import": "./dist/esnext/index.js",
"require": "./dist/cjs/index.js"
},
"./parser": {
"node": {
"import": "./dist/esnext/src/parser/node/rich-text-node-parser.js",
"require": "./dist/cjs/src/parser/node/rich-text-node-parser.js"
},
"default": {
"import": "./dist/esnext/src/parser/browser/rich-text-browser-parser.js",
"require": "./dist/cjs/src/parser/browser/rich-text-browser-parser.js"
}
},
"./transformers/json": {
"import": "./dist/esnext/src/transformers/json-transformer/json-transformer.js",
"require": "./dist/cjs/src/transformers/json-transformer/json-transformer.js"
},
"./transformers/portable-text": {
"import": "./dist/esnext/src/transformers/portable-text-transformer/portable-text-transformer.js",
"require": "./dist/cjs/src/transformers/portable-text-transformer/portable-text-transformer.js"
},
"./utils": {
"import": "./dist/esnext/src/utils/common-utils.js",
"require": "./dist/cjs/src/utils/common-utils.js"
},
"./utils/vue": {
"import": "./dist/esnext/src/utils/resolution/vue.js",
"require": "./dist/cjs/src/utils/resolution/vue.js"
},
"./utils/html": {
"import": "./dist/esnext/src/utils/resolution/html.js",
"require": "./dist/cjs/src/utils/resolution/html.js"
},
"./utils/mapi": {
"import": "./dist/esnext/src/utils/resolution/mapi.js",
"require": "./dist/cjs/src/utils/resolution/mapi.js"
},
"./types/transformer": {
"import": "./dist/esnext/src/transformers/transformer-models.js",
"require": "./dist/cjs/src/transformers/transformer-models.js"
},
"./types/parser": {
"import": "./dist/esnext/src/parser/parser-models.js",
"require": "./dist/cjs/src/parser/parser-models.js"
}
},
"scripts": {
"build:commonjs": "tsc -p tsconfig.cjs.json && node create-cjs-package-json.cjs",
"build:esnext": "tsc -p tsconfig.esm.json",
"build:legacy": "swc src --out-dir dist/legacy && swc index.ts --out-file dist/legacy/index.js",
"build": "npm run build:commonjs && npm run build:esnext && npm run build:legacy",
"test": "jest",
"test:coverage": "jest --collect-coverage",
"test:watch": "npm run test -- --watch",
"lint": "eslint . --ext ts,tsx",
"lint:fix": "eslint . --ext ts,tsx --fix",
"fmt": "dprint fmt",
"fmt:check": "dprint check"
},
"devDependencies": {
"@kontent-ai/delivery-sdk": "^14.11.0",
"@portabletext/react": "^3.1.0",
"@portabletext/vue": "^1.0.11",
"@swc/cli": "0.4.0",
"@swc/core": "^1.7.12",
"@swc/jest": "^0.2.36",
"@testing-library/jest-dom": "^6.4.8",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react-test-renderer": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vue/test-utils": "^2.4.6",
"core-js": "^3.38.0",
"dprint": "^0.47.2",
"eslint": "^8.57.0",
"eslint-config-kontent-ai": "^0.1.8",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.3.1",
"react-test-renderer": "^18.3.1",
"typescript": "^5.5.4",
"vue": "^3.4.38"
},
"dependencies": {
"@portabletext/to-html": "^2.0.13",
"@portabletext/types": "^2.0.13",
"node-html-parser": "^6.1.13",
"short-unique-id": "^5.2.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}