-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.46 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
{
"name": "@typeform/button",
"version": "0.0.0-semantic-released",
"main": "./dist/index.js",
"license": "MIT",
"engines": {
"node": ">=18"
},
"scripts": {
"build": "esbuild index=src/index.ts button=src/browser.ts --bundle --format=esm --minify --sourcemap",
"watch": "yarn build --watch",
"add-dist-index": "echo \"<!DOCTYPE html><html><head><meta http-equiv='refresh' content='1; url=https://github.com/Typeform/button' /></head><body><p>Please follow <a href='https://github.com/Typeform/button'>this link</a> for button SDK.</p></body></html>\" > ./dist/index.html",
"dist": "yarn build --outdir=dist && yarn add-dist-index",
"start": "yarn watch --serve=1337 --servedir=demo --outdir=demo/dist",
"lint": "eslint src --ext .js,.ts,.jsx,.tsx --max-warnings=0 && yarn prettier-check",
"prettier-check": "prettier --check . --ignore-path .eslintignore",
"prettier": "prettier --write . --ignore-path .eslintignore",
"test": "jest",
"release": "yarn release:aws && yarn release:npm",
"release:npm": "npm config set @typeform:registry https://registry.npmjs.org/ && yarn semantic-release",
"release:github": "npm config set @typeform:registry https://npm.pkg.github.com/ && npm publish",
"release:aws": "DEBUG=jarvis yarn run jarvis deploy --path ./dist"
},
"devDependencies": {
"@commitlint/config-conventional": "^18.4.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/github": "^9.2.4",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@typeform/eslint-config": "^6.0.3",
"@types/jest": "^29.5.8",
"@typescript-eslint/parser": "^6.11.0",
"commitlint": "^18.4.2",
"esbuild": "^0.19.6",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^22.1.0",
"prettier": "^3.1.0",
"semantic-release": "^22.0.8",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"prettier": "@typeform/eslint-config/prettier",
"eslintConfig": {
"extends": [
"@typeform/eslint-config",
"prettier",
"plugin:prettier/recommended"
]
},
"release": {
"branches": [
"main",
"next"
]
}
}