contentful-management
Version:
Client for Contentful's Content Management API
206 lines (205 loc) • 8.01 kB
JSON
{
"name": "contentful-management",
"version": "11.33.0",
"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 <opensource@contentful.com>",
"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": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/unit npm run test:unit",
"test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/integration npm run test:integration",
"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",
"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",
"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",
"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",
"test:browser": "BABEL_ENV=test karma start karma.conf.local.js --log-level info",
"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": "bundlesize",
"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": "^8.3.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.0",
"@semantic-release/changelog": "^6.0.0",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.4",
"@types/json-patch": "0.0.30",
"@types/lodash": "^4.14.168",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.13",
"@types/sinon": "17.0.3",
"@types/sinon-chai": "^3.2.9",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"babel-loader": "^8.2.1",
"babel-plugin-inline-replace-variables": "^1.3.1",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-rewire-ts": "1.4.0",
"better-docs": "2.7.3",
"bundlesize": "0.18.1",
"chai": "^4.2.0",
"chai-as-promised": "7.1.2",
"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.17.1",
"husky": "^4.3.8",
"in-publish": "^2.0.1",
"json-patch": "^0.7.0",
"jsonwebtoken": "^9.0.2",
"karma": "^6.3.4",
"karma-chrome-launcher": "^3.1.0",
"karma-env-preprocessor": "^0.1.1",
"karma-firefox-launcher": "^2.1.1",
"karma-mocha": "^2.0.1",
"karma-sourcemap-loader": "^0.4.0",
"karma-webpack": "^5.0.0",
"lint-staged": "^15.2.5",
"lodash": "^4.17.20",
"lodash-webpack-plugin": "^0.11.5",
"mocha": "^10.4.0",
"mocha-junit-reporter": "^2.0.2",
"nodemon": "^3.1.2",
"nyc": "^15.1.0",
"prettier": "^2.6.0",
"rimraf": "^5.0.0",
"semantic-release": "^19.0.5",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"type-fest": "^4.18.3",
"typedoc": "^0.26.2",
"typescript": "^5.5.2",
"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"
]
},
"bundlesize": [
{
"path": "./dist/contentful-management.browser.js",
"maxSize": "161Kb"
},
{
"path": "./dist/contentful-management.browser.min.js",
"maxSize": "70Kb"
},
{
"path": "./dist/contentful-management.node.js",
"maxSize": "177Kb"
},
{
"path": "./dist/contentful-management.node.min.js",
"maxSize": "88Kb"
}
]
}