From a8145adf783020c2699e7c50acf7d5860671a904 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Wed, 24 Jan 2024 11:22:10 +0800 Subject: [PATCH] chore: relative path --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9945a1f..22e4cf7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -135,7 +135,7 @@ export class EntryGenerator { public run() { const collection = this.collect(); const exportCodes = collection.exportFiles - .filter(path => relative(collection.configurationFilepath, path) !== '') + .filter(path => posix.relative(collection.configurationFilepath, path) !== '') .map(path => { return `export * from './${posix.relative(this.sourceDir, path) .replace(extname(path), '')