From bc339b5b8a3357002909047409be0d7bc7474fe9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 14 Mar 2024 17:17:59 +0200 Subject: Add build cmd --- .gitignore | 1 + package.json | 5 +++-- tsconfig.json | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 42c344e..d06ebd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ downloads/ node_modules/ .env +dist/ diff --git a/package.json b/package.json index c7b1023..845d851 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { - "name": "puppeteer_test", + "name": "veetibot", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "ts-node src/index.ts", + "build": "tsc", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], @@ -20,4 +21,4 @@ "devDependencies": { "prettier": "^3.2.5" } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index e075f97..70a8d2c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ - // "rootDir": "./", /* Specify the root folder within your source files. */ + "rootDir": "./src", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ @@ -49,13 +49,13 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ // "declarationMap": true, /* Create sourcemaps for d.ts files. */ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ - // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - // "outDir": "./", /* Specify an output folder for all emitted files. */ + //"outFile": "./dist/index.js", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + "outDir": "./dist", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ -- cgit v1.3