@contextos/core 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -301,7 +301,10 @@ function saveConfigYaml(rootDir, config, options = {}) {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
function isInitialized(startDir = process.cwd()) {
|
|
304
|
-
|
|
304
|
+
const rootDir = findContextosRoot(startDir);
|
|
305
|
+
if (!rootDir) return false;
|
|
306
|
+
const contextPath = join(rootDir, CONTEXTOS_DIR, CONTEXT_FILE);
|
|
307
|
+
return existsSync(contextPath);
|
|
305
308
|
}
|
|
306
309
|
|
|
307
310
|
// src/parser/tree-sitter.ts
|