fix(config-lerna-scopes): remove deprecated @lerna/project dependency #4284
Annotations
3 errors
Run Tests:
@commitlint/config-lerna-scopes/index.js#L20
ProjectGraphError: Failed to process project graph.
❯ validateAndNormalizeProjectRootMap node_modules/nx/src/project-graph/utils/project-configuration-utils.js:455:15
❯ mergeCreateNodesResults node_modules/nx/src/project-graph/utils/project-configuration-utils.js:341:9
❯ node_modules/nx/src/project-graph/utils/project-configuration-utils.js:285:85
❯ buildProjectGraphAndSourceMapsWithoutDaemon node_modules/nx/src/project-graph/project-graph.js:87:31
❯ createProjectGraphAndSourceMapsAsync node_modules/nx/src/project-graph/project-graph.js:271:25
❯ createProjectGraphAsync node_modules/nx/src/project-graph/project-graph.js:219:39
❯ detectProjects node_modules/lerna/dist/utils/index.js:3729:25
❯ getPackages @commitlint/config-lerna-scopes/index.js:20:23
❯ execute @commitlint/execute-rule/src/index.ts:20:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'MultipleProjectsWithSameNameError: The following projects are defined in multiple locations:\n- a: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/a\n - nx/a\n- b: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/b\n - nx/b\n- c: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/c\n - nx/c\n- d: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/d\n - nx/d\n- e: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/e\n - nx/e\n- f: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/f\n - nx/f\n- g: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/g\n - nx/g\n- h: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/h\n - nx/h\n\nTo fix this, set a unique name for each project in a project.json inside the project\'s root. If the project does not currently have a project.json, you can create one that contains only a name.\n at validateAndNormalizeProjectRootMap (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:455:15)\n at mergeCreateNodesResults (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:341:9)\n at /__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:285:85\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at buildProjectGraphAndSourceMapsWithoutDaemon (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:87:31)\n at createProjectGraphAndSourceMapsAsync (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:271:25)\n at createProjectGraphAsync (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:219:39)\n at detectProjects (/__w/commitlint/commitlint/node_modules/lerna/dist/utils/index.js:3729:25)\n at getPackages (/__w/commitlint/commitlint/@commitlint/config-lerna-scopes/index.js:20:23)\n at execute (/__w/commitlint/commitlint/@commitlint/execute-rule/src/index.ts:20:16)', message: 'The following projects are defined in multiple locations:\n- a: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/a\n - nx/a\n- b: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/b\n - nx/b\n- c: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/c\n - nx/c\n- d: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/d\n - nx/d\n- e: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/e\n - nx/e\n- f: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/f\n - nx/f\n- g: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/g\n - nx/g\n- h: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/h\n - nx/h\n\nTo fix this, set a unique name for each project in a project.json inside the project\'s root. If the project does not currently have a project.json, you can create one that contains only a name.', conflicts: { constructor: 'Function<Map>', get: 'Function<get>', set: 'Function<set>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', keys: 'Function<keys>', size: 8, values: 'Function<values>' }, projects: { commitlint: { root: '@alias/commitlint', sourceRoot: '@alias/commitlin
|
Run Tests:
@commitlint/config-lerna-scopes/index.js#L20
ProjectGraphError: Failed to process project graph.
❯ validateAndNormalizeProjectRootMap node_modules/nx/src/project-graph/utils/project-configuration-utils.js:455:15
❯ mergeCreateNodesResults node_modules/nx/src/project-graph/utils/project-configuration-utils.js:341:9
❯ node_modules/nx/src/project-graph/utils/project-configuration-utils.js:285:85
❯ buildProjectGraphAndSourceMapsWithoutDaemon node_modules/nx/src/project-graph/project-graph.js:87:31
❯ createProjectGraphAndSourceMapsAsync node_modules/nx/src/project-graph/project-graph.js:271:25
❯ createProjectGraphAsync node_modules/nx/src/project-graph/project-graph.js:219:39
❯ detectProjects node_modules/lerna/dist/utils/index.js:3729:25
❯ getPackages @commitlint/config-lerna-scopes/index.js:20:23
❯ execute @commitlint/execute-rule/src/index.ts:20:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { stack: 'MultipleProjectsWithSameNameError: The following projects are defined in multiple locations:\n- a: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/a\n - nx/a\n- b: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/b\n - nx/b\n- c: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/c\n - nx/c\n- d: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/d\n - nx/d\n- e: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/e\n - nx/e\n- f: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/f\n - nx/f\n- g: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/g\n - nx/g\n- h: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/h\n - nx/h\n\nTo fix this, set a unique name for each project in a project.json inside the project\'s root. If the project does not currently have a project.json, you can create one that contains only a name.\n at validateAndNormalizeProjectRootMap (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:455:15)\n at mergeCreateNodesResults (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:341:9)\n at /__w/commitlint/commitlint/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:285:85\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at buildProjectGraphAndSourceMapsWithoutDaemon (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:87:31)\n at createProjectGraphAndSourceMapsAsync (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:271:25)\n at createProjectGraphAsync (/__w/commitlint/commitlint/node_modules/nx/src/project-graph/project-graph.js:219:39)\n at detectProjects (/__w/commitlint/commitlint/node_modules/lerna/dist/utils/index.js:3729:25)\n at getPackages (/__w/commitlint/commitlint/@commitlint/config-lerna-scopes/index.js:20:23)\n at execute (/__w/commitlint/commitlint/@commitlint/execute-rule/src/index.ts:20:16)', message: 'The following projects are defined in multiple locations:\n- a: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/a\n - nx/a\n- b: \n - @commitlint/config-nx-scopes/fixtures/basic/nx/b\n - nx/b\n- c: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/c\n - nx/c\n- d: \n - @commitlint/config-nx-scopes/fixtures/nx14/nx/d\n - nx/d\n- e: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/e\n - nx/e\n- f: \n - @commitlint/config-nx-scopes/fixtures/nx15/nx/f\n - nx/f\n- g: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/g\n - nx/g\n- h: \n - @commitlint/config-nx-scopes/fixtures/nx17/nx/h\n - nx/h\n\nTo fix this, set a unique name for each project in a project.json inside the project\'s root. If the project does not currently have a project.json, you can create one that contains only a name.', conflicts: { constructor: 'Function<Map>', get: 'Function<get>', set: 'Function<set>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', keys: 'Function<keys>', size: 8, values: 'Function<values>' }, projects: { commitlint: { root: '@alias/commitlint', sourceRoot: '@alias/commitlin
|
Run Tests
Process completed with exit code 1.
|
Loading