We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a84f47 commit 137f06aCopy full SHA for 137f06a
packages/vitnode/src/api/lib/check-plugin-id.ts
@@ -1,6 +1,8 @@
1
import { existsSync, readFileSync } from 'fs';
2
import { join, resolve } from 'path';
3
4
+import { CONFIG } from '../../lib/config';
5
+
6
export interface PackageJSON {
7
dependencies?: Record<string, string>;
8
devDependencies?: Record<string, string>;
@@ -31,6 +33,8 @@ export const checkPluginId = (pluginName: string): null | PackageJSON => {
31
33
};
32
34
35
const findPluginPath = (pluginName: string): null | string => {
36
+ if (CONFIG.node_development) return null;
37
38
const cwd = process.cwd();
39
const monorepoRoot = findMonorepoRoot(cwd);
40
0 commit comments