-
Notifications
You must be signed in to change notification settings - Fork 200
/
package.json
180 lines (180 loc) · 5.87 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"name": "contentful",
"description": "Client for Contentful's Content Delivery API",
"version": "0.0.0-determined-by-semantic-release",
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",
"type": "module",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/contentful.cjs",
"types": "./dist/types/index.d.ts"
}
},
"main": "./dist/esm/index.js",
"types": "dist/types/index.d.ts",
"engines": {
"node": ">=18"
},
"browserslist": [
">0.3%",
"Chrome >= 75",
"Edge >= 74",
"Firefox >= 73",
"Safari >= 13"
],
"tsd": {
"directory": "test/types",
"compilerOptions": {
"rootDir": "./lib",
"typeRoots": [
"./lib"
]
}
},
"files": [
"dist",
"images",
"ADVANCED.md",
"CONTRIBUTING.md",
"MIGRATION.md",
"README.md",
"TYPESCRIPT.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "https://github.com/contentful/contentful.js.git"
},
"author": "Contentful <[email protected]>",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && npm run build:esm && npm run build:bundles && rm -rf dist/esm-raw",
"build:esm": "tsc",
"build:bundles": "NODE_ENV=production rollup -c",
"postbuild": "npm run check && npm run test:demo-projects",
"check": "npm run check:cjs && npm run check:esm && npm run check:browser && npm run check:browser-min",
"check:browser": "es-check es2018 ./dist/contentful.browser.js",
"check:browser-min": "es-check es2018 ./dist/contentful.browser.min.js",
"check:cjs": "es-check es2017 './dist/contentful.cjs'",
"check:esm": "es-check es2017 --module './dist/esm/*.js'",
"docs:build": "typedoc --options typedoc.json",
"docs:watch": "npm run docs:build -- --watch",
"docs:publish": "npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful.js contentful",
"lint": "eslint \"lib/**\" \"test/**\"",
"prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
"prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
"pretest": "rimraf coverage",
"test": "npm run test:unit && npm run test:integration && npm run lint && npm run test:types",
"test:unit": "vitest --run ./test/unit",
"test:unit:watch": "vitest ./test/unit",
"test:integration": "vitest --run ./test/integration",
"test:integration:watch": "vitest ./test/integration",
"test:size": "size-limit",
"test:demo-projects": "npm run test:demo-node && npm run test:demo-browser",
"test:demo-node": "rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node ci && vitest --run ./test/output-integration/node",
"test:demo-browser": "rimraf ./test/output-integration/browser/node-modules && npm --prefix ./test/output-integration/browser ci && npm --prefix ./test/output-integration/browser run test",
"test:types": "tsd",
"test:prepush": "npm run build && npm run test:unit && npm run test:types",
"prepublishOnly": "export PUBLISH_RUN=true && npm run build && unset PUBLISH_RUN",
"postpublish": "npm run docs:publish && npm run clean",
"semantic-release": "semantic-release",
"prepare": "husky",
"precommit": "npm run lint && npm run prettier:check",
"prepush": "npm run test:prepush"
},
"dependencies": {
"@contentful/content-source-maps": "^0.11.6",
"@contentful/rich-text-types": "^16.6.1",
"axios": "^1.7.4",
"contentful-resolve-response": "^1.9.0",
"contentful-sdk-core": "^8.3.1",
"json-stringify-safe": "^5.0.1",
"type-fest": "^4.0.0"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.3",
"@optimize-lodash/rollup-plugin": "^4.0.4",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@semantic-release/changelog": "^6.0.1",
"@size-limit/file": "^11.1.6",
"@types/json-stringify-safe": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"contentful-sdk-jsdoc": "^3.1.2",
"cz-conventional-changelog": "^3.3.0",
"es-check": "^7.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vitest-globals": "^1.5.0",
"fast-copy": "^3.0.2",
"husky": "^9.0.11",
"prettier": "^3.1.0",
"process": "^0.11.10",
"rimraf": "^5.0.0",
"rollup": "^4.13.0",
"rollup-plugin-visualizer": "^5.12.0",
"semantic-release": "^22.0.8",
"size-limit": "^11.1.6",
"tsd": "^0.31.0",
"typedoc": "^0.26.4",
"typescript": "^5.5.3",
"vitest": "^2.0.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"size-limit": [
{
"path": "./dist/contentful.browser.js",
"limit": "85 Kb"
},
{
"path": "./dist/contentful.browser.min.js",
"limit": "45 Kb"
}
],
"release": {
"branches": [
"master",
{
"name": "next",
"channel": "next",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"type": "build",
"scope": "deps",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/github"
]
}
}