Skip to content

Commit fcf5a47

Browse files
committed
fix: correct npm package path references from -npm to -js in pre-release check
1 parent f806956 commit fcf5a47

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust-cli-kiln/scripts/release/01-pre-release-check.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ check_security() {
350350
fi
351351

352352
# npm audit (only high severity)
353-
if command -v npm &> /dev/null && [ -f "$PROJECT_ROOT/${PROJECT_NAME}-npm/package-lock.json" ]; then
353+
if command -v npm &> /dev/null && [ -f "$PROJECT_ROOT/${PROJECT_NAME}-js/package-lock.json" ]; then
354354
print_info "Running npm audit..."
355-
cd "$PROJECT_ROOT/${PROJECT_NAME}-npm"
355+
cd "$PROJECT_ROOT/${PROJECT_NAME}-js"
356356
if npm audit --audit-level=high &> /dev/null; then
357357
print_success "No critical npm vulnerabilities"
358358
else
@@ -397,7 +397,7 @@ check_package_structure() {
397397
"${PROJECT_NAME}-core/Cargo.toml"
398398
"${PROJECT_NAME}-cli/Cargo.toml"
399399
"${PROJECT_NAME}-python/pyproject.toml"
400-
"${PROJECT_NAME}-npm/package.json"
400+
"${PROJECT_NAME}-js/package.json"
401401
)
402402

403403
for file in "${REQUIRED_FILES[@]}"; do
@@ -418,7 +418,7 @@ check_package_structure() {
418418
fi
419419

420420
# Check npm package structure
421-
if [ -f "$PROJECT_ROOT/${PROJECT_NAME}-npm/index.js" ]; then
421+
if [ -f "$PROJECT_ROOT/${PROJECT_NAME}-js/index.js" ]; then
422422
print_success "npm package structure is correct"
423423
else
424424
print_error "npm package structure is incorrect"

0 commit comments

Comments
 (0)