@paimaexample/explorer 0.3.16 → 0.3.17

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 (3) hide show
  1. package/cli.js +9 -0
  2. package/package.json +3 -4
  3. package/cli.cjs +0 -9
package/cli.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { createServer } = require("http-server");
4
+
5
+ const server = createServer({ root: "./client/dist" });
6
+
7
+ server.listen(8080, () => {
8
+ console.log("Serving production build at http://localhost:8080");
9
+ });
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@paimaexample/explorer",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "main": "client/dist/index.html",
5
5
  "bin": {
6
- "explorer": "cli.cjs"
6
+ "explorer": "cli.js"
7
7
  },
8
- "type": "commonjs",
9
8
  "files": [
10
- "cli.cjs",
9
+ "cli.js",
11
10
  "client/dist/index.html",
12
11
  "client/dist/**"
13
12
  ],
package/cli.cjs DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { createServer } = require("http-server");
4
-
5
- const server = createServer({ root: "./client/dist" });
6
- const port = process.env.PAIMA_EXPLORER_PORT || 10590;
7
- server.listen(port, () => {
8
- console.log(`Paima Explorer at http://localhost:${port}`);
9
- });