Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Silence Lerna's cycle dependency warnings #5612

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Silence Lerna's cycle dependency warnings #5612

merged 2 commits into from
Oct 12, 2022

Conversation

cds-amal
Copy link
Member

@cds-amal cds-amal commented Oct 11, 2022

Remove @truffle/db's devDep on @truffle/migrate to get rid of lerna's cycle dep error.
Note: uses CommonJS import to make get past compile and test.

This dependency exists only for a single integration test in truffle-db, and we feel it's better to not impact Lerna's dependency/ordering until we remove the circular dependency in the near future.

@cds-amal cds-amal changed the title Silent db dependency warning for Lerna Silence Lerna's cycle dependency warnings Oct 11, 2022
@cds-amal cds-amal marked this pull request as ready for review October 11, 2022 23:01
Copy link
Contributor

@cliffoo cliffoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -6,7 +6,7 @@ import gql from "graphql-tag";
import { connect } from "@truffle/db";
import { ArtifactsLoader } from "./artifacts";
import { generateId } from "@truffle/db/system";
import Migrate from "@truffle/migrate";
Copy link
Contributor

@cliffoo cliffoo Oct 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommonJS import to make get past compile and test

This fails with import?

@cds-amal cds-amal merged commit 42d238d into develop Oct 12, 2022
@cds-amal cds-amal deleted the hush-migrate branch October 12, 2022 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants