We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6409fe commit 097eb99Copy full SHA for 097eb99
1 file changed
cli/utils/download-files.mjs
@@ -10,10 +10,10 @@ import { validateDirname } from './validate-dirname.mjs';
10
const detection = detectNpxSandbox();
11
const __dirname = dirname(fileURLToPath(import.meta.url));
12
13
-/** @type {string} */
14
-let sourceRulesBasePath;
+/** @type {string|undefined} */
+let sourceRulesBasePath = '';
15
16
-if (detection.isNpxSandbox) {
+if (detection.isNpxSandbox || !sourceRulesBasePath) {
17
const packageRoot = findPackageRoot(__dirname, '@usrrname/cursorrules');
18
sourceRulesBasePath = resolve(packageRoot, '.cursor', 'rules');
19
}
0 commit comments