From c98873ea516ad29e6f50304ac53fac80f4eaf055 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 29 May 2023 00:42:28 +0200 Subject: [PATCH] build(simulator): silence rollup warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .cfignore | 1 - rollup.config.mjs | 3 +++ tsconfig-base.json | 2 +- tsconfig-orm.json | 6 ++++-- 4 files changed, 8 insertions(+), 4 deletions(-) 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 } } -- 2.34.1