We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8df51ac commit 9c626a9Copy full SHA for 9c626a9
packages/create-svelte/test/check.js
@@ -21,8 +21,10 @@ const overrides = { ...existing_workspace_overrides };
21
await glob(fileURLToPath(new URL('../../../packages', import.meta.url)) + '/*/package.json')
22
).forEach((pkgPath) => {
23
const name = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')).name;
24
- // use `file:` protocol for opting into stricter resolve logic which catches more bugs
25
- overrides[name] = `file:${path.dirname(path.resolve(pkgPath))}`;
+ // use `file:` protocol for opting into stricter resolve logic which catches more bugs,
+ // but only on CI because it doesn't work locally for some reason
26
+ const protocol = process.env.CI ? 'file:' : '';
27
+ overrides[name] = `${protocol}${path.dirname(path.resolve(pkgPath))}`;
28
});
29
30
try {
0 commit comments