heyq02 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -15
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  // package.json
3
- var version = "0.2.3";
3
+ var version = "0.2.4";
4
4
 
5
5
  // ../../packages/profile/dist/index.js
6
6
  var intro_default = {
@@ -247,24 +247,16 @@ const profile = {
247
247
  };
248
248
 
249
249
  // src/intro.ts
250
- function renderBlock(source, greeting, includeSkills) {
250
+ function renderIntro() {
251
251
  const lines = [
252
- `${greeting} ${source.name}`,
252
+ `Hello, I'm ${intro.name}`,
253
253
  "",
254
- source.sections.experience,
254
+ intro.sections.experience,
255
255
  ""
256
256
  ];
257
- for (const job of source.experiences) lines.push(`${job.company} · ${job.start} – ${job.end}`, ...job.points.map((point) => `- ${point}`), "");
258
- if (includeSkills) lines.push(source.sections.skills, "", source.skills.map((skill) => skill.name).join(" · "));
259
- if (lines.at(-1) === "") lines.pop();
260
- return lines;
261
- }
262
- function renderIntro() {
263
- return [
264
- ...renderBlock(introZh, "你好,我是", true),
265
- "",
266
- ...renderBlock(intro, "Hello, I'm", false)
267
- ].join("\n");
257
+ for (const job of intro.experiences) lines.push(`${job.company} · ${job.start} – ${job.end}`, ...job.points.map((point) => `- ${point}`), "");
258
+ lines.push(intro.sections.skills, "", intro.skills.map((skill) => skill.name).join(" · "));
259
+ return lines.join("\n");
268
260
  }
269
261
 
270
262
  // src/main.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyq02",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Ari He. A terminal introduction.",
5
5
  "homepage": "https://heyq02.com",
6
6
  "bugs": {
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "devDependencies": {
31
- "@heyq02/profile": "0.2.3",
31
+ "@heyq02/profile": "0.2.4",
32
32
  "@liangmi/vp-config": "^1.0.0",
33
33
  "@types/node": "^26.6.5",
34
34
  "typescript": "7.0.2",