1 | {
|
2 | "name": "contentful-management",
|
3 | "version": "11.35.1",
|
4 | "description": "Client for Contentful's Content Management API",
|
5 | "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
6 | "main": "./dist/contentful-management.node.js",
|
7 | "browser": "./dist/contentful-management.browser.js",
|
8 | "types": "./dist/typings/contentful-management.d.ts",
|
9 | "module": "./dist/es-modules/contentful-management.js",
|
10 | "engines": {
|
11 | "node": ">=18"
|
12 | },
|
13 | "browserslist": [
|
14 | ">0.3%",
|
15 | "Chrome >= 75",
|
16 | "Edge >= 74",
|
17 | "Firefox >= 73",
|
18 | "Safari >= 13"
|
19 | ],
|
20 | "repository": {
|
21 | "type": "git",
|
22 | "url": "https://github.com/contentful/contentful-management.js.git"
|
23 | },
|
24 | "author": "Contentful <opensource@contentful.com>",
|
25 | "license": "MIT",
|
26 | "scripts": {
|
27 | "clean": "rimraf dist",
|
28 | "build": "npm run clean && npm run build:modules && npm run build:standalone && npm run build:types",
|
29 | "build:modules": "BABEL_ENV=modules babel --extensions \".ts\" --extensions \".js\" lib -d dist/es-modules/",
|
30 | "build:standalone": "webpack && NODE_ENV=production webpack",
|
31 | "build:standalone:log": "NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json",
|
32 | "build:types": "rimraf dist/typings && tsc --declaration --noEmit false --emitDeclarationOnly true --allowJs false",
|
33 | "build:docs": "typedoc",
|
34 | "docs:dev": "npm run build && npm run build:docs",
|
35 | "docs:watch": "nodemon --exec npm run docs:dev -w lib typings",
|
36 | "docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
|
37 | "check-types": "tsc",
|
38 | "lint": "eslint lib test --ext '.ts,.tsx,.js,.jsx'",
|
39 | "pretest": "rimraf coverage && npm run lint",
|
40 | "test": "npm run test:cover-unit && npm run test:cover-integration && npm run test:size",
|
41 | "test:cover-unit": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/unit npm run test:unit",
|
42 | "test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/integration npm run test:integration",
|
43 | "test:unit": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/unit-results.xml",
|
44 | "test:unit-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --watch --require @babel/register",
|
45 | "test:integration": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/integration-results.xml",
|
46 | "test:integration-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --watch --require @babel/register",
|
47 | "test:browser": "BABEL_ENV=test karma start karma.conf.local.js --log-level info",
|
48 | "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",
|
49 | "test:size": "bundlesize",
|
50 | "test:prepush": "npm run build && npm run test:unit && npm run test:size",
|
51 | "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
|
52 | "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
|
53 | "semantic-release": "semantic-release",
|
54 | "precommit": "npm run lint",
|
55 | "postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi",
|
56 | "prepush": "npm run test:prepush",
|
57 | "prepublishOnly": "npm run build && npm run test:version"
|
58 | },
|
59 | "files": [
|
60 | "dist",
|
61 | "types.d.ts"
|
62 | ],
|
63 | "dependencies": {
|
64 | "@contentful/rich-text-types": "^16.6.1",
|
65 | "axios": "^1.7.4",
|
66 | "contentful-sdk-core": "^8.3.1",
|
67 | "fast-copy": "^3.0.0"
|
68 | },
|
69 | "devDependencies": {
|
70 | "@babel/cli": "^7.24.6",
|
71 | "@babel/core": "^7.24.6",
|
72 | "@babel/eslint-parser": "^7.24.6",
|
73 | "@babel/node": "^7.13.13",
|
74 | "@babel/plugin-proposal-class-properties": "^7.12.1",
|
75 | "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
|
76 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
77 | "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
78 | "@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
79 | "@babel/preset-env": "^7.24.6",
|
80 | "@babel/preset-typescript": "^7.24.7",
|
81 | "@contentful/integration-test-utils": "^2.0.0",
|
82 | "@semantic-release/changelog": "^6.0.0",
|
83 | "@types/chai": "^4.3.16",
|
84 | "@types/chai-as-promised": "^7.1.4",
|
85 | "@types/json-patch": "0.0.30",
|
86 | "@types/lodash": "^4.14.168",
|
87 | "@types/mocha": "^10.0.6",
|
88 | "@types/node": "^20.12.13",
|
89 | "@types/sinon": "17.0.3",
|
90 | "@types/sinon-chai": "^3.2.9",
|
91 | "@typescript-eslint/eslint-plugin": "^7.14.1",
|
92 | "@typescript-eslint/parser": "^7.14.1",
|
93 | "babel-loader": "^8.2.1",
|
94 | "babel-plugin-inline-replace-variables": "^1.3.1",
|
95 | "babel-plugin-lodash": "^3.3.4",
|
96 | "babel-plugin-rewire-ts": "1.4.0",
|
97 | "better-docs": "2.7.3",
|
98 | "bundlesize": "0.18.1",
|
99 | "chai": "^4.2.0",
|
100 | "chai-as-promised": "7.1.2",
|
101 | "contentful-sdk-jsdoc": "3.1.0",
|
102 | "cz-conventional-changelog": "^3.3.0",
|
103 | "eslint": "^8.11.0",
|
104 | "eslint-config-prettier": "^9.0.0",
|
105 | "eslint-plugin-import": "^2.22.1",
|
106 | "eslint-plugin-no-only-tests": "^3.1.0",
|
107 | "eslint-plugin-node": "^11.1.0",
|
108 | "eslint-plugin-promise": "^6.2.0",
|
109 | "express": "^4.17.1",
|
110 | "husky": "^4.3.8",
|
111 | "in-publish": "^2.0.1",
|
112 | "json-patch": "^0.7.0",
|
113 | "jsonwebtoken": "^9.0.2",
|
114 | "karma": "^6.3.4",
|
115 | "karma-chrome-launcher": "^3.1.0",
|
116 | "karma-env-preprocessor": "^0.1.1",
|
117 | "karma-firefox-launcher": "^2.1.1",
|
118 | "karma-mocha": "^2.0.1",
|
119 | "karma-sourcemap-loader": "^0.4.0",
|
120 | "karma-webpack": "^5.0.0",
|
121 | "lint-staged": "^15.2.5",
|
122 | "lodash": "^4.17.20",
|
123 | "lodash-webpack-plugin": "^0.11.5",
|
124 | "mocha": "^10.4.0",
|
125 | "mocha-junit-reporter": "^2.0.2",
|
126 | "nodemon": "^3.1.2",
|
127 | "nyc": "^15.1.0",
|
128 | "prettier": "^2.6.0",
|
129 | "rimraf": "^5.0.0",
|
130 | "semantic-release": "^19.0.5",
|
131 | "sinon": "^18.0.0",
|
132 | "sinon-chai": "^3.7.0",
|
133 | "type-fest": "^4.18.3",
|
134 | "typedoc": "^0.26.2",
|
135 | "typescript": "^5.5.2",
|
136 | "webpack": "^5.91.0",
|
137 | "webpack-bundle-analyzer": "^4.9.0",
|
138 | "webpack-cli": "^5.1.4"
|
139 | },
|
140 | "config": {
|
141 | "commitizen": {
|
142 | "path": "./node_modules/cz-conventional-changelog"
|
143 | }
|
144 | },
|
145 | "lint-staged": {
|
146 | "*.{js,jsx,ts,tsx}": [
|
147 | "prettier --write",
|
148 | "eslint"
|
149 | ],
|
150 | "*.md": [
|
151 | "prettier --write"
|
152 | ]
|
153 | },
|
154 | "husky": {
|
155 | "hooks": {
|
156 | "pre-commit": "lint-staged"
|
157 | }
|
158 | },
|
159 | "release": {
|
160 | "branches": [
|
161 | "master",
|
162 | {
|
163 | "name": "beta",
|
164 | "channel": "beta",
|
165 | "prerelease": true
|
166 | }
|
167 | ],
|
168 | "plugins": [
|
169 | [
|
170 | "@semantic-release/commit-analyzer",
|
171 | {
|
172 | "releaseRules": [
|
173 | {
|
174 | "type": "build",
|
175 | "scope": "deps",
|
176 | "release": "patch"
|
177 | }
|
178 | ]
|
179 | }
|
180 | ],
|
181 | "@semantic-release/release-notes-generator",
|
182 | "@semantic-release/changelog",
|
183 | "@semantic-release/npm",
|
184 | "@semantic-release/github"
|
185 | ]
|
186 | },
|
187 | "bundlesize": [
|
188 | {
|
189 | "path": "./dist/contentful-management.browser.js",
|
190 | "maxSize": "161Kb"
|
191 | },
|
192 | {
|
193 | "path": "./dist/contentful-management.browser.min.js",
|
194 | "maxSize": "70Kb"
|
195 | },
|
196 | {
|
197 | "path": "./dist/contentful-management.node.js",
|
198 | "maxSize": "177Kb"
|
199 | },
|
200 | {
|
201 | "path": "./dist/contentful-management.node.min.js",
|
202 | "maxSize": "88Kb"
|
203 | }
|
204 | ]
|
205 | }
|