@repokit/core 2.0.5 → 2.0.7

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
@@ -169,7 +169,7 @@ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
169
169
 
170
170
  [[package]]
171
171
  name = "repokit"
172
- version = "2.0.5"
172
+ version = "2.0.7"
173
173
  dependencies = [
174
174
  "alphanumeric-sort",
175
175
  "colored",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "repokit"
3
- version = "2.0.5"
3
+ version = "2.0.7"
4
4
  edition = "2024"
5
5
 
6
6
  [[bin]]
package/README.md CHANGED
@@ -81,7 +81,7 @@ repokit
81
81
 
82
82
  The CLI will list out its internal commands as well as any commands you registered in your config file.
83
83
 
84
- <img src="media/post-init.webp" alt="Help screen after initialization" />
84
+ <img src="media/post-init.webp" alt="Help screen after initialization" width="100%" />
85
85
 
86
86
  Next run:
87
87
 
@@ -134,7 +134,7 @@ repokit user-interface
134
134
  ```
135
135
 
136
136
  The CLI will list out your new tool's API's:
137
- <img src="media/new-command.webp" alt="Command definition" />
137
+ <img src="media/new-command.webp" alt="Command definition" width="100%" />
138
138
 
139
139
  To invoke any of them, run:
140
140
 
@@ -16,14 +16,10 @@ var TSCompiler = class {
16
16
  static compile(path) {
17
17
  const compiler = register(this.compilerOptions);
18
18
  compiler.enabled(true);
19
- const result = this.import(path);
19
+ const result = __require(path);
20
20
  compiler.enabled(false);
21
21
  return result;
22
22
  }
23
- static import(filePath) {
24
- const _module = __require(filePath);
25
- return _module?.__esModule ? _module : { default: _module };
26
- }
27
23
  };
28
24
  //#endregion
29
25
  export { TSCompiler };
@@ -19,13 +19,8 @@ export class TSCompiler {
19
19
  public static compile<T extends Record<string, unknown>>(path: string) {
20
20
  const compiler = register(this.compilerOptions);
21
21
  compiler.enabled(true);
22
- const result = this.import(path) as T;
22
+ const result = require(path) as T;
23
23
  compiler.enabled(false);
24
24
  return result;
25
25
  }
26
-
27
- private static import(filePath: string) {
28
- const _module = require(filePath);
29
- return _module?.__esModule ? _module : { default: _module };
30
- }
31
26
  }
@@ -1,4 +1,4 @@
1
- CURRENT_VERSION="2.0.5"
1
+ CURRENT_VERSION="2.0.7"
2
2
  CWD=$(pwd)
3
3
 
4
4
  REPLACEMENT="/node_modules"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repokit/core",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "A knowledgebase for your repository - wrapped in a CLI",
5
5
  "keywords": [
6
6
  "cli",