@heiwa4126/hello5 0.0.6-beta.3 → 0.0.7-alpha.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
@@ -9,7 +9,8 @@ TypeScript hello world library with dual ES modules/CommonJS support. Features G
9
9
 
10
10
  Modified version of [heiwa4126/heiwa4126-hello4](https://github.com/heiwa4126/heiwa4126-hello4) with the following changes:
11
11
 
12
- - Rewritten using [egoist/tsup](https://github.com/egoist/tsup)
12
+ - ~~Rewritten using [egoist/tsup](https://github.com/egoist/tsup)~~
13
+ - Rewritten using [rolldown/tsdown](https://github.com/rolldown/tsdown/)
13
14
  - Migrated from npm to pnpm
14
15
  - Extracted scripts/clean-pkg.mjs into a reusable package (@heiwa4126/clean-publish-scripts)
15
16
 
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
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]
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]
3
3
 
4
4
  Options:
5
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();
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{};
package/dist/hello.cjs CHANGED
@@ -1,30 +1,8 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var hello_exports = {};
20
- __export(hello_exports, {
21
- hello: () => hello
22
- });
23
- module.exports = __toCommonJS(hello_exports);
1
+
2
+ //#region src/hello.ts
24
3
  function hello() {
25
- return "Hello!";
4
+ return "Hello!";
26
5
  }
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- hello
30
- });
6
+
7
+ //#endregion
8
+ exports.hello = hello;
package/dist/hello.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ //#region src/hello.d.ts
1
2
  declare function hello(): string;
2
-
3
- export { hello };
3
+ //#endregion
4
+ export { hello };
@@ -1 +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);})();
1
+ var Heiwa4126Hello5=(function(e){function t(){return`Hello!`}return e.hello=t,e})({});
package/dist/hello.js CHANGED
@@ -1,6 +1,7 @@
1
+ //#region src/hello.ts
1
2
  function hello() {
2
- return "Hello!";
3
+ return "Hello!";
3
4
  }
4
- export {
5
- hello
6
- };
5
+
6
+ //#endregion
7
+ export { hello };
@@ -0,0 +1 @@
1
+ var e=`0.0.7-alpha.1`;export{e as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heiwa4126/hello5",
3
- "version": "0.0.6-beta.3",
3
+ "version": "0.0.7-alpha.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",
@@ -48,9 +48,9 @@
48
48
  "license": "MIT",
49
49
  "devDependencies": {
50
50
  "@biomejs/biome": "^2.3.8",
51
- "@heiwa4126/clean-publish-scripts": "^0.0.1",
52
- "@types/node": "^24.10.1",
53
- "tsup": "^8.5.1",
51
+ "@heiwa4126/clean-publish-scripts": "^0.0.2",
52
+ "@types/node": "^25.0.1",
53
+ "tsdown": "^0.17.3",
54
54
  "tsx": "^4.21.0",
55
55
  "typescript": "^5.9.3",
56
56
  "vitest": "^4.0.15"