@khoaha/spek-cli 1.0.3 → 1.0.4
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 +1 -1
- package/scripts/publish.sh +23 -23
package/package.json
CHANGED
package/scripts/publish.sh
CHANGED
|
@@ -62,17 +62,17 @@ echo -e "${BLUE}╚════════════════════
|
|
|
62
62
|
echo ""
|
|
63
63
|
|
|
64
64
|
# Step 1: Check git status
|
|
65
|
-
echo -e "${BLUE}1️⃣ Checking git status...${NC}"
|
|
66
|
-
if [ -n "$(git status --porcelain)" ]; then
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
fi
|
|
75
|
-
echo -e "${GREEN}✓ Git status checked${NC}\n"
|
|
65
|
+
# echo -e "${BLUE}1️⃣ Checking git status...${NC}"
|
|
66
|
+
# if [ -n "$(git status --porcelain)" ]; then
|
|
67
|
+
# echo -e "${YELLOW}⚠️ Warning: You have uncommitted changes${NC}"
|
|
68
|
+
# read -p "Continue anyway? (y/N): " -n 1 -r
|
|
69
|
+
# echo
|
|
70
|
+
# if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
71
|
+
# echo -e "${RED}❌ Aborted${NC}"
|
|
72
|
+
# exit 1
|
|
73
|
+
# fi
|
|
74
|
+
# fi
|
|
75
|
+
# echo -e "${GREEN}✓ Git status checked${NC}\n"
|
|
76
76
|
|
|
77
77
|
# Step 2: Clean install
|
|
78
78
|
echo -e "${BLUE}2️⃣ Clean install dependencies...${NC}"
|
|
@@ -117,18 +117,18 @@ npm publish --dry-run
|
|
|
117
117
|
echo -e "${GREEN}✓ Dry-run successful${NC}\n"
|
|
118
118
|
|
|
119
119
|
# Step 8: Confirm publish
|
|
120
|
-
echo -e "${YELLOW}┌────────────────────────────────────┐${NC}"
|
|
121
|
-
echo -e "${YELLOW}│ Ready to publish v$NEW_VERSION${NC}"
|
|
122
|
-
echo -e "${YELLOW}│ Package: spek-cli │${NC}"
|
|
123
|
-
echo -e "${YELLOW}└────────────────────────────────────┘${NC}"
|
|
124
|
-
echo ""
|
|
125
|
-
read -p "Proceed with publish? (y/N): " -n 1 -r
|
|
126
|
-
echo
|
|
127
|
-
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
fi
|
|
120
|
+
# echo -e "${YELLOW}┌────────────────────────────────────┐${NC}"
|
|
121
|
+
# echo -e "${YELLOW}│ Ready to publish v$NEW_VERSION${NC}"
|
|
122
|
+
# echo -e "${YELLOW}│ Package: spek-cli │${NC}"
|
|
123
|
+
# echo -e "${YELLOW}└────────────────────────────────────┘${NC}"
|
|
124
|
+
# echo ""
|
|
125
|
+
# read -p "Proceed with publish? (y/N): " -n 1 -r
|
|
126
|
+
# echo
|
|
127
|
+
# if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
128
|
+
# echo -e "${RED}❌ Publish cancelled${NC}"
|
|
129
|
+
# rm -f "$PROJECT_DIR/.npmrc"
|
|
130
|
+
# exit 1
|
|
131
|
+
# fi
|
|
132
132
|
|
|
133
133
|
# Step 9: Publish to npm
|
|
134
134
|
echo -e "${BLUE}9️⃣ Publishing to npm...${NC}"
|