-
Notifications
You must be signed in to change notification settings - Fork 97
/
package.json
189 lines (189 loc) · 6.57 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
181
182
183
184
185
186
187
188
189
{
"name": "contentful-management",
"version": "0.0.0-determined-by-semantic-release",
"description": "Client for Contentful's Content Management API",
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
"main": "./dist/contentful-management.node.js",
"browser": "./dist/contentful-management.browser.js",
"types": "./dist/typings/contentful-management.d.ts",
"module": "./dist/es-modules/contentful-management.js",
"engines": {
"node": ">=18"
},
"browserslist": [
">0.3%",
"Chrome >= 75",
"Edge >= 74",
"Firefox >= 73",
"Safari >= 13"
],
"repository": {
"type": "git",
"url": "https://github.com/contentful/contentful-management.js.git"
},
"author": "Contentful <[email protected]>",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && npm run build:modules && npm run build:standalone && npm run build:types",
"build:modules": "BABEL_ENV=modules babel --extensions \".ts\" --extensions \".js\" lib -d dist/es-modules/",
"build:standalone": "webpack && NODE_ENV=production webpack",
"build:standalone:log": "NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json",
"build:types": "rimraf dist/typings && tsc --declaration --noEmit false --emitDeclarationOnly true --allowJs false",
"build:docs": "typedoc",
"docs:dev": "npm run build && npm run build:docs",
"docs:watch": "nodemon --exec npm run docs:dev -w lib typings",
"docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
"check-types": "tsc",
"lint": "eslint lib test --ext '.ts,.tsx,.js,.jsx'",
"pretest": "rimraf coverage && npm run lint",
"test": "npm run test:cover-unit && npm run test:cover-integration && npm run test:size",
"test:cover-unit": "npm run test:unit -- --coverage",
"test:cover-integration": "npm run test:integration -- --coverage",
"test:unit": "npx vitest --project unit --run",
"test:unit-watch": "npx vitest --project unit",
"test:integration": "npx vitest --project integration --run --no-file-parallelism",
"test:integration-watch": "npx vitest --project integration --no-file-parallelism",
"test:browser": "npx playwright install && npx vitest --project browser-unit --run && npx vitest --project browser-integration --run",
"test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0",
"test:size": "size-limit",
"test:prepush": "npm run build && npm run test:unit && npm run test:size",
"prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
"prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
"semantic-release": "semantic-release",
"precommit": "npm run lint",
"postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi",
"prepush": "npm run test:prepush",
"prepublishOnly": "npm run build && npm run test:version"
},
"files": [
"dist",
"types.d.ts"
],
"dependencies": {
"@contentful/rich-text-types": "^16.6.1",
"axios": "^1.7.4",
"contentful-sdk-core": "^9.0.1",
"fast-copy": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.24.6",
"@babel/core": "^7.24.6",
"@babel/eslint-parser": "^7.24.6",
"@babel/node": "^7.13.13",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.7",
"@contentful/integration-test-utils": "^2.0.1",
"@semantic-release/changelog": "^6.0.0",
"@size-limit/file": "^11.1.6",
"@types/json-patch": "0.0.30",
"@types/lodash": "^4.14.168",
"@types/node": "^20.12.13",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitest/browser": "^2.1.5",
"@vitest/coverage-v8": "^2.1.5",
"babel-loader": "^8.2.1",
"babel-plugin-inline-replace-variables": "^1.3.1",
"babel-plugin-lodash": "^3.3.4",
"contentful-sdk-jsdoc": "3.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.2.0",
"express": "^4.21.1",
"husky": "^4.3.8",
"in-publish": "^2.0.1",
"json-patch": "^0.7.0",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.5",
"lodash": "^4.17.20",
"lodash-webpack-plugin": "^0.11.5",
"nodemon": "^3.1.2",
"playwright": "^1.49.0",
"prettier": "^2.6.0",
"rimraf": "^5.0.0",
"semantic-release": "^22.0.12",
"size-limit": "^11.1.6",
"type-fest": "^4.18.3",
"typedoc": "^0.26.2",
"typescript": "^5.5.2",
"vitest": "^2.1.5",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.9.0",
"webpack-cli": "^5.1.4"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint"
],
"*.md": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"release": {
"branches": [
"master",
{
"name": "beta",
"channel": "beta",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"type": "build",
"scope": "deps",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
},
"size-limit": [
{
"path": "./dist/contentful-management.browser.js",
"limit": "161 kB"
},
{
"path": "./dist/contentful-management.browser.min.js",
"limit": "70 kB"
},
{
"path": "./dist/contentful-management.node.js",
"limit": "177 kB"
},
{
"path": "./dist/contentful-management.node.min.js",
"limit": "88 kB"
}
]
}