contentful-management 11.47.2 → 11.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "11.47.2",
3
+ "version": "11.48.0",
4
4
  "description": "Client for Contentful's Content Management API",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6
6
  "main": "./dist/contentful-management.node.js",
@@ -26,6 +26,7 @@
26
26
  "scripts": {
27
27
  "clean": "rimraf dist",
28
28
  "build": "npm run clean && npm run build:modules && npm run build:standalone && npm run build:types",
29
+ "postbuild": "npm run test:demo-projects",
29
30
  "build:modules": "BABEL_ENV=modules babel --extensions \".ts\" --extensions \".js\" lib -d dist/es-modules/",
30
31
  "build:standalone": "webpack && NODE_ENV=production webpack",
31
32
  "build:standalone:log": "NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json",
@@ -48,6 +49,9 @@
48
49
  "test:browser": "npx playwright install && npx vitest --project browser-unit --run && npx vitest --project browser-integration --run",
49
50
  "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",
50
51
  "test:size": "size-limit",
52
+ "test:demo-projects": "npm run test:demo-node && npm run test:demo-browser",
53
+ "test:demo-node": "rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node ci && vitest --run ./test/output-integration/node",
54
+ "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",
51
55
  "test:prepush": "npm run build && npm run test:unit && npm run test:size",
52
56
  "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
53
57
  "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
@@ -65,7 +69,8 @@
65
69
  "@contentful/rich-text-types": "^16.6.1",
66
70
  "axios": "^1.7.9",
67
71
  "contentful-sdk-core": "^9.0.1",
68
- "fast-copy": "^3.0.0"
72
+ "fast-copy": "^3.0.0",
73
+ "globals": "^15.15.0"
69
74
  },
70
75
  "devDependencies": {
71
76
  "@babel/cli": "^7.24.6",