@typeform/embed
Version:
**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.
81 lines (80 loc) • 3.08 kB
JSON
{
"name": "@typeform/embed",
"version": "6.0.0",
"main": "./build/index.js",
"types": "./types/index.d.ts",
"author": "Typeform",
"license": "MIT",
"homepage": "https://github.com/Typeform/embed/blob/main/packages/embed#readme",
"repository": {
"type": "git",
"url": "https://github.com/Typeform/embed.git",
"directory": "packages/embed"
},
"bugs": "https://github.com/Typeform/embed/issues",
"keywords": [
"typeform",
"embed",
"form",
"widget",
"slider",
"sidetab",
"popover"
],
"engines": {
"node": ">=18"
},
"scripts": {
"clean": "rm -rf ./build ./build-aws ./types",
"build": "yarn webpack",
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir types --skipLibCheck",
"build:unsupported": "echo '\"Package '@typeform/embed' requires TS version >=4.4.0\".' > types/not-supported-ts-version.d.ts",
"postbuild": "yarn build:types && yarn build:unsupported",
"dev": "yarn build --watch",
"preview": "yarn concurrently 'CSS_URL=\"http://localhost:9022/css/\" yarn dev' 'yarn preview:serve'",
"preview:serve": "yarn http-server -p 9022 -c-1 ./build",
"demo-nextjs": "cd ../demo-nextjs && yarn start",
"demo-html": "cd ../demo-html && yarn start",
"demo": "yarn concurrently 'yarn dev' 'yarn demo-nextjs'",
"demo-static": "yarn concurrently 'yarn dev' 'yarn demo-html'",
"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",
"test:coverage": "jest --coverage",
"cy:open": "yarn cypress open",
"cy:open:vrt": "yarn cypress open --env testType=visual",
"cy:open:func": "yarn cy:open -c e2e.specPattern=./e2e/spec/functional/",
"cy:functional": "yarn cypress run --spec e2e/spec/functional/**/* --headless",
"cy:visual": "yarn cypress run --spec e2e/spec/visual/**/* --env testType=visual",
"test:functional": "start-server-and-test demo 9090 cy:functional",
"test:visual": "start-server-and-test demo 9090 cy:visual",
"release-vanilla": "yarn semantic-release",
"post-release": "yarn release:github",
"release:github": "npm publish --registry https://npm.pkg.github.com/",
"release:aws": "yarn release:aws:prepare && yarn release:aws:deploy",
"release:aws:prepare": "sh ./scripts/prepare-release.sh",
"release:aws:deploy": "DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --version next",
"release:preview": "yarn release:aws:prepare && yarn release:preview:aws",
"release:preview:aws": "DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --preview --notify-preview"
},
"files": [
"build",
"types"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"typesVersions": {
">=4.4.0": {
"*": [
"*"
]
},
"*": {
"*": [
"types/not-supported-ts-version.d.ts"
]
}
}
}