Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
pnpm add @teambit/bit
should succeed (#4813)
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@pnpm/resolve-dependencies": patch | ||
"pnpm": patch | ||
--- | ||
|
||
Correctly detect repeated dependency sequence during resolution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { prepareEmpty } from '@pnpm/prepare' | ||
import { addDependenciesToPackage } from '@pnpm/core' | ||
import isCI from 'is-ci' | ||
import exists from 'path-exists' | ||
import { testDefaults } from '../utils' | ||
|
||
const testSkipOnCI = isCI ? test.skip : test | ||
|
||
// Looks like GitHub Actions have reduced memory limit for Node.js, | ||
// so it fails in CI at the moment. | ||
testSkipOnCI('a package with a huge amount of circular dependencies and many peer dependencies should successfully be resolved', async () => { | ||
prepareEmpty() | ||
|
||
await addDependenciesToPackage({}, | ||
['@teambit/bit@0.0.745'], | ||
await testDefaults({ | ||
fastUnpack: true, | ||
lockfileOnly: true, | ||
registries: { | ||
'@teambit': 'https://node.bit.dev/', | ||
}, | ||
strictPeerDependencies: false, | ||
}) | ||
) | ||
|
||
expect(await exists('pnpm-lock.yaml')).toBeTruthy() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { nodeIdContainsSequence } from '../lib/nodeIdUtils' | ||
|
||
test('nodeIdContainsSequence()', () => { | ||
expect(nodeIdContainsSequence('>.>b>a>c>b>a>', 'a', 'b')).toBeTruthy() | ||
}) |