/
package.json
140 lines (140 loc) · 4.43 KB
/
package.json
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "@guardian/commercial",
"version": "19.0.0",
"description": "Guardian advertising business logic",
"homepage": "https://github.com/guardian/commercial#readme",
"bugs": {
"url": "https://github.com/guardian/commercial/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/guardian/commercial.git"
},
"license": "Apache-2.0",
"files": [
"dist"
],
"main": "dist/cjs/core/index.js",
"module": "dist/esm/core/index.js",
"scripts": {
"build": "npm-run-all clean --parallel compile:core:* build:prod build:dev",
"build:dev": "webpack -c webpack.config.dev.js",
"build:prod": "webpack -c webpack.config.prod.js",
"clean": "rm -rf dist",
"compile:core:common": "tsc --project ./tsconfig.core.json --outDir ./dist/cjs --module CommonJS",
"compile:core:esm": "tsc --project ./tsconfig.core.json --outDir ./dist/esm",
"playwright:run": "playwright test",
"playwright:open": "playwright test --ui",
"lint": "eslint .",
"lint-staged": "lint-staged",
"precommit:lint": "npm-run-all lint-staged",
"prepare": "husky install",
"prepush:test": "jest --verbose --runInBand --onlyChanged",
"prettier:check": "prettier . --check --cache",
"prettier:fix": "prettier . --write --cache",
"serve": "OVERRIDE_BUNDLE=true pnpm webpack-dev-server -c ./webpack.config.dev.js",
"test": "jest",
"tsc": "tsc --noEmit",
"validate": "npm-run-all tsc lint test build"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.17.12",
"@babel/register": "^7.11.5",
"@babel/runtime": "^7.11.2",
"@guardian/ab-core": "7.0.1",
"@guardian/browserslist-config": "^5.1.0",
"@guardian/core-web-vitals": "6.0.0",
"@guardian/eslint-config-typescript": "^9.0.1",
"@guardian/identity-auth": "^2.1.0",
"@guardian/identity-auth-frontend": "^4.0.0",
"@guardian/libs": "16.1.2",
"@guardian/prettier": "4.0.0",
"@guardian/source-foundations": "14.1.4",
"@playwright/test": "1.40.1",
"@types/google.analytics": "^0.0.42",
"@types/googletag": "~3.1.3",
"@types/jest": "^29.4.0",
"@types/lodash-es": "^4.17.6",
"@types/node": "20.12.7",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.4.0",
"babel-loader": "^9.1.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"circular-dependency-plugin": "^5.2.2",
"csstype": "^3.1.1",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.3",
"jest": "^29.0.0",
"jest-environment-jsdom": "~29.0.0",
"jest-environment-jsdom-global": "~4.0.0",
"lint-staged": "^13.2.2",
"mockdate": "^3.0.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.0",
"raw-loader": "^4.0.2",
"terser-webpack-plugin": "^5.3.6",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"type-fest": "^4.3.3",
"typescript": "5.3.3",
"webpack": "^5.76.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3",
"webpack-merge": "^4.1.0"
},
"dependencies": {
"@changesets/cli": "^2.26.2",
"@guardian/ophan-tracker-js": "2.0.4",
"@guardian/prebid.js": "8.34.0",
"@octokit/core": "^6.1.2",
"fastdom": "^1.0.11",
"lodash-es": "^4.17.21",
"process": "^0.11.10",
"raven-js": "^3.27.2",
"tslib": "^2.6.2",
"web-vitals": "^3.3.2",
"wolfy87-eventemitter": "^5.2.9"
},
"prettier": "@guardian/prettier",
"lint-staged": {
"src/**/*.(js|ts)": [
"pnpm eslint --fix",
"pnpm prettier:fix"
]
},
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@guardian/ab-core": "^7.0.1",
"@guardian/core-web-vitals": "^6.0.0",
"@guardian/identity-auth": "^2.1.0",
"@guardian/identity-auth-frontend": "^4.0.0",
"@guardian/libs": "^16.1.0",
"@guardian/source-foundations": "^14.1.2",
"typescript": "~5.3.3"
},
"browserslist": [
"extends @guardian/browserslist-config"
],
"packageManager": "pnpm@8.15.5"
}