Skip to content

Commit

Permalink
chore(repo): add debug logging for nx-dev graph (#16507)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Apr 24, 2023
1 parent 8519fbc commit 929a08a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nx-dev/nx-dev/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

1 comment on commit 929a08a

@vercel
Copy link

@vercel vercel bot commented on 929a08a Apr 24, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.