-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
128 lines (128 loc) · 3.26 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
{
"name": "@square/web-sdk",
"version": "0.0.0",
"description": "Square Web SDK",
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"build": "npm-run-all --serial build:*",
"build:package": "esbuild src/index.ts src/load.ts src/payments.ts --bundle --minify --target=es2015 --outdir=dist --format=esm",
"build:types": "tsc --project tsconfig.types.json",
"clean": "rm -rf .eslintcache coverage/ dist/",
"lint": "npm-run-all --serial lint:*",
"lint:eslint": "eslint --ignore-path .gitignore --cache --ext .ts .",
"lint:prettier": "prettier --ignore-path .gitignore --check .",
"lint:prettier:fix": "prettier --ignore-path .gitignore --write .",
"test": "npm-run-all --serial lint test:* build",
"test:unit": "jest",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/square/web-sdk.git"
},
"keywords": [
"sdk",
"square",
"javascript",
"typescript",
"payments"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/square/web-sdk/issues"
},
"homepage": "https://github.com/square/web-sdk#readme",
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@square/prettier-config": "1.0.0",
"@types/jest": "^29.5.6",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"babel-jest": "^29.7.0",
"codecov": "^3.8.3",
"conventional-changelog-conventionalcommits": "^7.0.2",
"esbuild": "^0.19.5",
"esbuild-loader": "^4.0.2",
"eslint": "^8.52.0",
"eslint-plugin-jest": "^27.4.3",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-square": "^26.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^15.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"semantic-release": "^22.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"prettier": "@square/prettier-config",
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015
},
"env": {
"browser": true
},
"plugins": [
"square",
"jest"
],
"extends": [
"plugin:square/typescript",
"plugin:jest/recommended"
]
},
"lint-staged": {
"*.ts": "eslint --cache --fix",
"*.{json,md,yml}": "prettier --write"
},
"release": {
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/npm",
{
"tarballDir": "dist"
}
],
[
"@semantic-release/github",
{
"assets": "dist/*.tgz",
"addReleases": "bottom"
}
]
]
},
"dependencies": {
"@square/web-payments-sdk-types": "^1.58.0"
}
}