chore(nx-dev): throw error if no dependency found when expected (#15272)

This commit is contained in:
Benjamin Cabanes 2023-02-26 10:02:26 -05:00 committed by GitHub
parent 3c50474f40
commit bdb454d28e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
const path = require('path'); const path = require('path');
const { createGlobPatternsForDependencies } = require('@nrwl/next/tailwind'); const { createGlobPatternsForDependencies } = require('@nrwl/next/tailwind');
if (!createGlobPatternsForDependencies(__dirname).length)
throw Error('GRAPH ISSUE: No dependency found when many are expected.');
module.exports = { module.exports = {
experimental: { experimental: {
optimizeUniversalDefaults: true, optimizeUniversalDefaults: true,