Skip to content

Commit 0e5b953

Browse files
committed
fix: postpackage script
1 parent d04fd68 commit 0e5b953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/postpackage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const transformFolder = async ({ folders, files, depth }) => {
2525
files.map(async (f) => {
2626
const filepath = path.join(CWD, f);
2727
const contents = await fs.readFile(filepath, 'utf-8');
28-
const base = depth ? [...Array(depth + 1).fill('..')].join('/') : './';
28+
const base = depth ? [...Array(depth).fill('..')].join('/') : './';
2929
const updated = contents
3030
.replace(/from '\$lib(.*)'/g, `from '${base}$1'`)
3131
.replace(/src\/lib\//g, '');

0 commit comments

Comments
 (0)