@heiwa4126/hello5 0.0.4 → 0.0.5-rc.1

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/README.md CHANGED
@@ -73,8 +73,18 @@ Other CDNs:
73
73
 
74
74
  After installation, you can use the CLI command:
75
75
 
76
- ```bash
77
- heiwa4126-hello5
76
+ ```console
77
+ $ heiwa4126-hello5 -h
78
+
79
+ Usage: heiwa4126-hello5 [-h|--help] [-V|--version]
80
+
81
+ Options:
82
+ -h, --help Show this help message
83
+ -V, --version Show version
84
+
85
+ $ heiwa4126-hello5
86
+
87
+ Hello!
78
88
  ```
79
89
 
80
90
  ## Development
package/dist/cli.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import o from"../package.json"with{type:"json"};import{hello as i}from"./hello.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-V|--version]
3
+
4
+ Options:
5
+ -h, --help Show this help message
6
+ -V, --version Show version`)}function s(){console.log(String(o.version))}function l(){const e=process.argv.slice(2);(e.includes("-h")||e.includes("--help"))&&(n(),process.exit(0)),(e.includes("-V")||e.includes("--version"))&&(s(),process.exit(0)),console.log(i())}l();
package/dist/hello.cjs CHANGED
@@ -28,4 +28,3 @@ function hello() {
28
28
  0 && (module.exports = {
29
29
  hello
30
30
  });
31
- //# sourceMappingURL=hello.cjs.map
@@ -0,0 +1 @@
1
+ "use strict";var Heiwa4126Hello5=(()=>{var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var f=(l,e)=>{for(var o in e)r(l,o,{get:e[o],enumerable:!0})},g=(l,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of u(e))!c.call(l,n)&&n!==o&&r(l,n,{get:()=>e[n],enumerable:!(t=i(e,n))||t.enumerable});return l};var h=l=>g(r({},"__esModule",{value:!0}),l);var s={};f(s,{hello:()=>p});function p(){return"Hello!"}return h(s);})();
package/dist/hello.js CHANGED
@@ -4,4 +4,3 @@ function hello() {
4
4
  export {
5
5
  hello
6
6
  };
7
- //# sourceMappingURL=hello.js.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@heiwa4126/hello5",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-rc.1",
4
4
  "description": "TypeScript hello world library with dual ES modules/CommonJS support. Features GitHub Actions trusted publishing to npmjs with Sigstore attestation.",
5
5
  "type": "module",
6
6
  "main": "./dist/hello.cjs",
7
7
  "module": "./dist/hello.js",
8
+ "browser": "./dist/hello.global.js",
8
9
  "types": "./dist/hello.d.ts",
9
10
  "exports": {
10
11
  ".": {
@@ -14,7 +15,7 @@
14
15
  }
15
16
  },
16
17
  "bin": {
17
- "heiwa4126-hello5": "./dist/main.js"
18
+ "heiwa4126-hello5": "./dist/cli.js"
18
19
  },
19
20
  "files": [
20
21
  "dist/**/*.js",
package/dist/main.cjs DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var import_hello = require("./hello.js");
4
- console.log((0, import_hello.hello)());
5
- //# sourceMappingURL=main.cjs.map
package/dist/main.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
package/dist/main.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import { hello } from "./hello.js";
3
- console.log(hello());
4
- //# sourceMappingURL=main.js.map