@portlens/cli 1.0.8 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
2
+ import { createRequire as _createRequire } from 'module';
3
+ import { fileURLToPath as _fileURLToPath } from 'url';
4
+ const require = _createRequire(import.meta.url);
5
+ const __filename = _fileURLToPath(import.meta.url);
6
+ const __dirname = _fileURLToPath(new URL('.', import.meta.url));
3
7
  var __create = Object.create;
4
8
  var __defProp = Object.defineProperty;
5
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@portlens/cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Share your local server with anyone, instantly.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "portlens": "./dist/index.js"
7
+ "portlens": "dist/index.js"
8
8
  },
9
9
  "files": [
10
10
  "dist"
@@ -13,7 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "scripts": {
16
- "build": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --banner:js='#!/usr/bin/env node'",
16
+ "build": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --banner:js=\"#!/usr/bin/env node\nimport { createRequire as _createRequire } from 'module';\nimport { fileURLToPath as _fileURLToPath } from 'url';\nconst require = _createRequire(import.meta.url);\nconst __filename = _fileURLToPath(import.meta.url);\nconst __dirname = _fileURLToPath(new URL('.', import.meta.url));\"",
17
17
  "dev": "tsc --watch",
18
18
  "prepublishOnly": "npm run build"
19
19
  },