@heiwa4126/hello5 0.0.6 → 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 +2 -1
- package/dist/cli.js +2 -2
- package/dist/hello.cjs +6 -28
- package/dist/hello.d.ts +3 -2
- package/dist/hello.global.js +1 -1
- package/dist/hello.js +5 -4
- package/dist/package.js +1 -0
- package/package.json +4 -4
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
|
|
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
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
4
|
+
return "Hello!";
|
|
26
5
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.hello = hello;
|
package/dist/hello.d.ts
CHANGED
package/dist/hello.global.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var Heiwa4126Hello5=(function(e){function t(){return`Hello!`}return e.hello=t,e})({});
|
package/dist/hello.js
CHANGED
package/dist/package.js
ADDED
|
@@ -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.
|
|
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.
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"
|
|
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"
|