bluedither 1.0.4 → 1.0.6

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.
@@ -124,5 +124,11 @@ export default async function extract(args) {
124
124
  }
125
125
 
126
126
  console.log(`\n${allPresent ? '✓ Package is complete.' : '✗ Package is incomplete — missing required files.'}`);
127
+
128
+ // When called directly from CLI, exit. When imported, return result.
129
+ if (args._calledFromPublish) {
130
+ if (!allPresent) throw new Error('Package incomplete');
131
+ return;
132
+ }
127
133
  process.exit(allPresent ? 0 : 1);
128
134
  }
@@ -55,9 +55,13 @@ export default async function login(args) {
55
55
 
56
56
  // Open browser
57
57
  import('child_process').then(({ exec }) => {
58
- const cmd = process.platform === 'win32' ? 'start' :
59
- process.platform === 'darwin' ? 'open' : 'xdg-open';
60
- exec(`${cmd} "${loginUrl}"`);
58
+ if (process.platform === 'win32') {
59
+ exec(`start "" "${loginUrl}"`);
60
+ } else if (process.platform === 'darwin') {
61
+ exec(`open "${loginUrl}"`);
62
+ } else {
63
+ exec(`xdg-open "${loginUrl}"`);
64
+ }
61
65
  });
62
66
 
63
67
  // Timeout after 5 minutes
@@ -51,7 +51,9 @@ export default async function publish(args) {
51
51
  console.log('\nStep 2: Validating package...');
52
52
  const { default: extract } = await import('./extract.js');
53
53
  try {
54
- await extract(['--validate']);
54
+ const validateArgs = ['--validate'];
55
+ validateArgs._calledFromPublish = true;
56
+ await extract(validateArgs);
55
57
  } catch {
56
58
  // extract calls process.exit on failure
57
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluedither",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A bold, dithered-shader hero theme for Claude Code — skill + fine-tuner",
5
5
  "type": "module",
6
6
  "bin": {