diff --git a/dev-scripts/build-extension.sh b/dev-scripts/build-extension.sh index cbac9a2..5f8fe02 100755 --- a/dev-scripts/build-extension.sh +++ b/dev-scripts/build-extension.sh @@ -1,13 +1,20 @@ #!/usr/bin/bash -rm -r scripts/ package.zip +rm -rf scripts/ package.zip -tsc +if tsc; then -mkdir -p scripts/altcha -cp -r node_modules/altcha/dist_external scripts/altcha/ + mkdir -p scripts/altcha + cp -r node_modules/altcha/dist_external scripts/altcha/ + cp node_modules/altcha/* scripts/altcha/ -mkdir -p scripts/indexeddb-promise -cp node_modules/@coderundebug/indexeddb-promise/* scripts/indexeddb-promise + mkdir -p scripts/indexeddb-promise + cp node_modules/@coderundebug/indexeddb-promise/* scripts/indexeddb-promise -zip -r package.zip icons/ pages/ scripts/ styles/ manifest.json + zip -r package.zip icons/ pages/ scripts/ styles/ manifest.json + +else + + echo "tsc failed, package not built" + +fi diff --git a/tsconfig.json b/tsconfig.json index 985cce0..f2ceb90 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "include": [ "src/**/*", "node_modules/altcha/*", - "node_modules/@coderundebug/indexeddb-promise/*" + // "node_modules/@coderundebug/indexeddb-promise/*" ], "compilerOptions": { @@ -10,7 +10,7 @@ "outDir": "scripts", "lib": ["ES7", "DOM"], - "noImplicitAny": true, + // "noImplicitAny": true, "noFallthroughCasesInSwitch": true, "sourceMap": true,