@repokit/core 1.7.0 → 1.7.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/Cargo.lock CHANGED
@@ -61,95 +61,6 @@ version = "0.8.21"
61
61
  source = "registry+https://github.com/rust-lang/crates.io-index"
62
62
  checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
63
63
 
64
- [[package]]
65
- name = "futures"
66
- version = "0.3.31"
67
- source = "registry+https://github.com/rust-lang/crates.io-index"
68
- checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
69
- dependencies = [
70
- "futures-channel",
71
- "futures-core",
72
- "futures-executor",
73
- "futures-io",
74
- "futures-sink",
75
- "futures-task",
76
- "futures-util",
77
- ]
78
-
79
- [[package]]
80
- name = "futures-channel"
81
- version = "0.3.31"
82
- source = "registry+https://github.com/rust-lang/crates.io-index"
83
- checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
84
- dependencies = [
85
- "futures-core",
86
- "futures-sink",
87
- ]
88
-
89
- [[package]]
90
- name = "futures-core"
91
- version = "0.3.31"
92
- source = "registry+https://github.com/rust-lang/crates.io-index"
93
- checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
94
-
95
- [[package]]
96
- name = "futures-executor"
97
- version = "0.3.31"
98
- source = "registry+https://github.com/rust-lang/crates.io-index"
99
- checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
100
- dependencies = [
101
- "futures-core",
102
- "futures-task",
103
- "futures-util",
104
- ]
105
-
106
- [[package]]
107
- name = "futures-io"
108
- version = "0.3.31"
109
- source = "registry+https://github.com/rust-lang/crates.io-index"
110
- checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
111
-
112
- [[package]]
113
- name = "futures-macro"
114
- version = "0.3.31"
115
- source = "registry+https://github.com/rust-lang/crates.io-index"
116
- checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
117
- dependencies = [
118
- "proc-macro2",
119
- "quote",
120
- "syn",
121
- ]
122
-
123
- [[package]]
124
- name = "futures-sink"
125
- version = "0.3.31"
126
- source = "registry+https://github.com/rust-lang/crates.io-index"
127
- checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
128
-
129
- [[package]]
130
- name = "futures-task"
131
- version = "0.3.31"
132
- source = "registry+https://github.com/rust-lang/crates.io-index"
133
- checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
134
-
135
- [[package]]
136
- name = "futures-util"
137
- version = "0.3.31"
138
- source = "registry+https://github.com/rust-lang/crates.io-index"
139
- checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
140
- dependencies = [
141
- "futures-channel",
142
- "futures-core",
143
- "futures-io",
144
- "futures-macro",
145
- "futures-sink",
146
- "futures-task",
147
- "memchr",
148
- "pin-project-lite",
149
- "pin-utils",
150
- "slab",
151
- ]
152
-
153
64
  [[package]]
154
65
  name = "globset"
155
66
  version = "0.4.18"
@@ -185,12 +96,6 @@ version = "1.0.17"
185
96
  source = "registry+https://github.com/rust-lang/crates.io-index"
186
97
  checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
187
98
 
188
- [[package]]
189
- name = "lexopt"
190
- version = "0.3.1"
191
- source = "registry+https://github.com/rust-lang/crates.io-index"
192
- checksum = "9fa0e2a1fcbe2f6be6c42e342259976206b383122fc152e872795338b5a3f3a7"
193
-
194
99
  [[package]]
195
100
  name = "log"
196
101
  version = "0.4.29"
@@ -215,12 +120,6 @@ version = "0.2.16"
215
120
  source = "registry+https://github.com/rust-lang/crates.io-index"
216
121
  checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
217
122
 
218
- [[package]]
219
- name = "pin-utils"
220
- version = "0.1.0"
221
- source = "registry+https://github.com/rust-lang/crates.io-index"
222
- checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
223
-
224
123
  [[package]]
225
124
  name = "proc-macro2"
226
125
  version = "1.0.106"
@@ -274,9 +173,7 @@ version = "0.1.0"
274
173
  dependencies = [
275
174
  "alphanumeric-sort",
276
175
  "colored",
277
- "futures",
278
176
  "ignore",
279
- "lexopt",
280
177
  "normalize-path",
281
178
  "regex",
282
179
  "serde",
@@ -336,12 +233,6 @@ dependencies = [
336
233
  "zmij",
337
234
  ]
338
235
 
339
- [[package]]
340
- name = "slab"
341
- version = "0.4.11"
342
- source = "registry+https://github.com/rust-lang/crates.io-index"
343
- checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
344
-
345
236
  [[package]]
346
237
  name = "syn"
347
238
  version = "2.0.114"
package/Cargo.toml CHANGED
@@ -11,9 +11,7 @@ path = "internals/main.rs"
11
11
  serde = { version = "1.0", features = ["derive"] }
12
12
  serde_json = "1.0"
13
13
  colored = "3"
14
- lexopt = "0.3.1"
15
14
  normalize-path = "0.2.1"
16
- futures = "0.3.31"
17
15
  alphanumeric-sort = "1.5.5"
18
16
  tokio = "1.49.0"
19
17
  ignore = "0.4.25"
package/README.md CHANGED
@@ -38,9 +38,15 @@ yarn add -D @repokit/core
38
38
  pnpm add -D @repokit/core
39
39
  ```
40
40
 
41
- Repokit will automatically create a config file named `repokit.ts` for you upon installing. Fill out this file with your desired settings.
41
+ Once installed, run
42
42
 
43
- Here's an example of what Repokit's internal config looks like:
43
+ ```bash
44
+ repokit
45
+ ```
46
+
47
+ Repokit will create a config file named `repokit.ts` on your first run. Fill out this file with your desired settings.
48
+
49
+ Here's an example of what our intenral Repokit config looks like:
44
50
 
45
51
  ```typescript
46
52
  import { RepoKitConfig } from "@repokit/core";
@@ -65,7 +71,7 @@ export const RepoKit = new RepoKitConfig({
65
71
  });
66
72
  ```
67
73
 
68
- Commands are optional, but your `repokit.ts` config is a good place to store any commonly run commands that aren't specific to any library or package in your repository.
74
+ Commands in your config file are optional, but in your `repokit.ts` config is a good place to store any commonly run commands that aren't specific to any library or package in your repository.
69
75
 
70
76
  To verify your configuration, run
71
77
 
@@ -5,7 +5,6 @@ import { parseArgs } from "node:util";
5
5
  import { join } from "node:path";
6
6
  import { stat } from "node:fs/promises";
7
7
  import { existsSync } from "node:fs";
8
-
9
8
  //#region externals/CommandParser.ts
10
9
  var CommandParser = class {
11
10
  static compiler;
@@ -51,6 +50,5 @@ var CommandParser = class {
51
50
  }
52
51
  }
53
52
  };
54
-
55
53
  //#endregion
56
- export { CommandParser };
54
+ export { CommandParser };
@@ -1,5 +1,4 @@
1
1
  import { AutoIncrementingID } from "@figliolia/event-emitter";
2
-
3
2
  //#region externals/ConcurrencyPool.ts
4
3
  var ConcurrencyPool = class {
5
4
  IDs = new AutoIncrementingID();
@@ -19,6 +18,5 @@ var ConcurrencyPool = class {
19
18
  return promise;
20
19
  }
21
20
  };
22
-
23
21
  //#endregion
24
- export { ConcurrencyPool };
22
+ export { ConcurrencyPool };
@@ -3,7 +3,6 @@ import { RepoKitConfig } from "./RepoKitConfig.mjs";
3
3
  import { parseArgs } from "node:util";
4
4
  import { join } from "node:path";
5
5
  import { existsSync } from "node:fs";
6
-
7
6
  //#region externals/ConfigurationParser.ts
8
7
  var ConfigurationParser = class extends TSCompiler {
9
8
  static async parse() {
@@ -22,6 +21,5 @@ var ConfigurationParser = class extends TSCompiler {
22
21
  } } }).values.root;
23
22
  }
24
23
  };
25
-
26
24
  //#endregion
27
- export { ConfigurationParser };
25
+ export { ConfigurationParser };
@@ -11,6 +11,5 @@ var RepoKitCommand = class {
11
11
  this.description = description;
12
12
  }
13
13
  };
14
-
15
14
  //#endregion
16
- export { RepoKitCommand };
15
+ export { RepoKitCommand };
@@ -1,5 +1,4 @@
1
1
  import { RepoKitCommand } from "./RepoKitCommand.mjs";
2
-
3
2
  //#region externals/RepoKitConfig.ts
4
3
  var RepoKitConfig = class {
5
4
  project;
@@ -20,6 +19,5 @@ var RepoKitConfig = class {
20
19
  };
21
20
  }
22
21
  };
23
-
24
22
  //#endregion
25
- export { RepoKitConfig };
23
+ export { RepoKitConfig };
@@ -1,7 +1,6 @@
1
1
  import { basename, resolve } from "node:path";
2
2
  import { readFile, rm, writeFile } from "node:fs/promises";
3
3
  import { transform } from "@swc/core";
4
-
5
4
  //#region externals/TSCompiler.ts
6
5
  var TSCompiler = class TSCompiler {
7
6
  static TMP_FILE_NAME = ".repokit_tmp.js";
@@ -18,6 +17,5 @@ var TSCompiler = class TSCompiler {
18
17
  return config;
19
18
  }
20
19
  };
21
-
22
20
  //#endregion
23
- export { TSCompiler };
21
+ export { TSCompiler };
@@ -1,9 +1,7 @@
1
1
  import { CommandParser } from "../CommandParser.mjs";
2
-
3
2
  //#region externals/commands/parse_commands.ts
4
3
  (async () => {
5
4
  await CommandParser.parse();
6
5
  })();
7
-
8
6
  //#endregion
9
- export { };
7
+ export {};
@@ -1,9 +1,7 @@
1
1
  import { ConfigurationParser } from "../ConfigurationParser.mjs";
2
-
3
2
  //#region externals/commands/parse_configuration.ts
4
3
  (async () => {
5
4
  await ConfigurationParser.parse();
6
5
  })();
7
-
8
6
  //#endregion
9
- export { };
7
+ export {};
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
1
  import { RepoKitCommand } from "./RepoKitCommand.mjs";
2
2
  import { RepoKitConfig } from "./RepoKitConfig.mjs";
3
-
4
- export { RepoKitCommand, RepoKitConfig };
3
+ export { RepoKitCommand, RepoKitConfig };
@@ -1,5 +1,4 @@
1
1
  //#region externals/templates/command_template.txt
2
2
  var command_template_default = "import { RepoKitCommand } from \"@repokit/core\";\n\n/**\n * Please fill out this command file with your desired settings\n */\nexport const Commands = new RepoKitCommand({\n name: \"<Your Package Name>\",\n owner: \"<Optional Team or Individual>\",\n description: \"<Your Package Description>\",\n commands: {\n \"<your-first-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n \"<your-second-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n \"<your-third-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n },\n});\n";
3
-
4
3
  //#endregion
5
- export { command_template_default as default };
4
+ export { command_template_default as default };
@@ -1,5 +1,4 @@
1
1
  //#region externals/templates/configuration_template.txt
2
2
  var configuration_template_default = "import { RepoKitConfig } from \"@repokit/core\";\n\n/**\n * Please fill out this config file with your desired\n * repokit settings\n */\nexport const RepoKit = new RepoKitConfig({\n project: \"Your Project Name\",\n commands: {\n \"<your-first-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n \"<your-second-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n \"<your-third-command>\": {\n command: \"<insert shell command here>\",\n description: \"A description for your command\",\n },\n },\n});\n";
3
-
4
3
  //#endregion
5
- export { configuration_template_default as default };
4
+ export { configuration_template_default as default };
package/dist/types.mjs CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
@@ -33,7 +33,4 @@ echo "Compiling from $CWD"
33
33
 
34
34
  . "$HOME/.cargo/env"
35
35
  RUSTFLAGS="-Awarnings" cargo build --release
36
- cargo install --path .
37
-
38
- cd $REPO_ROOT
39
- repokit
36
+ cargo install --path .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repokit/core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A knowledgebase for your repository - wrapped in a CLI",
5
5
  "keywords": [
6
6
  "cli",
@@ -52,10 +52,10 @@
52
52
  "devDependencies": {
53
53
  "@figliolia/child-process": "^1.0.4",
54
54
  "@types/node": "^25.3.0",
55
- "oxfmt": "^0.34.0",
55
+ "oxfmt": "^0.36.0",
56
56
  "oxlint": "^1.42.0",
57
- "oxlint-tsgolint": "^0.14.0",
58
- "tsdown": "^0.20.3",
57
+ "oxlint-tsgolint": "^0.16.0",
58
+ "tsdown": "^0.21.0",
59
59
  "tsx": "^4.21.0",
60
60
  "typescript": "^5.9.3"
61
61
  }