diff --git a/src/content-script/content-script.ts b/src/content-script.ts similarity index 82% rename from src/content-script/content-script.ts rename to src/content-script.ts index c033efa..4e3b2b3 100644 --- a/src/content-script/content-script.ts +++ b/src/content-script.ts @@ -1,6 +1,6 @@ -import { SupportQuery, Supported, TimeCardOptionsMessage } from '../time-card.d' -import fillOutForm from './lib/fill-form' -import { navigateToAddTimeCard, isSupportedPage } from './lib/navigate-to-time-cards' +import { SupportQuery, Supported, TimeCardOptionsMessage } from './time-card' +import fillOutForm from './content-script/fill-form' +import { navigateToAddTimeCard, isSupportedPage } from './content-script/navigate-to-time-cards' chrome.runtime.onMessage.addListener( async function(request: TimeCardOptionsMessage | SupportQuery, _, sendResponse) { diff --git a/src/content-script/lib/domQuery.ts b/src/content-script/domQuery.ts similarity index 100% rename from src/content-script/lib/domQuery.ts rename to src/content-script/domQuery.ts diff --git a/src/content-script/lib/fill-form.ts b/src/content-script/fill-form.ts similarity index 98% rename from src/content-script/lib/fill-form.ts rename to src/content-script/fill-form.ts index 53b88e5..0e678c6 100644 --- a/src/content-script/lib/fill-form.ts +++ b/src/content-script/fill-form.ts @@ -1,4 +1,4 @@ -import { TimeCardOptions } from '../../time-card.d' +import { TimeCardOptions } from '../time-card' import { waitForElms, findOne, xpathSnapshotToArray } from './domQuery'; function sleep(ms: number) { diff --git a/src/content-script/lib/navigate-to-time-cards.ts b/src/content-script/navigate-to-time-cards.ts similarity index 100% rename from src/content-script/lib/navigate-to-time-cards.ts rename to src/content-script/navigate-to-time-cards.ts diff --git a/webpack.config.js b/webpack.config.js index 4673a0d..d72b127 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: { - 'content-script': './src/content-script/content-script.ts', + 'content-script': './src/content-script.ts', 'service-worker': './src/service-worker.ts', 'settings': './src/settings-page/settings.js', },