diff --git a/build/components/CandidateBox.d.ts b/build/components/CandidateBox.d.ts index 695ea202..64f0c8b8 100644 --- a/build/components/CandidateBox.d.ts +++ b/build/components/CandidateBox.d.ts @@ -1,4 +1,3 @@ -import "./css/CandidateBox.css"; import Utilities from "../services/Utilities"; import { CandidateBoxParams, CandidateBoxRenderParams, CandidateBoxShowParams, KeyboardOptions } from "./../interfaces"; declare class CandidateBox { diff --git a/build/components/Keyboard.d.ts b/build/components/Keyboard.d.ts index 3173c8b1..184dc131 100644 --- a/build/components/Keyboard.d.ts +++ b/build/components/Keyboard.d.ts @@ -1,4 +1,3 @@ -import "./css/Keyboard.css"; import PhysicalKeyboard from "../services/PhysicalKeyboard"; import Utilities from "../services/Utilities"; import { KeyboardOptions, KeyboardInput, KeyboardButtonElements, KeyboardHandlerEvent, KeyboardElement } from "../interfaces"; diff --git a/package-lock.json b/package-lock.json index 31e63426..ef7a2481 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,7 @@ "postcss-loader": "^8.2.1", "style-loader": "^4.0.0", "terser-webpack-plugin": "^5.6.1", - "typescript": "^5.9.3", + "typescript": "^6.0.3", "url-loader": "^4.1.1", "webpack": "^5.109.0", "webpack-cli": "^6.0.1", @@ -11644,10 +11644,11 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -20598,9 +20599,9 @@ } }, "typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true }, "unicode-canonical-property-names-ecmascript": { diff --git a/package.json b/package.json index f9b7f6f5..0722c28f 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "postcss-loader": "^8.2.1", "style-loader": "^4.0.0", "terser-webpack-plugin": "^5.6.1", - "typescript": "^5.9.3", + "typescript": "^6.0.3", "url-loader": "^4.1.1", "webpack": "^5.109.0", "webpack-cli": "^6.0.1", diff --git a/src/lib/components/CandidateBox.ts b/src/lib/components/CandidateBox.ts index 8c6bbd11..e45f3d1d 100644 --- a/src/lib/components/CandidateBox.ts +++ b/src/lib/components/CandidateBox.ts @@ -1,5 +1,3 @@ -import "./css/CandidateBox.css"; - import Utilities from "../services/Utilities"; import { CandidateBoxParams, diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index 01b377d3..b3b32dd9 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -1,5 +1,3 @@ -import "./css/Keyboard.css"; - import { getDefaultLayout } from "../services/KeyboardLayout"; import PhysicalKeyboard from "../services/PhysicalKeyboard"; import Utilities from "../services/Utilities"; diff --git a/tsconfig.json b/tsconfig.json index 61546d98..dce25d45 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "lib": ["es2020", "dom"], "moduleResolution": "node", "downlevelIteration": true, + "ignoreDeprecations": "6.0", "strict": true }, "include": ["src/lib"], diff --git a/webpack.config.js b/webpack.config.js index 99ce1e45..616d6a31 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,11 @@ const banner = ` module.exports = { mode: "production", - entry: './src/lib/index.ts', + entry: [ + './src/lib/components/css/Keyboard.css', + './src/lib/components/css/CandidateBox.css', + './src/lib/index.ts' + ], target: 'es5', output: { filename: 'index.js',