Skip to content

Commit

Permalink
add some path normalization, why not
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Apr 10, 2024
1 parent b569ea7 commit 640fad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/docs/readme/output-docs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join, relative } from '@utils';
import { join, normalizePath, relative } from '@utils';

import type * as d from '../../../declarations';
import { AUTO_GENERATE_COMMENT } from '../constants';
Expand Down Expand Up @@ -47,7 +47,7 @@ export const generateReadme = async (
const readmeOutputPath = join(readmeOutput.dir, relativeReadmePath);

const currentReadmeContent =
readmeOutput.dir !== config.srcDir
normalizePath(readmeOutput.dir) !== normalizePath(config.srcDir)
? // The user set a custom `.dir` property, which is where we're going
// to write the updated README. We need to read the non-automatically
// generated content from that file and preserve that.
Expand Down

0 comments on commit 640fad4

Please sign in to comment.