From 401cb2c89de3cee9623a1d35006d58ebd93bebf2 Mon Sep 17 00:00:00 2001 From: typhonrt Date: Sat, 30 Nov 2024 15:49:54 -0800 Subject: [PATCH] Update config. --- rollup.config.mjs => rollup.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) rename rollup.config.mjs => rollup.config.js (92%) diff --git a/rollup.config.mjs b/rollup.config.js similarity index 92% rename from rollup.config.mjs rename to rollup.config.js index c7235e7..24add79 100644 --- a/rollup.config.mjs +++ b/rollup.config.js @@ -92,6 +92,7 @@ for (const config of rollupPluginsNPM) let fileData = fs.readFileSync(copyDTS, 'utf-8'); // For @typhonjs-svelte/runtime-base + fileData = fileData.replaceAll('_typhonjs_svelte_runtime_base_', '_typhonjs_fvtt_runtime_'); fileData = fileData.replaceAll('@typhonjs-svelte/runtime-base/', '@typhonjs-fvtt/runtime/'); // For @typhonjs-fvtt/svelte @@ -134,6 +135,7 @@ for (const appFile of appFiles) fileData = fileData.replaceAll('#runtime/', '@typhonjs-fvtt/runtime/'); // For types + fileData = fileData.replaceAll('_typhonjs_svelte_runtime_base_', '_typhonjs_fvtt_runtime_'); fileData = fileData.replaceAll('_typhonjs_fvtt_svelte_', '_typhonjs_fvtt_runtime_svelte_'); fs.writeFileSync(appFile, fileData); @@ -155,6 +157,10 @@ for (const compFile of compFiles) fileData = fileData.replaceAll('@typhonjs-svelte/runtime-base/', '@typhonjs-fvtt/runtime/'); + // For types + fileData = fileData.replaceAll('_typhonjs_svelte_runtime_base_', '_typhonjs_fvtt_runtime_'); + fileData = fileData.replaceAll('_typhonjs_fvtt_svelte_', '_typhonjs_fvtt_runtime_svelte_'); + fs.writeFileSync(compFile, fileData.replaceAll('@typhonjs-fvtt/svelte/', '@typhonjs-fvtt/runtime/svelte/')); } @@ -174,6 +180,10 @@ for (const gsapFile of gsapFiles) fileData = fileData.replaceAll('@typhonjs-svelte/runtime-base/', '@typhonjs-fvtt/runtime/'); + // For types + fileData = fileData.replaceAll('_typhonjs_svelte_runtime_base_', '_typhonjs_fvtt_runtime_'); + fileData = fileData.replaceAll('_typhonjs_fvtt_svelte_', '_typhonjs_fvtt_runtime_svelte_'); + fs.writeFileSync(gsapFile, fileData.replaceAll('@typhonjs-fvtt/svelte/', '@typhonjs-fvtt/runtime/svelte/')); }