@repokit/core 4.0.3 → 4.0.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.
package/Cargo.lock CHANGED
@@ -996,7 +996,7 @@ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
996
996
 
997
997
  [[package]]
998
998
  name = "repokit"
999
- version = "4.0.3"
999
+ version = "4.0.4"
1000
1000
  dependencies = [
1001
1001
  "alphanumeric-sort",
1002
1002
  "colored",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "repokit"
3
- version = "4.0.3"
3
+ version = "4.0.4"
4
4
  edition = "2024"
5
5
 
6
6
  [[bin]]
@@ -1,9 +1,9 @@
1
1
  import { RepoKitCommand } from "./RepoKitCommand.mjs";
2
2
  import { TSCompiler } from "./TSCompiler.mjs";
3
- import { existsSync } from "node:fs";
4
- import { stat } from "node:fs/promises";
5
- import { join } from "node:path";
6
3
  import { parseArgs } from "node:util";
4
+ import { join } from "node:path";
5
+ import { stat } from "node:fs/promises";
6
+ import { existsSync } from "node:fs";
7
7
  //#region externals/CommandParser.ts
8
8
  var CommandParser = class extends TSCompiler {
9
9
  static async parse() {
@@ -1,8 +1,8 @@
1
1
  import { RepoKitConfig } from "./RepoKitConfig.mjs";
2
2
  import { TSCompiler } from "./TSCompiler.mjs";
3
- import { existsSync } from "node:fs";
4
- import { join } from "node:path";
5
3
  import { parseArgs } from "node:util";
4
+ import { join } from "node:path";
5
+ import { existsSync } from "node:fs";
6
6
  //#region externals/ConfigurationParser.ts
7
7
  var ConfigurationParser = class extends TSCompiler {
8
8
  static parse() {
@@ -4,7 +4,7 @@ var RepoKitCommand = class {
4
4
  owner;
5
5
  description;
6
6
  commands;
7
- constructor({ name, description, owner = "", commands = {} }) {
7
+ constructor({ name, description, owner = "", commands }) {
8
8
  this.name = name;
9
9
  this.owner = owner;
10
10
  this.commands = commands;
@@ -1,10 +1,11 @@
1
- import { existsSync } from "node:fs";
2
- import { stat } from "node:fs/promises";
3
- import { join } from "node:path";
4
1
  import { parseArgs } from "node:util";
5
- import { RepoKitCommand } from "./RepoKitCommand";
6
- import { TSCompiler } from "./TSCompiler";
2
+ import { join } from "node:path";
3
+ import { stat } from "node:fs/promises";
4
+ import { existsSync } from "node:fs";
5
+
7
6
  import type { ILocatedCommand } from "./types";
7
+ import { TSCompiler } from "./TSCompiler";
8
+ import { RepoKitCommand } from "./RepoKitCommand";
8
9
  /* oxlint-disable typescript-eslint(no-misused-spread) */
9
10
 
10
11
  export class CommandParser extends TSCompiler {
@@ -1,4 +1,5 @@
1
1
  import { AutoIncrementingID } from "@figliolia/event-emitter";
2
+
2
3
  import type { AsyncTask } from "./types";
3
4
 
4
5
  export class ConcurrencyPool<T> {
@@ -1,8 +1,9 @@
1
- import { existsSync } from "node:fs";
2
- import { join } from "node:path";
3
1
  import { parseArgs } from "node:util";
4
- import { RepoKitConfig } from "./RepoKitConfig";
2
+ import { join } from "node:path";
3
+ import { existsSync } from "node:fs";
4
+
5
5
  import { TSCompiler } from "./TSCompiler";
6
+ import { RepoKitConfig } from "./RepoKitConfig";
6
7
 
7
8
  export class ConfigurationParser extends TSCompiler {
8
9
  public static parse() {
@@ -5,12 +5,7 @@ export class RepoKitCommand {
5
5
  owner: string;
6
6
  description: string;
7
7
  commands: Record<string, ICommand>;
8
- constructor({
9
- name,
10
- description,
11
- owner = "",
12
- commands = {},
13
- }: IRepoKitCommand) {
8
+ constructor({ name, description, owner = "", commands }: IRepoKitCommand) {
14
9
  this.name = name;
15
10
  this.owner = owner;
16
11
  this.commands = commands;
@@ -1,6 +1,6 @@
1
- import { RepoKitCommand } from "./RepoKitCommand";
2
- import type { RepoKitTheme } from "./RepoKitTheme";
3
1
  import type { ICommand, IRepoKitConfig } from "./types";
2
+ import type { RepoKitTheme } from "./RepoKitTheme";
3
+ import { RepoKitCommand } from "./RepoKitCommand";
4
4
  /* eslint-disable typescript-eslint(no-misused-spread */
5
5
 
6
6
  export class RepoKitConfig {
@@ -1,5 +1,5 @@
1
- import type { RegisterOptions } from "ts-node";
2
1
  import { register } from "ts-node";
2
+ import type { RegisterOptions } from "ts-node";
3
3
 
4
4
  export class TSCompiler {
5
5
  private static readonly compilerOptions: RegisterOptions = {
@@ -1,4 +1,4 @@
1
- CURRENT_VERSION="4.0.3"
1
+ CURRENT_VERSION="4.0.4"
2
2
  CWD=$(pwd)
3
3
 
4
4
  REPLACEMENT="/node_modules"
@@ -107,7 +107,7 @@ impl NodeScope {
107
107
  let manager_map = HashMap::from([
108
108
  ("npm", "npx"),
109
109
  ("yarn", "yarn run -T"),
110
- ("pnpm", "pnpm run"),
110
+ ("pnpm", "pnpm"),
111
111
  ("bun", "bunx"),
112
112
  ]);
113
113
  manager_map.get(package_manager).unwrap_or(&npx)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repokit/core",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "A knowledgebase for your repository - wrapped in a CLI",
5
5
  "keywords": [
6
6
  "cli",
@@ -31,19 +31,19 @@
31
31
  "access": "public"
32
32
  },
33
33
  "scripts": {
34
- "build:all": "yarn lint:ts && yarn lint:rust && yarn install:rust",
34
+ "build:all": "pnpm lint:ts && pnpm lint:rust && pnpm install:rust",
35
35
  "build:rust": "cargo build --release",
36
36
  "build:ts": "tsx devserver/run.ts",
37
37
  "clean:ts": "tsx devserver/run.ts -c",
38
38
  "grant:exec": "chmod -R +x ./installation",
39
- "install:rust": "yarn build:rust && cargo install --path .",
40
- "lint:all": "yarn lint:ts && yarn lint:rust",
39
+ "install:rust": "pnpm build:rust && cargo install --path .",
40
+ "lint:all": "pnpm lint:ts && pnpm lint:rust",
41
41
  "lint:rust": "cargo clippy --fix --allow-dirty",
42
- "lint:ts": "yarn oxlint --type-aware --type-check --report-unused-disable-directives --fix && yarn oxfmt",
43
- "package:ts": "yarn lint:ts && yarn lint:rust && yarn build:ts",
44
- "postinstall": "yarn grant:exec && ./installation/install.sh",
45
- "repokit": "yarn install:rust && repokit",
46
- "run:dev": "yarn build:ts && cargo run --package repokit --bin repokit",
42
+ "lint:ts": "oxlint --type-aware --type-check --report-unused-disable-directives --fix && oxfmt",
43
+ "package:ts": "pnpm lint:ts && pnpm lint:rust && pnpm build:ts",
44
+ "postinstall": "pnpm grant:exec && ./installation/install.sh",
45
+ "repokit": "pnpm install:rust && repokit",
46
+ "run:dev": "pnpm build:ts && cargo run --package repokit --bin repokit",
47
47
  "watch:ts": "tsx devserver/run.ts -w"
48
48
  },
49
49
  "dependencies": {
@@ -55,19 +55,13 @@
55
55
  "@figliolia/child-process": "^1.0.4",
56
56
  "@figliolia/semver": "^1.0.0",
57
57
  "@types/node": "^25.3.0",
58
- "@typescript-eslint/eslint-plugin": "^8.57.1",
59
- "@typescript-eslint/parser": "^8.57.1",
60
58
  "chalk": "^5.6.2",
61
- "eslint": "^10.0.3",
62
- "eslint-import-resolver-typescript": "^4.4.4",
63
- "eslint-plugin-import": "^2.32.0",
64
- "eslint-plugin-simple-import-sort": "^13.0.0",
65
- "eslint-plugin-unused-imports": "^4.4.1",
66
59
  "oxfmt": "^0.47.0",
67
60
  "oxlint": "^1.42.0",
68
61
  "oxlint-tsgolint": "^0.22.0",
69
62
  "tsdown": "^0.21.0",
70
63
  "tsx": "^4.21.0",
71
64
  "typescript": "^6.0.2"
72
- }
65
+ },
66
+ "packageManager": "pnpm@10.33.2"
73
67
  }