build iframe-api-typings with tsc
This commit is contained in:
parent
b1d9e603b8
commit
7fbd4c85cb
@ -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",
|
||||
|
2
front/packages/iframe-api-typings/.gitignore
vendored
2
front/packages/iframe-api-typings/.gitignore
vendored
@ -1 +1 @@
|
||||
iframe_api.d.ts
|
||||
*.d.ts
|
||||
|
10
front/tsconfig-for-iframe-api-typings.json
Normal file
10
front/tsconfig-for-iframe-api-typings.json
Normal 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"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user