aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-02 06:07:47 +0300
committereug-vs <eug-vs@keemail.me>2020-12-02 06:07:47 +0300
commit994e0df96267b3de4d82926555ac4c4c7eefe14a (patch)
treed3261f098bec09a106a62baf25e8577da5aaf3fa
parenta32bcd1207b03b05f8fe023498167f9d42811540 (diff)
downloadmongo-cronjob-994e0df96267b3de4d82926555ac4c4c7eefe14a.tar.gz
feat: add build script
-rw-r--r--.gitignore1
-rw-r--r--package.json7
-rw-r--r--tsconfig.release.json15
3 files changed, 20 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 37d7e73..e6367a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
node_modules
.env
+dist
diff --git a/package.json b/package.json
index f4d73da..c62115a 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,12 @@
{
"name": "mongo-cronjob",
- "version": "0.0.0",
+ "version": "0.1.0",
"description": "Cron-based job scheduler integrated with mongoDB",
- "main": "index.js",
+ "main": "dist/index.js",
"scripts": {
"lint": "eslint .",
- "test": "mocha test/**/*.test.ts"
+ "test": "mocha test/**/*.test.ts",
+ "build": "rm -rf dist && tsc --project tsconfig.release.json"
},
"author": "eug-vs",
"license": "MIT",
diff --git a/tsconfig.release.json b/tsconfig.release.json
new file mode 100644
index 0000000..b85035f
--- /dev/null
+++ b/tsconfig.release.json
@@ -0,0 +1,15 @@
+{
+ "compilerOptions": {
+ "outDir": "dist",
+ "target": "es5",
+ "module": "commonjs",
+ "strict": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "noImplicitThis": false,
+ "declaration": true,
+ "listEmittedFiles": true
+ },
+ "include": ["lib"]
+}