diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-10 00:18:21 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-10 00:18:21 -0500 |
| commit | efab55d4c8ebd3ae37917969c01cdf525829fa76 (patch) | |
| tree | 6eb8fb6a218406d01ded2acf0a8bee23766f361f | |
| parent | 4595d0a97a9dbb5fad1c58adab748214c95e1af7 (diff) | |
| download | ao-coverage-efab55d4c8ebd3ae37917969c01cdf525829fa76.tar.gz ao-coverage-efab55d4c8ebd3ae37917969c01cdf525829fa76.tar.bz2 ao-coverage-efab55d4c8ebd3ae37917969c01cdf525829fa76.zip | |
Fix reported license and update changelog
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | public/bash.template | 4 | ||||
| -rw-r--r-- | src/util/config.ts | 5 |
4 files changed, 11 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d2a7768..d2b7ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Eslint for linting +- Scripts added: `start:dev` for integrated watcher, `start:prod` for running server as production - Formatting and linting scripts +- Template file converter, and bash template for serving ### Changed -- Script 'start' adopted to 'script:dev' with watching +- Relicensed project under the Parity Public License 7.0.0 +- Ensure process exits with error code if error occurred during shutdown ## [0.2.1] diff --git a/package.json b/package.json index 1db7730..9e6eede 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,15 @@ "main": "build/index.js", "scripts": { "start:dev": "tsc-watch --onSuccess \"node ./build/index.js\"", + "start": "tsc && node ./build/index.js", + "start:prod": "tsc && NODE_ENV=production node ./build/index.js", "format": "prettier --write 'src/**/*.ts'", "lint": "eslint 'src/**/*.ts'", "lint:fix": "eslint --fix 'src/**/*.ts'", "tsc": "tsc" }, "author": "Kevin J Hoerr <kjhoerr@submelon.tech>", - "license": "ISC", + "license": "Parity-7.0.0", "dependencies": { "@types/express": "^4.17.2", "@types/jsdom": "^12.2.4", diff --git a/public/bash.template b/public/bash.template index c7f95bc..bfaaae2 100644 --- a/public/bash.template +++ b/public/bash.template @@ -1,8 +1,8 @@ #!/usr/bin/env bash -# ISC License +# Licensed under Parity Public License 7.0.0 # The full version of this license can be found here: -# https://git.submelon.dev/kjhoerr/ao-coverage/raw/branch/trunk/LICENSE +# https://git.submelon.dev/kjhoerr/ao-coverage/raw/branch/trunk/LICENSE.md url="{{TARGET_URL}}" commit="" diff --git a/src/util/config.ts b/src/util/config.ts index 6f8b60b..34a9a46 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -32,7 +32,6 @@ export const handleShutdown = (mongo: MongoClient, server: Server) => ( }) ); }) - .finally(() => { - process.exit(0); - }); + .then(() => process.exit(0)) + .catch(() => process.exit(1)); }; |
