File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 27
27
"scripts" : {
28
28
"clean" : " rm -rf ./build ./build-aws ./types" ,
29
29
"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" ,
31
33
"dev" : " yarn build --watch" ,
32
34
"preview" : " yarn concurrently 'CSS_URL=\" http://localhost:9022/css/\" yarn dev' 'yarn preview:serve'" ,
33
35
"preview:serve" : " yarn http-server -p 9022 -c-1 ./build" ,
59
61
"files" : [
60
62
" build" ,
61
63
" 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
+ }
63
77
}
You can’t perform that action at this time.
0 commit comments