@bobfrankston/msger 0.1.165 → 0.1.166

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.165",
3
+ "version": "0.1.166",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,8 +26,7 @@
26
26
  "preversion": "npm run build:ts && npm run build:native && git add -A",
27
27
  "postversion": "git push && git push --tags",
28
28
  "release": "npm run prerelease:local && npm version patch && npm publish --quiet",
29
- "installer": "npm run release && node utils/install-latest.ts",
30
- "installer:wait": "npm run release && npm cache clean --force && npm install -g @bobfrankston/msger@latest && wsl npm cache clean --force && wsl npm install -g @bobfrankston/msger@latest"
29
+ "installer": "npm run release && node utils/install-latest.ts"
31
30
  },
32
31
  "keywords": [
33
32
  "message-box",
@@ -16,6 +16,7 @@ const __dirname = dirname(__filename);
16
16
  const packagePath = join(__dirname, '..', 'package.json');
17
17
  const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
18
18
  const version = packageJson.version;
19
+ const packageName = packageJson.name;
19
20
 
20
21
  // Function to wait for package to be available on npm registry
21
22
  async function waitForPackage(packageName: string, version: string, maxAttempts = 10): Promise<void> {
@@ -37,16 +38,16 @@ async function waitForPackage(packageName: string, version: string, maxAttempts
37
38
  }
38
39
 
39
40
  async function main() {
40
- console.log(`\nšŸ“¦ Installing @bobfrankston/msger@${version}...\n`);
41
+ console.log(`\nšŸ“¦ Installing ${packageName}@${version}...\n`);
41
42
 
42
43
  try {
43
44
  // Wait for package to be available on npm registry
44
- await waitForPackage('@bobfrankston/msger', version);
45
+ await waitForPackage(packageName, version);
45
46
 
46
47
  // Clean and install on Windows
47
48
  console.log('🪟 Windows installation:');
48
49
  execSync('npm cache clean --force', { stdio: 'inherit' });
49
- execSync(`npm install -g @bobfrankston/msger@${version}`, { stdio: 'inherit' });
50
+ execSync(`npm install -g ${packageName}@${version}`, { stdio: 'inherit' });
50
51
 
51
52
  // Clean and install on WSL
52
53
  console.log('\n🐧 WSL installation:');