Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Nov 15, 2024
1 parent 8156b2f commit e37c449
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/replace-files-for-deno.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ async function start() {
const pluginFiles = await glob(['./src/plugins/*.ts']);

await Promise.all(
files.map((item) => {
const content = fs.readFile(item, 'utf8');
files.map(async (item) => {
const content = await fs.readFile(item, 'utf8');
return fs.writeFile(item, content.replace(/'xior\/utils'/g, "'./utils'"));
})
);

await Promise.all(
pluginFiles.map((item) => {
const content = fs.readFile(item, 'utf8');
pluginFiles.map(async (item) => {
const content = await fs.readFile(item, 'utf8');
return fs.writeFile(item, content.replace(/'xior\/utils'/g, "'../utils'"));
})
);
Expand Down

0 comments on commit e37c449

Please sign in to comment.