diff options
author | eug-vs <eug-vs@keemail.me> | 2020-12-02 06:07:47 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-12-02 06:07:47 +0300 |
commit | 994e0df96267b3de4d82926555ac4c4c7eefe14a (patch) | |
tree | d3261f098bec09a106a62baf25e8577da5aaf3fa | |
parent | a32bcd1207b03b05f8fe023498167f9d42811540 (diff) | |
download | mongo-cronjob-994e0df96267b3de4d82926555ac4c4c7eefe14a.tar.gz |
feat: add build script
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | package.json | 7 | ||||
-rw-r--r-- | tsconfig.release.json | 15 |
3 files changed, 20 insertions, 3 deletions
@@ -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"] +} |