From d903afab784c585cfb71c54a2e06a3f9319a71c4 Mon Sep 17 00:00:00 2001 From: Jonas Pfalzgraf Date: Mon, 23 Jan 2023 14:41:48 +0100 Subject: [PATCH] implementing source --- package.json | 2 +- src/app.ts | 4 ++-- src/settings.ts | 4 ++-- tsconfig.json | 6 +++--- webpack.config.background.cjs | 2 +- webpack.config.settings.cjs | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 027dfbe..3bd50a2 100644 --- a/package.json +++ b/package.json @@ -47,4 +47,4 @@ "dependencies": { "@webcomponents/custom-elements": "^1.5.1" } -} +} \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 727e9f0..3dc1fa6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,4 +1,4 @@ -import { Session } from "./classes/session.js" +import { Session } from "./classes/session" class App { @@ -27,4 +27,4 @@ class App { } } -new App(); \ No newline at end of file +new App(); diff --git a/src/settings.ts b/src/settings.ts index 8e0af66..60538bd 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,5 +1,5 @@ -import { Session } from "./classes/session.js"; -import { BasicButton } from "./components/button.js"; +import { Session } from "./classes/session"; +import { BasicButton } from "./components/button"; class Settings { diff --git a/tsconfig.json b/tsconfig.json index 324a44d..3e8038b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,8 +10,8 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./public/js/app.js", /* Concatenate and emit output to single file. */ "outDir": "./dist/js/" /* Redirect output structure to the directory. */, @@ -26,7 +26,7 @@ "moduleResolution": "node", /* Strict Type-Checking Options */ "strict": true /* Enable all strict type-checking options. */, - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ // "strictNullChecks": true, /* Enable strict null checks. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ diff --git a/webpack.config.background.cjs b/webpack.config.background.cjs index 875ade4..7102629 100644 --- a/webpack.config.background.cjs +++ b/webpack.config.background.cjs @@ -1,7 +1,7 @@ const path = require('path'); module.exports = { - entry: './src/app.ts', + entry: './src/background.ts', mode: 'production', devtool: 'source-map', module: { diff --git a/webpack.config.settings.cjs b/webpack.config.settings.cjs index 843cd74..e8e1821 100644 --- a/webpack.config.settings.cjs +++ b/webpack.config.settings.cjs @@ -1,7 +1,7 @@ const path = require('path'); module.exports = { - entry: './src/app.ts', + entry: './src/settings.ts', mode: 'production', devtool: 'source-map', module: {