prjct-cli 0.4.1 → 0.4.2
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/CHANGELOG.md +22 -0
- package/core/analyzer.js +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.2] - 2025-10-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Analyzer Compatibility** - Fixed ENOENT error when running `/p:init` in non-prjct projects
|
|
14
|
+
- Added validation to check if `bin/prjct` exists before reading
|
|
15
|
+
- Analyzer now works correctly in any project type (React, Vue, etc.)
|
|
16
|
+
- No longer throws "no such file or directory" error for normal projects
|
|
17
|
+
- Maintains full functionality for prjct-cli development projects
|
|
18
|
+
|
|
19
|
+
- **Website Build Process** - Improved build script and component imports
|
|
20
|
+
- Fixed Badge component import casing (badge → Badge)
|
|
21
|
+
- Removed obsolete install.sh and setup.sh copying from build script
|
|
22
|
+
- Cleaner and faster website builds
|
|
23
|
+
|
|
24
|
+
### Coming Soon
|
|
25
|
+
- **Windows Compatibility** - Native Windows support
|
|
26
|
+
- PowerShell and CMD command execution
|
|
27
|
+
- Windows path handling (`%USERPROFILE%\.prjct-cli\`)
|
|
28
|
+
- Windows-specific installation scripts
|
|
29
|
+
- Cross-platform file operations
|
|
30
|
+
- Windows Terminal integration
|
|
31
|
+
|
|
10
32
|
## [0.4.1] - 2025-10-01
|
|
11
33
|
|
|
12
34
|
### Added
|
package/core/analyzer.js
CHANGED
|
@@ -48,11 +48,15 @@ class CodebaseAnalyzer {
|
|
|
48
48
|
|
|
49
49
|
try {
|
|
50
50
|
const binPath = path.join(this.projectPath, 'bin', 'prjct')
|
|
51
|
-
const content = await fs.readFile(binPath, 'utf-8')
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
// Only try to read bin/prjct if it exists (for prjct-cli projects)
|
|
53
|
+
if (await this.fileExists(binPath)) {
|
|
54
|
+
const content = await fs.readFile(binPath, 'utf-8')
|
|
55
|
+
|
|
56
|
+
const caseMatches = content.matchAll(/case\s+'([^']+)':/g)
|
|
57
|
+
for (const match of caseMatches) {
|
|
58
|
+
commands.push(match[1])
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
const commandsPath = path.join(this.projectPath, 'core', 'commands.js')
|