@pixelated-tech/components 3.7.7 → 3.7.8

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.
@@ -8,11 +8,13 @@ import { encrypt, decrypt, isEncrypted } from '../components/config/crypto';
8
8
  * npx tsx src/scripts/config-vault.js encrypt <filePath> <key>
9
9
  * npx tsx src/scripts/config-vault.js decrypt <filePath> <key>
10
10
  */
11
- const [, , command, targetPath, key] = process.argv;
11
+ const [, , command, targetPath, argKey] = process.argv;
12
+ const key = argKey || process.env.PIXELATED_CONFIG_KEY;
12
13
  if (!command || !targetPath || !key) {
13
14
  console.log('Usage:');
14
- console.log(' encrypt <filePath> <key> - Encrypts the file in place');
15
- console.log(' decrypt <filePath> <key> - Decrypts the file in place');
15
+ console.log(' encrypt <filePath> [key] - Encrypts the file in place');
16
+ console.log(' decrypt <filePath> [key] - Decrypts the file in place');
17
+ console.log('\nNote: Key can be passed as argument or via PIXELATED_CONFIG_KEY env var.');
16
18
  process.exit(1);
17
19
  }
18
20
  const fullPath = path.isAbsolute(targetPath) ? targetPath : path.resolve(process.cwd(), targetPath);
@@ -10,12 +10,14 @@ import { encrypt, decrypt, isEncrypted } from '../components/config/crypto';
10
10
  * npx tsx src/scripts/config-vault.js decrypt <filePath> <key>
11
11
  */
12
12
 
13
- const [,, command, targetPath, key] = process.argv;
13
+ const [,, command, targetPath, argKey] = process.argv;
14
+ const key = argKey || process.env.PIXELATED_CONFIG_KEY;
14
15
 
15
16
  if (!command || !targetPath || !key) {
16
17
  console.log('Usage:');
17
- console.log(' encrypt <filePath> <key> - Encrypts the file in place');
18
- console.log(' decrypt <filePath> <key> - Decrypts the file in place');
18
+ console.log(' encrypt <filePath> [key] - Encrypts the file in place');
19
+ console.log(' decrypt <filePath> [key] - Decrypts the file in place');
20
+ console.log('\nNote: Key can be passed as argument or via PIXELATED_CONFIG_KEY env var.');
19
21
  process.exit(1);
20
22
  }
21
23
 
@@ -38,6 +38,7 @@ REMOTE_NAME=$(prompt_remote_selection)
38
38
 
39
39
  echo "🚀 Starting Release Process for $PROJECT_NAME"
40
40
  echo "================================================="
41
+ echo ""
41
42
 
42
43
  # Function to get current version
43
44
  get_current_version() {
@@ -113,13 +114,22 @@ else
113
114
  fi
114
115
  npm audit fix --force 2>/dev/null || true
115
116
 
117
+ echo ""
116
118
  echo "🔍 Step 2: Running lint..."
119
+ echo "================================================="
120
+ echo ""
117
121
  npm run lint
118
122
 
123
+ echo ""
119
124
  echo "🔨 Step 3: Building project..."
125
+ echo "================================================="
126
+ echo ""
120
127
  npm run build
121
128
 
129
+ echo ""
122
130
  echo "🏷️ Step 4: Version bump..."
131
+ echo "================================================="
132
+ echo ""
123
133
  prompt_version_type
124
134
  if [ "$version_type" != "none" ]; then
125
135
  if [ "$version_type" = "patch" ] || [ "$version_type" = "minor" ] || [ "$version_type" = "major" ]; then
@@ -130,7 +140,10 @@ if [ "$version_type" != "none" ]; then
130
140
  fi
131
141
  fi
132
142
 
143
+ echo ""
133
144
  echo "💾 Step 5: Committing changes..."
145
+ echo "================================================="
146
+ echo ""
134
147
  if npm run | grep -q "config:encrypt"; then
135
148
  echo "🔒 Encrypting configuration..."
136
149
  npm run config:encrypt
@@ -143,7 +156,10 @@ else
143
156
  git commit -m "$commit_message"
144
157
  fi
145
158
 
159
+ echo ""
146
160
  echo "📤 Step 6: Pushing dev branch..."
161
+ echo "================================================="
162
+ echo ""
147
163
  # Try to push, if it fails due to remote changes, fetch and rebase
148
164
  if ! git push $REMOTE_NAME dev; then
149
165
  echo "⚠️ Push failed, fetching remote changes and rebasing..."
@@ -160,7 +176,10 @@ if ! git push $REMOTE_NAME dev; then
160
176
  fi
161
177
  fi
162
178
 
179
+ echo ""
163
180
  echo "🔄 Step 7: Updating main branch..."
181
+ echo "================================================="
182
+ echo ""
164
183
  # Force main to match dev exactly
165
184
  git push $REMOTE_NAME dev:main --force
166
185
 
@@ -173,7 +192,10 @@ if git show-ref --verify --quiet refs/heads/main; then
173
192
  git checkout dev
174
193
  fi
175
194
 
195
+ echo ""
176
196
  echo "🏷️ Step 8: Creating and pushing git tag..."
197
+ echo "================================================="
198
+ echo ""
177
199
  new_version=$(get_current_version)
178
200
  if ! git tag -l | grep -q "v$new_version"; then
179
201
  git tag "v$new_version"
@@ -187,7 +209,10 @@ if npm run | grep -q "config:decrypt"; then
187
209
  npm run config:decrypt
188
210
  fi
189
211
 
212
+ echo ""
190
213
  echo "🔐 Step 9: Publishing to npm..."
214
+ echo "================================================="
215
+ echo ""
191
216
  should_publish=$(prompt_publish)
192
217
  if [ "$should_publish" = "yes" ]; then
193
218
  npm login
@@ -200,6 +225,8 @@ else
200
225
  fi
201
226
 
202
227
  echo ""
228
+ echo ""
229
+ echo "================================================="
203
230
  echo "✅ Release complete!"
204
231
  echo "📦 Version: $(get_current_version)"
205
232
  echo "📋 Branches updated: dev, main"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelated-tech/components",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Pixelated Technologies",