Skip to content

Ensure we store and pass `storybookBaseDir` as a unix path everywhere

Codacy Production / Codacy Static Code Analysis required action Dec 2, 2024 in 0s

1 new issue (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 1
           

Complexity increasing per file
==============================
- node-src/lib/posix.ts  1
- node-src/git/execGit.test.ts  1
- node-src/git/execGit.ts  6
- node-src/lib/getStorybookBaseDirectory.test.ts  1
- node-src/lib/getStorybookBaseDirectory.ts  5
- node-src/lib/getHasRouter.test.ts  1
- node-src/lib/getHasRouter.ts  2
- node-src/lib/getDependentStoryFiles.test.ts  1
         

Complexity decreasing per file
==============================
+ node-src/tasks/initialize.ts  -2
         

See the complete overview on Codacy

Annotations

Check warning on line 28 in node-src/lib/getStorybookBaseDirectory.ts

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

node-src/lib/getStorybookBaseDirectory.ts#L28

Detected possible user input going into a `path.join` or `path.resolve` function.