mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
chore: format
This commit is contained in:
@@ -12,7 +12,7 @@ const lockfilePath = join(process.cwd(), 'package-lock.json');
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const content = readFileSync(lockfilePath, 'utf8');
|
const content = readFileSync(lockfilePath, 'utf8');
|
||||||
|
|
||||||
// Check for git+ssh:// URLs
|
// Check for git+ssh:// URLs
|
||||||
if (content.includes('git+ssh://')) {
|
if (content.includes('git+ssh://')) {
|
||||||
console.error('Error: package-lock.json contains git+ssh:// URLs.');
|
console.error('Error: package-lock.json contains git+ssh:// URLs.');
|
||||||
@@ -20,7 +20,7 @@ try {
|
|||||||
console.error('Or run: npm run fix:lockfile');
|
console.error('Or run: npm run fix:lockfile');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('✓ No git+ssh:// URLs found in package-lock.json');
|
console.log('✓ No git+ssh:// URLs found in package-lock.json');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user