From 5697d98862efa81a8ad3651e9ef68d754a58ea90 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 27 Jun 2024 11:46:47 +0300 Subject: treewide: fix package structure The static files need to be inside the module to be installed correctly as part of the module. --- frontend/i18next-parser.config.mjs | 2 +- frontend/rollup.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend') diff --git a/frontend/i18next-parser.config.mjs b/frontend/i18next-parser.config.mjs index 8de58cfc..0e36964d 100644 --- a/frontend/i18next-parser.config.mjs +++ b/frontend/i18next-parser.config.mjs @@ -43,7 +43,7 @@ export default { // Namespace separator used in your translation keys // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance. - output: '../backend/locales/$LOCALE.json', + output: '../backend/decky_loader/locales/$LOCALE.json', // Supports $LOCALE and $NAMESPACE injection // Supports JSON (.json) and YAML (.yml) file formats // Where to write the locale files relative to process.cwd() diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index e86fbf07..911cf06d 100644 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -14,7 +14,7 @@ const hiddenWarnings = ['THIS_IS_UNDEFINED', 'EVAL']; export default defineConfig({ input: 'src/index.ts', plugins: [ - del({ targets: '../backend/static/*', force: true }), + del({ targets: '../backend/decky_loader/static/*', force: true }), commonjs(), nodeResolve({ browser: true, @@ -38,7 +38,7 @@ export default defineConfig({ ], preserveEntrySignatures: false, output: { - dir: '../backend/static', + dir: '../backend/decky_loader/static', format: 'esm', chunkFileNames: (chunkInfo) => { return 'chunk-[hash].js'; -- cgit v1.2.3