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 e7d7f96 commit 19d576f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/replace-files-for-deno.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function start() {
content = content.replace(/from '\.(.*)';/g, (a, b, c) => {
return "from '." + b + ".ts';";
});
content = content.replace(/from 'xior';/g, "from './index.ts'");
return fs.writeFile(item, content);
})
);
Expand All @@ -24,6 +25,7 @@ async function start() {
content = content.replace(/from '\.(.*)';/g, (a, b, c) => {
return "from '." + b + ".ts';";
});
content = content.replace(/from 'xior';/g, "from '../index.ts'");
return fs.writeFile(item, content);
})
);
Expand All @@ -36,6 +38,7 @@ async function start() {
content = content.replace(/from '\.(.*)';/g, (a, b, c) => {
return "from '." + b + ".ts';";
});
content = content.replace(/from 'xior';/g, "from '../../index.ts'");
return fs.writeFile(item, content);
})
);
Expand Down

0 comments on commit 19d576f

Please sign in to comment.