Refactor folder structure to prevent having src output dir (#541)

This commit is contained in:
Leendert de Borst
2025-02-05 13:57:49 +01:00
parent 267cd6e9f6
commit c97b049ed0
5 changed files with 14 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
import { Vault } from './types/webapi/Vault';
import EncryptionUtility from './utils/EncryptionUtility';
import SqliteClient from './utils/SqliteClient';
import { WebApiService } from './utils/WebApiService';
import { PasswordGenerator } from './generators/Password/PasswordGenerator';
import { Vault } from './src/types/webapi/Vault';
import EncryptionUtility from './src/utils/EncryptionUtility';
import SqliteClient from './src/utils/SqliteClient';
import { WebApiService } from './src/utils/WebApiService';
import { PasswordGenerator } from './src/generators/Password/PasswordGenerator';
let vaultState: {
derivedKey: string | null;

View File

@@ -1,7 +1,7 @@
import { FormDetector } from './utils/form-detector/FormDetector';
import { Credential } from './types/Credential';
import { IdentityGeneratorEn } from './generators/Identity/implementations/IdentityGeneratorEn';
import { PasswordGenerator } from './generators/Password/PasswordGenerator';
import { FormDetector } from './src/utils/form-detector/FormDetector';
import { Credential } from './src/types/Credential';
import { IdentityGeneratorEn } from './src/generators/Identity/implementations/IdentityGeneratorEn';
import { PasswordGenerator } from './src/generators/Password/PasswordGenerator';
type CredentialResponse = {
status: 'OK' | 'LOCKED';

View File

@@ -19,7 +19,7 @@
"512": "assets/icons/icon-512.png"
},
"background": {
"service_worker": "src/background.ts",
"service_worker": "background.ts",
"type": "module"
},
"permissions": [
@@ -31,7 +31,7 @@
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["src/contentScript.ts"],
"js": ["contentScript.ts"],
"css": ["src/styles/contentScript.css"]
}
],

View File

@@ -1,7 +1,7 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/contentScript.ts",
"./contentScript.ts",
],
theme: {
extend: {},

View File

@@ -11,7 +11,7 @@ export default defineConfig({
react(),
dictionaryLoader(),
webExtension({
manifest: 'src/manifest.json',
manifest: 'manifest.json',
}),
viteStaticCopy({
targets: [
@@ -25,7 +25,7 @@ export default defineConfig({
},
{
src: 'node_modules/sql.js/dist/sql-wasm.wasm',
dest: 'src/src'
dest: 'src'
}
]
})