skills-manifest 0.3.2 → 0.3.3

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.
@@ -1,7 +1,7 @@
1
- import * as citty0 from "citty";
1
+ import * as citty6 from "citty";
2
2
 
3
3
  //#region src/cli/add.d.ts
4
- declare const add: citty0.CommandDef<{
4
+ declare const add: citty6.CommandDef<{
5
5
  readonly repo: {
6
6
  readonly type: "positional";
7
7
  readonly description: "Repository (e.g. owner/repo or full URL)";
@@ -1,12 +1,12 @@
1
1
  import { t as add } from "../add-CmzBK4br.mjs";
2
- import { t as init } from "../init-4enI_4o6.mjs";
2
+ import { t as init } from "../init-DbLmaD0L.mjs";
3
3
  import { t as install } from "../install-CmdQl0XL.mjs";
4
4
  import { t as remove } from "../remove-ByCBLakw.mjs";
5
5
  import { t as sync } from "../sync-1OE33hei.mjs";
6
6
  import { defineCommand, runMain } from "citty";
7
7
 
8
8
  //#region package.json
9
- var version = "0.3.2";
9
+ var version = "0.3.3";
10
10
 
11
11
  //#endregion
12
12
  //#region src/cli/index.ts
@@ -1,6 +1,6 @@
1
- import * as citty2 from "citty";
1
+ import * as citty1 from "citty";
2
2
 
3
3
  //#region src/cli/init.d.ts
4
- declare const init: citty2.CommandDef<citty2.ArgsDef>;
4
+ declare const init: citty1.CommandDef<citty1.ArgsDef>;
5
5
  //#endregion
6
6
  export { init };
package/dist/cli/init.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as init } from "../init-4enI_4o6.mjs";
1
+ import { t as init } from "../init-DbLmaD0L.mjs";
2
2
 
3
3
  export { init };
@@ -1,6 +1,6 @@
1
- import * as citty5 from "citty";
1
+ import * as citty0 from "citty";
2
2
 
3
3
  //#region src/cli/install.d.ts
4
- declare const install: citty5.CommandDef<citty5.ArgsDef>;
4
+ declare const install: citty0.CommandDef<citty0.ArgsDef>;
5
5
  //#endregion
6
6
  export { install };
@@ -1,7 +1,7 @@
1
- import * as citty4 from "citty";
1
+ import * as citty3 from "citty";
2
2
 
3
3
  //#region src/cli/remove.d.ts
4
- declare const remove: citty4.CommandDef<{
4
+ declare const remove: citty3.CommandDef<{
5
5
  readonly repo: {
6
6
  readonly type: "positional";
7
7
  readonly description: "Repository (e.g. owner/repo or full URL)";
@@ -1,6 +1,6 @@
1
- import * as citty0 from "citty";
1
+ import * as citty4 from "citty";
2
2
 
3
3
  //#region src/cli/sync.d.ts
4
- declare const sync: citty0.CommandDef<citty0.ArgsDef>;
4
+ declare const sync: citty4.CommandDef<citty4.ArgsDef>;
5
5
  //#endregion
6
6
  export { sync };
@@ -29,8 +29,11 @@ const init = defineCommand({
29
29
  await fs.writeFile(manifestPath, JSON.stringify(content, null, 2));
30
30
  }
31
31
  const gitignorePath = path.join(cwd, ".gitignore");
32
- const gitignore = await fs.readFile(gitignorePath, "utf-8").catch(() => "");
33
- if (!gitignore.split("\n").includes("skills")) await fs.appendFile(gitignorePath, gitignore.endsWith("\n") ? "skills\n" : "\nskills\n");
32
+ if (!(await fs.readFile(gitignorePath, "utf-8").catch(() => "")).split("\n").includes("skills")) await fs.appendFile(gitignorePath, [
33
+ "**/skills",
34
+ "!/skills",
35
+ "!/skills/**"
36
+ ].join("\n"));
34
37
  const pkgPath = path.join(cwd, "package.json");
35
38
  const pkg = JSON.parse(await fs.readFile(pkgPath, "utf-8"));
36
39
  const prepare = pkg.scripts?.prepare;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "skills-manifest",
3
3
  "type": "module",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "description": "A lightweight manifest manager for skills, enabling project-level skill synchronization and collaborative configuration.",
6
6
  "author": "Hairyf <wwu710632@gmail.com>",
7
7
  "license": "MIT",
@@ -58,7 +58,7 @@
58
58
  "vitest": "^4.0.15",
59
59
  "vitest-package-exports": "^0.1.1",
60
60
  "yaml": "^2.8.2",
61
- "skills-manifest": "0.3.2"
61
+ "skills-manifest": "0.3.3"
62
62
  },
63
63
  "simple-git-hooks": {
64
64
  "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"