fixed shared package package processing

This commit is contained in:
WolverinDEV 2019-02-25 16:32:29 +01:00
parent debf76aabe
commit 8cf967fd80
3 changed files with 35 additions and 0 deletions

View file

@ -12,6 +12,7 @@ if [[ -e ${LOADER_FILE} ]]; then
echo "Failed to remove loader file!\nThis could be critical later!"
fi
fi
npm run dtsgen -- --config $(pwd)/tsconfig/dtsconfig_loader.json -v
if [[ ! -e ${LOADER_FILE} ]]; then
echo "Failed to generate definitions"
@ -19,6 +20,18 @@ if [[ ! -e ${LOADER_FILE} ]]; then
exit 1
fi
npm run dtsgen -- --config $(pwd)/tsconfig/dtsconfig_packed.json -v
if [[ $? -ne 0 ]]; then
echo "Failed to generate definitions for the loader"
exit 1
fi
execute_ttsc -p tsconfig/tsconfig_packed_loader.json
if [[ $? -ne 0 ]]; then
echo "Failed to generate packed loader file!"
exit 1
fi
execute_ttsc -p tsconfig/tsconfig_packed.json
if [[ $? -ne 0 ]]; then
echo "Failed to generate packed file!"

View file

@ -0,0 +1,10 @@
{
"source_files": [
"../js/**/*.ts"
],
"exclude": [
"../js/workers/**/*.ts",
"../js/load.ts"
],
"target_file": "../declarations/exports_packed.d.ts"
}

View file

@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"sourceMap": true
},
"include": [
"../declarations/imports_*.d.ts",
"../declarations/exports_packed.d.ts",
"../js/load.ts"
]
}