{"id":19658392,"url":"https://github.com/cdaringe/snyk-resolve-deps-dep-type-bug","last_synced_at":"2025-09-03T07:41:12.523Z","repository":{"id":142017659,"uuid":"74415856","full_name":"cdaringe/snyk-resolve-deps-dep-type-bug","owner":"cdaringe","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T02:59:39.000Z","size":11,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T01:55:48.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdaringe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-11-21T23:43:07.000Z","updated_at":"2020-07-30T12:38:26.000Z","dependencies_parsed_at":"2024-11-11T15:39:18.184Z","dependency_job_id":"54339001-1fb0-4b42-af7a-0e41bcae27c2","html_url":"https://github.com/cdaringe/snyk-resolve-deps-dep-type-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdaringe/snyk-resolve-deps-dep-type-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsnyk-resolve-deps-dep-type-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsnyk-resolve-deps-dep-type-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsnyk-resolve-deps-dep-type-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsnyk-resolve-deps-dep-type-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/snyk-resolve-deps-dep-type-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fsnyk-resolve-deps-dep-type-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273410261,"owners_count":25100450,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2024-11-11T15:37:27.443Z","updated_at":"2025-09-03T07:41:12.500Z","avatar_url":"https://github.com/cdaringe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# problem statement\n\nconsider this tree:\n\n```\n$ tree _node_modules/\n├── a\n│   ├── index.js\n│   └── package.json // 0.0.2\n└── b\n    ├── index.js\n    ├── node_modules\n    │   └── a\n    │       ├── index.js\n    │       └── package.json // 0.0.1\n    └── package.json\n```\n\nnow consider the package.json.  note that `b` is a `devDependency`. if `b` is a dev dep, `a@0.0.1` should also be a devDep.\n\nsnyk-resolve-deps reports a@0.0.1 as `prod`, even though `devDep` `b` imports it.\n\n## reproduce\n\n- clone\n- do _not_ `npm install`. instead,\n  - `npm install snyk-resolve-deps`\n  - `cp -r _node_modules/* node_modules/`\n\nthis puts our dummy sim into node_modules for demonstration purposes\n\n- run `node index.js`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fsnyk-resolve-deps-dep-type-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fsnyk-resolve-deps-dep-type-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fsnyk-resolve-deps-dep-type-bug/lists"}