cskit-cli 1.0.9 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cskit-cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Content Suite Kit CLI - Download and manage CSK skills from private repository",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -92,12 +92,12 @@ async function setupPythonEnv(projectDir, spinner) {
92
92
  execSync(`python3 -m venv "${venvPath}"`, { stdio: 'pipe', cwd: libPythonDir });
93
93
  }
94
94
 
95
- // Parse requirements.txt
95
+ // Parse requirements.txt (strip inline comments)
96
96
  const pipPath = path.join(venvPath, 'bin', 'pip');
97
97
  const requirements = fs.readFileSync(requirementsFile, 'utf8')
98
98
  .split('\n')
99
- .map(line => line.trim())
100
- .filter(line => line && !line.startsWith('#'));
99
+ .map(line => line.split('#')[0].trim()) // Remove inline comments
100
+ .filter(line => line); // Remove empty lines
101
101
 
102
102
  if (requirements.length === 0) {
103
103
  spinner.succeed('No packages to install');