Skip to content

Commit

Permalink
tracked TODO item
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Mar 5, 2022
1 parent c209a60 commit 459235d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/cli/src/plugins/resource/plugin-node-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const walkPackageJson = async (packageJson = {}) => {
// and walk its package.json for its dependencies

for (const dependency of Object.keys(packageJson.dependencies || {})) {
// TODO should NOT be hardcoded to process.cwd()
const dependencyPackageRootPath = path.join(process.cwd(), 'node_modules', dependency);
const dependencyPackageJsonPath = path.join(dependencyPackageRootPath, 'package.json');
const dependencyPackageJson = JSON.parse(fs.readFileSync(dependencyPackageJsonPath, 'utf-8'));
Expand Down

0 comments on commit 459235d

Please sign in to comment.