Skip to content

Commit 4fa38f6

Browse files
authored
fix: missing next config & wrong path to prebuild visualizer web app, unify next version (#90)
1 parent 0112109 commit 4fa38f6

File tree

7 files changed

+174
-179
lines changed

7 files changed

+174
-179
lines changed

.changeset/stupid-chefs-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'license-kit': patch
3+
---
4+
5+
Resolve problem with missing next config & wrong path to prebuild visualizer web app, unify next version in license-kit and visualizer packages.

packages/license-kit/next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import("next").NextConfig} */
2+
const nextConfig = {
3+
distDir: 'visualizer-build',
4+
};
5+
6+
module.exports = nextConfig;

packages/license-kit/next.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/license-kit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"src",
1919
"build",
2020
"visualizer-build",
21+
"next.config.js",
2122
"!**/__tests__",
2223
"!**/__fixtures__",
2324
"!**/__mocks__",
@@ -70,7 +71,7 @@
7071
"commander": "^14.0.0",
7172
"express": "^5.1.0",
7273
"helmet": "^8.1.0",
73-
"next": "^15.3.4",
74+
"next": "15.4.6",
7475
"open": "^10.1.2",
7576
"signale": "^1.4.0",
7677
"table": "^6.9.0",

packages/license-kit/src/commands/visualize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { type LicensesMappingResult, generateLicensesMapping } from '../logic/ge
1414
import { curryCommonScanOptions, validateCommonScanOptions } from '../utils/commandUtils';
1515
import { getLockfilePath, getPackageLockChecksum } from '../utils/projectUtils';
1616

17-
const isDev = process.env.NODE_ENV !== 'production';
17+
const isDev = !!process.env.NODE_ENV && process.env.NODE_ENV !== 'production';
1818

1919
const visualizerSignale = new Signale({ scope: 'visualize' });
2020
const sseSignale = new Signale({ scope: 'SSE' });

packages/visualizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"immer": "^10.1.1",
2525
"lodash": "^4.17.21",
2626
"motion": "^12.23.0",
27-
"next": "^15.3.4",
27+
"next": "15.4.6",
2828
"notistack": "^3.0.2",
2929
"react": "^19.0.0",
3030
"react-chartjs-2": "^5.3.0",

0 commit comments

Comments
 (0)