From 2bbd13139c8dfda950a815055088a49ae55bec6d Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Mon, 8 Jul 2024 12:32:23 +0800 Subject: [PATCH] f --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 563d8d8..0161bf9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ import { writeFileSync, readFileSync, readdirSync, statSync, copyFileSync } from 'node:fs' import path from 'node:path' -const cwd = process.cwd() + '/'; +const cwd = process.cwd() + path.sep; const pkg = JSON.parse(readFileSync(path.join(cwd, 'package.json'), 'utf-8')); // make sure commonjs *.d.ts can import types