fixed shared package package processing
This commit is contained in:
parent
debf76aabe
commit
8cf967fd80
3 changed files with 35 additions and 0 deletions
|
@ -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!"
|
||||
|
|
10
shared/tsconfig/dtsconfig_packed.json
Normal file
10
shared/tsconfig/dtsconfig_packed.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"source_files": [
|
||||
"../js/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"../js/workers/**/*.ts",
|
||||
"../js/load.ts"
|
||||
],
|
||||
"target_file": "../declarations/exports_packed.d.ts"
|
||||
}
|
12
shared/tsconfig/tsconfig_packed_loader.json
Normal file
12
shared/tsconfig/tsconfig_packed_loader.json
Normal 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"
|
||||
]
|
||||
}
|
Loading…
Add table
Reference in a new issue