@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 +1 -1
- package/Cargo.toml +1 -1
- package/dist/CommandParser.mjs +3 -3
- package/dist/ConfigurationParser.mjs +2 -2
- package/dist/RepoKitCommand.mjs +1 -1
- package/externals/CommandParser.ts +6 -5
- package/externals/ConcurrencyPool.ts +1 -0
- package/externals/ConfigurationParser.ts +4 -3
- package/externals/RepoKitCommand.ts +1 -6
- package/externals/RepoKitConfig.ts +2 -2
- package/externals/TSCompiler.ts +1 -1
- package/installation/install.sh +1 -1
- package/internals/context/node_scope.rs +1 -1
- package/package.json +11 -17
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/dist/CommandParser.mjs
CHANGED
|
@@ -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() {
|
package/dist/RepoKitCommand.mjs
CHANGED
|
@@ -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 {
|
|
6
|
-
import {
|
|
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,8 +1,9 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
1
|
import { parseArgs } from "node:util";
|
|
4
|
-
import {
|
|
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 {
|
package/externals/TSCompiler.ts
CHANGED
package/installation/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repokit/core",
|
|
3
|
-
"version": "4.0.
|
|
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": "
|
|
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": "
|
|
40
|
-
"lint:all": "
|
|
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": "
|
|
43
|
-
"package:ts": "
|
|
44
|
-
"postinstall": "
|
|
45
|
-
"repokit": "
|
|
46
|
-
"run:dev": "
|
|
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
|
}
|