Skip to content

Commit 137f06a

Browse files
committed
fix(check-plugin-id): 🔧 Add check for node_development in findPluginPath
1 parent 2a84f47 commit 137f06a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vitnode/src/api/lib/check-plugin-id.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { existsSync, readFileSync } from 'fs';
22
import { join, resolve } from 'path';
33

4+
import { CONFIG } from '../../lib/config';
5+
46
export interface PackageJSON {
57
dependencies?: Record<string, string>;
68
devDependencies?: Record<string, string>;
@@ -31,6 +33,8 @@ export const checkPluginId = (pluginName: string): null | PackageJSON => {
3133
};
3234

3335
const findPluginPath = (pluginName: string): null | string => {
36+
if (CONFIG.node_development) return null;
37+
3438
const cwd = process.cwd();
3539
const monorepoRoot = findMonorepoRoot(cwd);
3640

0 commit comments

Comments
 (0)