UNPKG

contentful-management

Version:
185 lines (184 loc) 6.92 kB
{ "name": "contentful-management", "version": "11.52.2", "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", "postbuild": "npm run test:demo-projects", "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", "pretest": "rimraf coverage && npm run lint", "test": "npm run test:cover-unit && npm run test:types && 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:types": "npx vitest --project types --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: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: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.8.4", "contentful-sdk-core": "^9.0.1", "fast-copy": "^3.0.0", "globals": "^15.15.0" }, "devDependencies": { "@babel/cli": "^7.24.6", "@babel/core": "^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", "@eslint/js": "^9.15.0", "@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", "@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": "^9.15.0", "express": "^4.21.1", "husky": "^9.1.7", "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.6.3", "typescript-eslint": "^8.16.0", "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,ts}": [ "prettier --write", "eslint" ], "*.md": [ "prettier --write" ] }, "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" } ] }