@heiwa4126/hello5 0.0.7-rc.0 → 0.0.7

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
@@ -76,7 +76,7 @@ Other CDNs:
76
76
  <!DOCTYPE html>
77
77
  <div id="app">loading...</div>
78
78
 
79
- <script src="https://cdn.jsdelivr.net/npm/@heiwa4126/hello5/dist/hello.global.min.js"></script>
79
+ <script src="https://cdn.jsdelivr.net/npm/@heiwa4126/hello5/dist/index.global.min.js"></script>
80
80
  <script>
81
81
  document.getElementById("app").innerText = Heiwa4126Hello5.hello();
82
82
  </script>
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env node
2
- import{version as e}from"./package.js";import{hello as t}from"./hello.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-v|--version]
2
+ import{hello as e,version as t}from"./index.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-v|--version]
3
3
 
4
4
  Options:
5
5
  -h, --help Show this help message
6
- -v, --version Show version`)}function r(){console.log(String(e))}function i(){let e=process.argv.slice(2);(e.includes(`-h`)||e.includes(`--help`))&&(n(),process.exit(0)),(e.includes(`-v`)||e.includes(`--version`))&&(r(),process.exit(0)),console.log(t())}i();export{};
6
+ -v, --version Show version`)}function r(){console.log(t)}function i(){let t=process.argv.slice(2);(t.includes(`-h`)||t.includes(`--help`))&&(n(),process.exit(0)),(t.includes(`-v`)||t.includes(`--version`))&&(r(),process.exit(0)),console.log(e())}i();export{};
package/dist/index.cjs ADDED
@@ -0,0 +1,11 @@
1
+ const require_package = require('./package.cjs');
2
+
3
+ //#region src/index.ts
4
+ const version = require_package.version;
5
+ function hello() {
6
+ return "Hello!";
7
+ }
8
+
9
+ //#endregion
10
+ exports.hello = hello;
11
+ exports.version = version;
@@ -0,0 +1,5 @@
1
+ //#region src/index.d.ts
2
+ declare const version: string;
3
+ declare function hello(): string;
4
+ //#endregion
5
+ export { hello, version };
@@ -1 +1 @@
1
- var Heiwa4126Hello5=(function(e){function t(){return`Hello!`}return e.hello=t,e})({});
1
+ var Heiwa4126Hello5=(function(e){function t(){return`Hello!`}return e.hello=t,e.version=`0.0.7`,e})({});
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { version as version$1 } from "./package.js";
2
+
3
+ //#region src/index.ts
4
+ const version = version$1;
5
+ function hello() {
6
+ return "Hello!";
7
+ }
8
+
9
+ //#endregion
10
+ export { hello, version };
@@ -0,0 +1,11 @@
1
+
2
+ //#region package.json
3
+ var version = "0.0.7";
4
+
5
+ //#endregion
6
+ Object.defineProperty(exports, 'version', {
7
+ enumerable: true,
8
+ get: function () {
9
+ return version;
10
+ }
11
+ });
package/dist/package.js CHANGED
@@ -1 +1,5 @@
1
- var e=`0.0.7-rc.0`;export{e as version};
1
+ //#region package.json
2
+ var version = "0.0.7";
3
+
4
+ //#endregion
5
+ export { version };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@heiwa4126/hello5",
3
- "version": "0.0.7-rc.0",
3
+ "version": "0.0.7",
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
- "main": "./dist/hello.cjs",
7
- "module": "./dist/hello.js",
8
- "browser": "./dist/hello.global.js",
9
- "types": "./dist/hello.d.ts",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "browser": "./dist/index.global.js",
9
+ "types": "./dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/hello.d.ts",
13
- "import": "./dist/hello.js",
14
- "require": "./dist/hello.cjs"
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
15
  }
16
16
  },
17
17
  "bin": {
@@ -49,9 +49,12 @@
49
49
  "devDependencies": {
50
50
  "@biomejs/biome": "^2.3.10",
51
51
  "@heiwa4126/clean-publish-scripts": "^0.0.3",
52
+ "@hono/node-server": "^1.19.7",
52
53
  "@types/node": "^25.0.3",
53
54
  "@vitest/coverage-v8": "4.0.16",
54
- "tsdown": "^0.18.1",
55
+ "hono": "^4.11.1",
56
+ "npm-run-all2": "^8.0.4",
57
+ "tsdown": "^0.18.2",
55
58
  "tsx": "^4.21.0",
56
59
  "typescript": "^5.9.3",
57
60
  "vitest": "^4.0.16"
package/dist/hello.cjs DELETED
@@ -1,8 +0,0 @@
1
-
2
- //#region src/hello.ts
3
- function hello() {
4
- return "Hello!";
5
- }
6
-
7
- //#endregion
8
- exports.hello = hello;
package/dist/hello.d.ts DELETED
@@ -1,4 +0,0 @@
1
- //#region src/hello.d.ts
2
- declare function hello(): string;
3
- //#endregion
4
- export { hello };
package/dist/hello.js DELETED
@@ -1,7 +0,0 @@
1
- //#region src/hello.ts
2
- function hello() {
3
- return "Hello!";
4
- }
5
-
6
- //#endregion
7
- export { hello };