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 137f06a commit 9b76e42Copy full SHA for 9b76e42
‎packages/vitnode/src/api/lib/check-plugin-id.ts‎
@@ -18,6 +18,8 @@ export interface PackageJSON {
18
}
19
20
export const checkPluginId = (pluginName: string): null | PackageJSON => {
21
+ if (!CONFIG.node_development) return null;
22
+
23
const findMonorepoRoot = (startPath: string): null | string => {
24
let currentPath = startPath;
25
while (currentPath !== resolve(currentPath, '..')) {
@@ -33,8 +35,6 @@ export const checkPluginId = (pluginName: string): null | PackageJSON => {
33
35
};
34
36
37
const findPluginPath = (pluginName: string): null | string => {
- if (CONFIG.node_development) return null;
-
38
const cwd = process.cwd();
39
const monorepoRoot = findMonorepoRoot(cwd);
40
0 commit comments