forked from DalavanCloud/paypal-smart-payment-buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
106 lines (106 loc) · 4.41 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
{
"name": "@paypal/smart-payment-buttons",
"version": "5.0.112",
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"description": "Serverside rendered ButtonJS",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/paypal/paypal-smart-payment-buttons"
},
"jest": {
"coverageDirectory": "./server-coverage/",
"restoreMocks": true,
"transformIgnorePatterns": [
"node_modules/(?!(@paypal|@krakenjs|get-browser-fingerprint))"
],
"globals": {
"__DEBUG__": true
}
},
"files": [
"dist",
"server",
"src",
"babel.config.js",
"index.js",
"globals.js",
"test/globals.js",
"webpack.config.js"
],
"engines": {
"node": ">=16",
"npm": ">=8"
},
"scripts": {
"start": "babel-node ./server/devServer",
"setup": "npm install && npm run flow-typed",
"lint": "eslint --ext .js --ext .jsx src/ server/ test/ *.js",
"flow-typed": "rm -rf ./flow-typed && flow-typed install --ignoreDeps peer && flow-typed install jest@24 mocha@4 && flow-typed install [email protected] && sed -i -e 's/http$IncomingMessage,/http$IncomingMessage<>,/g' ./flow-typed/npm/express_v4.16.x.js",
"flow": "flow",
"karma": "cross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start",
"babel": "babel server --ignore=node_modules --out-dir server && babel webpack.config.js globals.js --out-dir .",
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress",
"test": "if [ ! $SKIP_TEST ]; then npm run lint && npm run flow-typed && npm run flow check && npm run karma && npm run jest:server && npm run jest:client; fi;",
"build": "npm run test && npm run webpack",
"build-commit": "npm run build && git add dist && (git commit -m 'Dist' || echo 'Nothing to commit') && git push",
"release": "npm run build-commit && grabthar-release",
"release:dry-run": "DRY_RUN=true grabthar-release",
"release:cli": "rm -rf node_modules && npm i && npm run build-commit && grabthar-release",
"postrelease": "npm run cdnify -- --commitonly",
"deploy": "npm run cdnify",
"activate:cli": "CDN='https://www.paypalobjects.com' grabthar-activate",
"activate": "grabthar-activate --CDNIFY=false",
"postactivate": "npm run cdnify -- --commitonly",
"clean": "rimraf dist coverage",
"reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install",
"debug": "cross-env NODE_ENV=debug",
"jest:server": "jest test/server --collectCoverage --collectCoverageFrom='server/' --env=node --no-cache --runInBand",
"jest:client": "jest src/ --collectCoverage --collectCoverageFrom='src/' --testPathIgnorePatterns=/fixtures/ --no-cache --runInBand --env=jsdom",
"cover": "echo no-cover",
"prepublishOnly": "npm run babel",
"postpublish": "if [ \"$DRY_RUN\" != 'true' ]; then git clean -f && git checkout .; fi;",
"cdnify": "grabthar-cdnify --cdn=https://www.paypalobjects.com",
"postinstall": "npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"
},
"peerDependencies": {
"express": "^4.16.3"
},
"alias": {},
"dependencies": {
"@krakenjs/beaver-logger": "^5.0.1",
"@krakenjs/belter": "^2.0.0",
"@krakenjs/cross-domain-utils": "^3.0.0",
"@krakenjs/grabthar": "^6.2.0",
"@krakenjs/jsx-pragmatic": "^3.0.0",
"@krakenjs/post-robot": "^11.0.0",
"@krakenjs/zalgo-promise": "^2.0.0",
"@paypal/checkout-components": "^5.0.167",
"@paypal/common-components": "^1.0.16",
"@paypal/installments": "^1.0.0",
"@paypal/sdk-client": "^4.0.156",
"@paypal/sdk-constants": "^1.0.119",
"@paypal/sdk-logos": "^1.0.43",
"@paypal/sdk-release": "^5.0.138",
"card-validator": "^8.1.1",
"credit-card-type": "^9.1.0",
"get-browser-fingerprint": "^1.1.0",
"module-alias": "^2.2.2",
"preact": "^10",
"preact-render-to-string": "^5.1.4",
"strict-merge": "^1.0.1",
"typed-graphqlify": "^2.2.3"
},
"devDependencies": {
"@krakenjs/grabthar-release": "^3.0.0",
"@krakenjs/grumbler-scripts": "^7.0.0",
"@krakenjs/sync-browser-mocks": "^3.0.0",
"@krakenjs/webpack-mem-compile": "^2.0.1",
"babel-core": "^7.0.0-bridge.0",
"express": "^4.16.3",
"flow-bin": "0.155.0"
},
"license": "Apache-2.0"
}