@rubriclab/bunl 0.0.15 → 0.0.16

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/build/client.js CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env bun
1
+ #! /usr/bin/env node
2
2
  // client.ts
3
3
  import {parseArgs} from "util";
4
4
 
@@ -451,7 +451,6 @@ async function main({
451
451
  const data = JSON.parse(event.data);
452
452
  if (data.url) {
453
453
  console.log(`
454
-
455
454
  \u21AA Your URL: ${data.url}
456
455
  `);
457
456
  if (open2)
package/client.ts CHANGED
@@ -23,7 +23,7 @@ async function main({
23
23
  const data = JSON.parse(event.data as string);
24
24
 
25
25
  if (data.url) {
26
- console.log(`\n\n↪ Your URL: \x1b[32m${data.url}\x1b[0m\n`);
26
+ console.log(`\n↪ Your URL: \x1b[32m${data.url}\x1b[0m\n`);
27
27
  if (open) browser(data.url);
28
28
  }
29
29
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@rubriclab/bunl",
6
6
  "description": "Expose localhost to the world",
7
- "version": "0.0.15",
7
+ "version": "0.0.16",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
@@ -23,7 +23,9 @@
23
23
  "dev:server": "bun --hot server.ts",
24
24
  "client": "bun --hot client.ts",
25
25
  "demo": "bun --hot demo.ts",
26
- "build": "BUILD=build/client.js && bun build client.ts --outdir build --target node && echo -e \"#! /usr/bin/env bun\n$(cat $BUILD)\" > $BUILD"
26
+ "client:upgrade": "bun rm -g @rubriclab/bunl && bun i -g @rubriclab/bunl@latest",
27
+ "build": "BUILD=build/client.js && bun build client.ts --outdir build --target node && echo -e \"#! /usr/bin/env node\n$(cat $BUILD)\" > $BUILD",
28
+ "publish": "bun run build && npm publish"
27
29
  },
28
30
  "type": "module",
29
31
  "peerDependencies": {