@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 +12 -2
- package/dist/cli.js +6 -0
- package/dist/hello.cjs +0 -1
- package/dist/hello.global.js +1 -0
- package/dist/hello.js +0 -1
- package/package.json +3 -2
- package/dist/main.cjs +0 -5
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -4
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
|
-
```
|
|
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
|
@@ -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
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heiwa4126/hello5",
|
|
3
|
-
"version": "0.0.
|
|
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/
|
|
18
|
+
"heiwa4126-hello5": "./dist/cli.js"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist/**/*.js",
|
package/dist/main.cjs
DELETED
package/dist/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/main.js
DELETED