build iframe-api-typings with tsc

This commit is contained in:
Lukas Hass 2022-02-01 11:22:33 +01:00
parent b1d9e603b8
commit 7fbd4c85cb
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178
3 changed files with 12 additions and 2 deletions

View File

@ -78,7 +78,7 @@
"templater": "cross-env ./templater.sh",
"serve": "cross-env vite --host",
"build": "cross-env vite build",
"build-typings": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production BUILD_TYPINGS=1 webpack",
"build-typings": "cross-env tsc --project tsconfig-for-iframe-api-typings.json",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig-for-jasmine.json\" ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ tests/ --ext .ts,.svelte",
"fix": "node_modules/.bin/eslint --fix src/ tests/ --ext .ts,.svelte",

View File

@ -1 +1 @@
iframe_api.d.ts
*.d.ts

View File

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./packages/iframe-api-typings/",
"declaration": true,
"emitDeclarationOnly": true,
"types": ["phaser"]
},
"include": ["src/iframe_api.ts"]
}