From: Jérôme Benoit Date: Sun, 28 May 2023 22:42:28 +0000 (+0200) Subject: build(simulator): silence rollup warning X-Git-Tag: v1.2.15~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c98873ea516ad29e6f50304ac53fac80f4eaf055;p=e-mobility-charging-stations-simulator.git build(simulator): silence rollup warning Signed-off-by: Jérôme Benoit --- diff --git a/.cfignore b/.cfignore index 30ad46d7..8300fc8c 100644 --- a/.cfignore +++ b/.cfignore @@ -67,7 +67,6 @@ temp outputs coverage node_modules -!dist/node_modules sonar-project.properties performanceRecords.json performanceRecords.json.lock diff --git a/rollup.config.mjs b/rollup.config.mjs index a8b6e077..e044b23c 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -57,6 +57,9 @@ export default { json(), typescript({ tsconfig: 'tsconfig.json', + compilerOptions: { + sourceMap: !!isDevelopmentBuild, + }, }), del({ targets: [ diff --git a/tsconfig-base.json b/tsconfig-base.json index 28e4186c..658bfcfc 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -15,7 +15,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ // "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. */ diff --git a/tsconfig-orm.json b/tsconfig-orm.json index 2c7b2841..7bf0a6cb 100644 --- a/tsconfig-orm.json +++ b/tsconfig-orm.json @@ -1,6 +1,8 @@ { - "extends": "./tsconfig.json", + "extends": "./tsconfig-base.json", "compilerOptions": { - "module": "commonjs" + "module": "commonjs", + "sourceMap": true, + "verbatimModuleSyntax": true } }