chore(repo): add debug logging for nx-dev graph (#16507)
This commit is contained in:
parent
8519fbc7a6
commit
929a08ab95
@ -1,9 +1,18 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { createGlobPatternsForDependencies } = require('@nx/next/tailwind');
|
const { createGlobPatternsForDependencies } = require('@nx/next/tailwind');
|
||||||
|
const {
|
||||||
|
readCachedProjectGraph,
|
||||||
|
} = require('nx/src/project-graph/project-graph');
|
||||||
|
|
||||||
if (!createGlobPatternsForDependencies(__dirname).length)
|
if (!createGlobPatternsForDependencies(__dirname).length)
|
||||||
throw Error('GRAPH ISSUE: No dependency found when many are expected.');
|
throw Error('GRAPH ISSUE: No dependency found when many are expected.');
|
||||||
|
|
||||||
|
// TODO(@FrozenPandaz): remove this once the issue is solved
|
||||||
|
const projectGraph = readCachedProjectGraph();
|
||||||
|
console.log({ projectGraph });
|
||||||
|
console.log({ nodes: projectGraph.nodes });
|
||||||
|
console.log({ dependencies: projectGraph.dependencies });
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
experimental: {
|
experimental: {
|
||||||
optimizeUniversalDefaults: true,
|
optimizeUniversalDefaults: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user