Skip to content

Commit

Permalink
fix: config.root for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
kumv-net committed Nov 19, 2023
1 parent 105b1b1 commit 91da9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function scanDirExports(dirs: string[], root: string) {
const isWindows = os.platform() === 'win32';

Check failure on line 36 in src/core/ctx.ts

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 0 spaces but found 2

Check failure on line 36 in src/core/ctx.ts

View workflow job for this annotation

GitHub Actions / lint

Extra semicolon

export function createContext(options: Options = {}, root = process.cwd()) {
root=isWindows?slash(root):root;
root = isWindows ? slash(root) : root;

Check failure on line 39 in src/core/ctx.ts

View workflow job for this annotation

GitHub Actions / lint

Extra semicolon

const {
dts: preferDTS = isPackageExists('typescript'),
Expand Down

0 comments on commit 91da9d3

Please sign in to comment.