Skip to content

Commit

Permalink
Update config.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonrt committed Nov 30, 2024
1 parent ab3929b commit 401cb2c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rollup.config.mjs → rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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/'));
}

Expand All @@ -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/'));
}

Expand Down

0 comments on commit 401cb2c

Please sign in to comment.