{"id":30060086,"url":"https://github.com/tiaanduplessis/next-circular-dependency","last_synced_at":"2025-10-09T07:07:19.338Z","repository":{"id":35599270,"uuid":"218539310","full_name":"tiaanduplessis/next-circular-dependency","owner":"tiaanduplessis","description":"Detect circular dependencies in your Next.js app","archived":false,"fork":false,"pushed_at":"2024-08-11T14:59:23.000Z","size":145,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T10:13:56.011Z","etag":null,"topics":["circular-dependency","next","nextjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiaanduplessis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-30T13:54:15.000Z","updated_at":"2025-03-26T09:00:48.000Z","dependencies_parsed_at":"2024-08-21T19:16:47.600Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/next-circular-dependency","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/next-circular-dependency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fnext-circular-dependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fnext-circular-dependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fnext-circular-dependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fnext-circular-dependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/next-circular-dependency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fnext-circular-dependency/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352343,"owners_count":24402672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circular-dependency","next","nextjs"],"created_at":"2025-08-08T01:41:46.419Z","updated_at":"2025-10-09T07:07:14.274Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# next-circular-dependency\n[![package version](https://img.shields.io/npm/v/next-circular-dependency.svg?style=flat-square)](https://npmjs.org/package/next-circular-dependency)\n[![package downloads](https://img.shields.io/npm/dm/next-circular-dependency.svg?style=flat-square)](https://npmjs.org/package/next-circular-dependency)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/next-circular-dependency.svg?style=flat-square)](https://npmjs.org/package/next-circular-dependency)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n\u003e Detect circular dependencies in your Next.js app\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Install](#install)\n- [Contribute](#contribute)\n- [License](#License)\n\n## Usage\n\n```js\nconst path = require('path')\nconst withCSS = require('@zeit/next-css')\nconst optimizedImages = require('next-optimized-images')\n\nconst withNextCircularDeps = require('next-circular-dependency')\n\nrequire('dotenv').config()\n\nmodule.exports =  withNextCircularDeps(optimizedImages(withCSS({\n  // exclude detection of files based on a RegExp\n  exclude: /a\\.js|node_modules/,\n  // include specific files based on a RegExp\n  include: /dir/,\n  // add errors to webpack instead of warnings\n  failOnError: true,\n  // allow import cycles that include an asyncronous import,\n  // e.g. via import(/* webpackMode: \"weak\" */ './file.js')\n  allowAsyncCycles: false,\n  // set the current working directory for displaying module paths\n  cwd: process.cwd(),\n}))\n)\n\n```\n\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).\n\n```sh\n$ npm install next-circular-dependency\n$ # OR\n$ yarn add next-circular-dependency\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: `git checkout -b my-new-feature`\n2. Commit your changes: `git commit -am \"Add some feature\"`\n3. Push to the branch: `git push origin my-new-feature`\n4. Submit a pull request\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fnext-circular-dependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fnext-circular-dependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fnext-circular-dependency/lists"}