chore(repo): add debug logging for nx-dev graph (#16507)

This commit is contained in:
Jason Jean 2023-04-24 12:19:05 -04:00 committed by GitHub
parent 8519fbc7a6
commit 929a08ab95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,18 @@
const path = require('path');
const { createGlobPatternsForDependencies } = require('@nx/next/tailwind');
const {
readCachedProjectGraph,
} = require('nx/src/project-graph/project-graph');
if (!createGlobPatternsForDependencies(__dirname).length)
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 = {
experimental: {
optimizeUniversalDefaults: true,