-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
91 lines (91 loc) · 6.79 KB
/
package.json
File metadata and controls
91 lines (91 loc) · 6.79 KB
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
{
"private": true,
"name": "@contentful/optimization",
"description": "Contentful Optimization SDK Suite",
"license": "MIT",
"scripts": {
"build": "pnpm --filter @contentful/* --stream build",
"build:ci": "pnpm --filter @contentful/* --stream build:ci",
"build:pkgs": "pnpm build && pnpm run pack:pkgs",
"build:rsdoctor": "pnpm --filter @contentful/* --stream build:rsdoctor",
"clean": "pnpm -r --parallel clean",
"docs:generate": "typedoc",
"docs:watch": "typedoc --watch",
"format:check": "prettier . --check",
"format:fix": "prettier . --check --write",
"implementation:install": "pnpm run build:pkgs && pnpm run implementation:run -- --all -- implementation:install",
"implementation:ios-sdk": "pnpm run implementation:run -- ios-sdk",
"implementation:node-sdk": "pnpm run implementation:run -- node-sdk",
"implementation:node-sdk+web-sdk": "pnpm run implementation:run -- node-sdk+web-sdk",
"implementation:react-native-sdk": "pnpm run implementation:run -- react-native-sdk",
"implementation:run": "tsx ./scripts/run-implementation-script.ts",
"implementation:react-web-sdk": "pnpm run implementation:run -- react-web-sdk",
"implementation:web-sdk_react": "pnpm run implementation:run -- web-sdk_react",
"implementation:react-web-sdk+node-sdk_nextjs-ssr": "pnpm run implementation:run -- react-web-sdk+node-sdk_nextjs-ssr",
"implementation:react-web-sdk+node-sdk_nextjs-ssr-csr": "pnpm run implementation:run -- react-web-sdk+node-sdk_nextjs-ssr-csr",
"implementation:web-sdk": "pnpm run implementation:run -- web-sdk",
"implementation:lint": "eslint implementations --ignore-pattern implementations/react-web-sdk+node-sdk_nextjs-ssr --ignore-pattern implementations/react-web-sdk+node-sdk_nextjs-ssr-csr --cache --cache-location .cache/eslint/implementations && pnpm run implementation:run -- react-web-sdk+node-sdk_nextjs-ssr lint",
"implementation:lint:fix": "eslint implementations --ignore-pattern implementations/react-web-sdk+node-sdk_nextjs-ssr --ignore-pattern implementations/react-web-sdk+node-sdk_nextjs-ssr-csr --fix && pnpm run implementation:run -- react-web-sdk+node-sdk_nextjs-ssr lint",
"implementation:typecheck": "pnpm run implementation:run -- --all -- typecheck",
"lint": "eslint lib packages --cache --cache-location .cache/eslint/workspace",
"lint:fix": "eslint lib packages --fix",
"notices:generate": "pnpm --filter \"@contentful/*\" licenses list --prod --json | pnpm dlx @quantco/pnpm-licenses generate-disclaimer --json-input --output-file THIRD_PARTY_NOTICES.txt",
"pack:pkgs": "pnpm pack --filter @contentful/* --pack-destination pkgs",
"playwright:install": "pnpm run implementation:run -- --all -- implementation:playwright:install",
"playwright:install-deps": "pnpm run implementation:run -- --all -- implementation:playwright:install-deps",
"pm2:delete:all": "pm2 delete all",
"pm2:list": "pm2 list",
"pm2:logs": "pm2 logs",
"pm2:stop:all": "pm2 stop all",
"prepare": "husky",
"serve:mocks": "pnpm --dir lib/mocks serve",
"setup:e2e": "pnpm run build:pkgs && pnpm run implementation:run -- --all -- implementation:install && pnpm run playwright:install && pnpm run playwright:install-deps",
"setup:e2e:ios-sdk": "pnpm run implementation:ios-sdk -- xcodegen",
"setup:e2e:node-sdk": "pnpm run build:pkgs && pnpm run implementation:run -- node-sdk implementation:install && pnpm run implementation:run -- node-sdk implementation:setup:e2e",
"setup:e2e:node-sdk+web-sdk": "pnpm run build:pkgs && pnpm run implementation:run -- node-sdk+web-sdk implementation:install && pnpm run implementation:run -- node-sdk+web-sdk implementation:setup:e2e",
"setup:e2e:react-native-sdk": "pnpm run build:pkgs && pnpm run implementation:run -- react-native-sdk implementation:install && pnpm run implementation:run -- react-native-sdk implementation:setup:e2e",
"setup:e2e:react-web-sdk": "pnpm run build:pkgs && pnpm run implementation:run -- react-web-sdk implementation:install && pnpm run implementation:run -- react-web-sdk implementation:setup:e2e",
"setup:e2e:web-sdk_react": "pnpm run build:pkgs && pnpm run implementation:run -- web-sdk_react implementation:install && pnpm run implementation:run -- web-sdk_react implementation:setup:e2e",
"setup:e2e:web-sdk": "pnpm run build:pkgs && pnpm run implementation:run -- web-sdk implementation:install && pnpm run implementation:run -- web-sdk implementation:setup:e2e",
"test:e2e": "pnpm run setup:e2e && pnpm run implementation:run -- --all -- implementation:test:e2e:run",
"test:e2e:ios-sdk": "pnpm run setup:e2e:ios-sdk && pnpm run implementation:ios-sdk -- test:e2e:ios:build:release && IOS_SCHEME=SwiftUI pnpm run implementation:ios-sdk -- test:e2e:ios:run:release && IOS_SCHEME=UIKit pnpm run implementation:ios-sdk -- test:e2e:ios:run:release",
"test:e2e:node-sdk": "pnpm run setup:e2e:node-sdk && pnpm run implementation:run -- node-sdk implementation:test:e2e:run",
"test:e2e:node-sdk+web-sdk": "pnpm run setup:e2e:node-sdk+web-sdk && pnpm run implementation:run -- node-sdk+web-sdk implementation:test:e2e:run",
"test:e2e:react-native-sdk": "pnpm run setup:e2e:react-native-sdk && pnpm run implementation:run -- react-native-sdk implementation:test:e2e:run",
"test:e2e:react-web-sdk": "pnpm run setup:e2e:react-web-sdk && pnpm run implementation:run -- react-web-sdk implementation:test:e2e:run",
"test:e2e:web-sdk_react": "pnpm run setup:e2e:web-sdk_react && pnpm run implementation:run -- web-sdk_react implementation:test:e2e:run",
"test:e2e:web-sdk": "pnpm run setup:e2e:web-sdk && pnpm run implementation:run -- web-sdk implementation:test:e2e:run",
"size:check": "pnpm --filter @contentful/* --stream size:check",
"size:report": "pnpm --filter @contentful/* --stream size:report",
"test:unit": "pnpm --filter \"./lib/*\" --filter @contentful/* test:unit",
"test:unit:ci": "CI=true pnpm run test:unit",
"typecheck": "pnpm -r typecheck",
"version:node": "node -v",
"version:pnpm": "pnpm -v"
},
"engines": {
"node": ">=20.19.0"
},
"packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8",
"devDependencies": {
"@rstest/core": "catalog:",
"@eslint/js": "^10.0.1",
"commitizen": "^4.3.1",
"cz-vinyl": "^2.5.4",
"eslint": "^10.0.0",
"eslint-config-love": "^121.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-lit": "^2.2.1",
"eslint-plugin-wc": "^3.1.0",
"husky": "^9.1.7",
"jiti": "^2.6.1",
"lint-staged": "^16.2.7",
"pm2": "catalog:",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
"tsx": "catalog:",
"typedoc": "^0.28.19",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.0"
}
}