mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
24 lines
748 B
JavaScript
Executable file
24 lines
748 B
JavaScript
Executable file
// tsup doesn't replace npm dependency aliases in the dist files, so we have to do it manually
|
|
|
|
const replace = require('replace-in-file');
|
|
|
|
console.log('Replacing @tanstack/react-query-v5');
|
|
replace.sync({
|
|
files: 'dist/runtime-v5/react*(.d.ts|.d.mts|.js|.mjs)',
|
|
from: /@tanstack\/react-query-v5/g,
|
|
to: '@tanstack/react-query',
|
|
});
|
|
|
|
console.log('Replacing @tanstack/svelte-query-v5');
|
|
replace.sync({
|
|
files: 'dist/runtime-v5/svelte*(.d.ts|.d.mts|.js|.mjs)',
|
|
from: /@tanstack\/svelte-query-v5/g,
|
|
to: '@tanstack/svelte-query',
|
|
});
|
|
|
|
console.log('Replacing @tanstack/vue-query-v5');
|
|
replace.sync({
|
|
files: 'dist/runtime-v5/vue*(.d.ts|.d.mts|.js|.mjs)',
|
|
from: /@tanstack\/vue-query-v5/g,
|
|
to: '@tanstack/vue-query',
|
|
});
|