Skip to content

Commit aed00b6

Browse files
authored
fix(TU-7496): Require TS >=4.4.0 (#632)
1 parent 06a2e2e commit aed00b6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

packages/embed/package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"scripts": {
2828
"clean": "rm -rf ./build ./build-aws ./types",
2929
"build": "yarn webpack",
30-
"postbuild": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir types --skipLibCheck",
30+
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir types --skipLibCheck",
31+
"build:unsupported": "echo '\"Package '@typeform/embed' requires TS version >=4.4.0\".' > types/not-supported-ts-version.d.ts",
32+
"postbuild": "yarn build:types && yarn build:unsupported",
3133
"dev": "yarn build --watch",
3234
"preview": "yarn concurrently 'CSS_URL=\"http://localhost:9022/css/\" yarn dev' 'yarn preview:serve'",
3335
"preview:serve": "yarn http-server -p 9022 -c-1 ./build",
@@ -59,5 +61,17 @@
5961
"files": [
6062
"build",
6163
"types"
62-
]
64+
],
65+
"typesVersions": {
66+
">=4.4.0": {
67+
"*": [
68+
"*"
69+
]
70+
},
71+
"*": {
72+
"*": [
73+
"types/not-supported-ts-version.d.ts"
74+
]
75+
}
76+
}
6377
}

0 commit comments

Comments
 (0)