Skip to content

feat: support auto detect cjs and json config file #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 9, 2023

Conversation

MH4GF
Copy link
Owner

@MH4GF MH4GF commented Apr 9, 2023

closes #227

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2023

dependency-cruiser report

visualize dependenices of changed files.

flowchart LR

subgraph 0["src"]
1["options.ts"]
subgraph 2["options"]
3["filterSupportedFiles.ts"]
4["formatFocusOption.ts"]
5["getConfigFilePath.ts"]
6["validateOptions.ts"]
end
end
1-->3
1-->4
1-->5
1-->6

style 1 fill:lime,color:black
style 5 fill:lime,color:black
Loading

Report generated by dependency-cruiser report action 821be2d


working directory: .

execute command
yarn run -s depcruise --output-type mermaid --config .dependency-cruiser.js --focus "^dist/index.js|^src/options.ts|^src/options/getConfigFilePath.ts|^test/esm-sample/.dependency-cruiser.cjs|^test/esm-sample/index.js|^test/sample/index.js" dist/index.js src/options.ts src/options/getConfigFilePath.ts test/esm-sample/.dependency-cruiser.cjs test/esm-sample/index.js test/sample/index.js

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2023

dependency-cruiser report

visualize dependenices of changed files.

flowchart LR

0["index.js"]


style 0 fill:lime,color:black
Loading

Report generated by dependency-cruiser report action 821be2d


working directory: test/sample

execute command
yarn run -s depcruise --output-type mermaid --config .dependency-cruiser.js --focus "^index.js" index.js

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2023

dependency-cruiser report

visualize dependenices of changed files.

flowchart LR

0[".dependency-cruiser.cjs"]
1["index.js"]


style 0 fill:lime,color:black
style 1 fill:lime,color:black
Loading

Report generated by dependency-cruiser report action 821be2d


working directory: test/esm-sample

execute command
yarn run -s depcruise --output-type mermaid --config .dependency-cruiser.cjs --focus "^.dependency-cruiser.cjs|^index.js" .dependency-cruiser.cjs index.js

@MH4GF MH4GF merged commit e81bb32 into main Apr 9, 2023
@MH4GF MH4GF deleted the support-auto-detect-cjs-file branch April 9, 2023 07:34
@MH4GF MH4GF changed the title support auto detect cjs file feat: support auto detect cjs and json config file Apr 9, 2023
@MH4GF MH4GF self-assigned this Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: detect config path even if is .dependency-cruiser.cjs
1 participant