Enable source maps for transpiled files (#242)

* Rename .spec files to .test files.

* Enable source maps.

* Pass enable-source-maps flag for transpiled files.

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
Co-authored-by: prathamesh <prathamesh.musale0@gmail.com>
This commit is contained in:
Ashwin Phatak
2021-09-07 16:01:15 +05:30
committed by GitHub
co-authored by nabarun prathamesh
parent d3a50d2b18
commit 06bed1c13b
27 changed files with 79 additions and 83 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"main": "dist/index.js",
"scripts": {
"lint": "eslint .",
"test": "mocha -r ts-node/register src/**/*.spec.ts",
"test": "mocha -r ts-node/register src/**/*.test.ts",
"build": "tsc"
},
"repository": {
+1 -1
View File
@@ -12,7 +12,7 @@
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "dist", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */