From 5eba1f11f284c69208b4167e5188085028f7335c Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Wed, 6 Nov 2024 15:24:00 +0100 Subject: [PATCH] chore(ts): allow import .ts extension Signed-off-by: Grigorii K. Shartsev --- REUSE.toml | 2 +- tsconfig.json | 1 + tsconfig.webpack.json | 6 ------ webpack.config.js | 6 ------ 4 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 tsconfig.webpack.json diff --git a/REUSE.toml b/REUSE.toml index 249358c752..5ea62877d1 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -24,7 +24,7 @@ SPDX-FileCopyrightText = "2020-2024 Nextcloud translators" SPDX-License-Identifier = "AGPL-3.0-or-later" [[annotations]] -path = ["tsconfig.json", "tsconfig.webpack.json", "cypress/tsconfig.json", "tests/tsconfig.json"] +path = ["tsconfig.json", "cypress/tsconfig.json", "tests/tsconfig.json"] precedence = "aggregate" SPDX-FileCopyrightText = "2022-2024 Nextcloud GmbH and Nextcloud contributors" SPDX-License-Identifier = "CC0-1.0" diff --git a/tsconfig.json b/tsconfig.json index 90201cee16..62fd35358a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "include": ["./src/**/*.ts"], "exclude": ["./src/**/*.cy.ts"], "compilerOptions": { + "allowImportingTsExtensions": true, "allowSyntheticDefaultImports": true, "moduleResolution": "Bundler", "target": "ESNext", diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json deleted file mode 100644 index b9471fedc3..0000000000 --- a/tsconfig.webpack.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false, - } -} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index f42b25ba37..5c92f3a082 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -45,12 +45,6 @@ webpackRules.RULE_TS = { test: /\.tsx?$/, use: [ 'babel-loader', - { - loader: 'ts-loader', - options: { - configFile: 'tsconfig.webpack.json', - }, - }, ], }