From ce9b37d299a663eaa89e752d93bf46f9b5128c84 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 5 Jun 2025 09:31:57 +0200 Subject: [PATCH] Add generated header to ignore sonarcloud for compiled TS (#896) --- .../wwwroot/js/shared/identity-generator/index.js | 3 +++ .../wwwroot/js/shared/identity-generator/index.mjs | 4 ++++ .../wwwroot/js/shared/password-generator/index.js | 3 +++ .../wwwroot/js/shared/password-generator/index.mjs | 4 ++++ shared/identity-generator/tsup.config.ts | 5 ++++- shared/password-generator/tsup.config.ts | 5 ++++- 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.js b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.js index d94ec7124..448eebed3 100644 --- a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.js +++ b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.js @@ -1,3 +1,6 @@ +// +// This file was automatically generated. Do not edit manually. + "use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; diff --git a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.mjs b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.mjs index 5ac1c0697..880296c87 100644 --- a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.mjs +++ b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/index.mjs @@ -1,3 +1,7 @@ +// +// This file was automatically generated. Do not edit manually. + + // src/utils/UsernameEmailGenerator.ts var _UsernameEmailGenerator = class _UsernameEmailGenerator { constructor() { diff --git a/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.js b/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.js index a62f6fc8c..121901030 100644 --- a/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.js +++ b/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.js @@ -1,3 +1,6 @@ +// +// This file was automatically generated. Do not edit manually. + "use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; diff --git a/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.mjs b/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.mjs index 01610dfba..42fd90732 100644 --- a/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.mjs +++ b/apps/server/AliasVault.Client/wwwroot/js/shared/password-generator/index.mjs @@ -1,3 +1,7 @@ +// +// This file was automatically generated. Do not edit manually. + + // src/utils/PasswordGenerator.ts var PasswordGenerator = class { /** diff --git a/shared/identity-generator/tsup.config.ts b/shared/identity-generator/tsup.config.ts index ecca3c75c..c02d3d9a0 100644 --- a/shared/identity-generator/tsup.config.ts +++ b/shared/identity-generator/tsup.config.ts @@ -8,5 +8,8 @@ export default defineConfig({ clean: true, splitting: false, minify: false, - sourcemap: true + sourcemap: true, + banner: { + js: '// \n// This file was automatically generated. Do not edit manually.\n', + } }); \ No newline at end of file diff --git a/shared/password-generator/tsup.config.ts b/shared/password-generator/tsup.config.ts index ecca3c75c..c02d3d9a0 100644 --- a/shared/password-generator/tsup.config.ts +++ b/shared/password-generator/tsup.config.ts @@ -8,5 +8,8 @@ export default defineConfig({ clean: true, splitting: false, minify: false, - sourcemap: true + sourcemap: true, + banner: { + js: '// \n// This file was automatically generated. Do not edit manually.\n', + } }); \ No newline at end of file