这是indexloc提供的服务,不要输入任何密码
Skip to content

globalDependencies not taken into account for files in the root folder #886

@h22-hub

Description

@h22-hub

What version of Turborepo are you using?

1.1.6

What package manager are you using / does the bug impact?

npm, pnpm

What operating system are you using?

Windows

Describe the Bug

After launching npx create-turbo@latest prj --use-npm then changing turbo.json to add globalDependencies for a file in the root folder, when changing the content of this file, we have a cache hit.

Expected Behavior

We should have a cache miss.

To Reproduce

npx create-turbo@latest prj --use-npm
cd prj
node -e "const c = require('./turbo.json'); c.globalDependencies= ['./file.js','../file.js','../../file.js']; require('fs').writeFileSync('./turbo.json', JSON.stringify(c, null, 2) , 'utf-8');"
echo "foo" > file.js
npm run build
echo "bar" > file.js
npm run build

Last npm run build should not use cache

Metadata

Metadata

Assignees

Labels

kind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions