@repokit/core 2.0.6 → 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.6"
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.6"
3
+ version = "2.0.7"
4
4
  edition = "2024"
5
5
 
6
6
  [[bin]]
@@ -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.6"
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.6",
3
+ "version": "2.0.7",
4
4
  "description": "A knowledgebase for your repository - wrapped in a CLI",
5
5
  "keywords": [
6
6
  "cli",