lint
This commit is contained in:
parent
e1938b9933
commit
0b2658f5b0
7 changed files with 14 additions and 8 deletions
|
|
@ -153,7 +153,7 @@ program
|
|||
key: string;
|
||||
intermediate?: string[];
|
||||
selfSigned?: boolean;
|
||||
}
|
||||
},
|
||||
) => {
|
||||
void (async () => {
|
||||
try {
|
||||
|
|
@ -219,7 +219,7 @@ program
|
|||
process.exit(1);
|
||||
}
|
||||
})();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
// Verify command
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type {
|
||||
Logger,
|
||||
McpbManifest,
|
||||
McpbUserConfigValues,
|
||||
Logger,
|
||||
McpServerConfig,
|
||||
} from "../types.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
|||
|
||||
export type McpbManifestAuthor = z.infer<typeof McpbManifestAuthorSchema>;
|
||||
|
||||
export type McpbManifestRepository = z.infer<typeof McpbManifestRepositorySchema>;
|
||||
export type McpbManifestRepository = z.infer<
|
||||
typeof McpbManifestRepositorySchema
|
||||
>;
|
||||
|
||||
export type McpbManifestPlatformOverride = z.infer<
|
||||
typeof McpbManifestPlatformOverrideSchema
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ describe("DXT CLI", () => {
|
|||
// Commander outputs help to stderr when no command is provided
|
||||
const execError = error as ExecSyncError;
|
||||
expect(execError.stderr.toString()).toContain(
|
||||
"Usage: dxt [options] [command]",
|
||||
"Usage: mcpb [options] [command]",
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
hasRequiredConfigMissing,
|
||||
replaceVariables,
|
||||
} from "../src/shared/config";
|
||||
import type { McpbManifest, Logger } from "../src/types";
|
||||
import type { Logger, McpbManifest } from "../src/types";
|
||||
|
||||
describe("replaceVariables", () => {
|
||||
it("should replace variables in strings", () => {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ describe("McpbManifestSchema", () => {
|
|||
|
||||
expect(result.success).toBe(false);
|
||||
if (!result.success) {
|
||||
const errors = result.error.issues.map((issue: any) => issue.path.join("."));
|
||||
const errors = result.error.issues.map((issue) => issue.path.join("."));
|
||||
expect(errors).toContain("author.name");
|
||||
expect(errors).toContain("author.email");
|
||||
expect(errors).toContain("server.type");
|
||||
|
|
|
|||
|
|
@ -13,7 +13,11 @@ import * as fs from "fs";
|
|||
import forge from "node-forge";
|
||||
import * as path from "path";
|
||||
|
||||
import { signMcpbFile, unsignMcpbFile, verifyMcpbFile } from "../src/node/sign.js";
|
||||
import {
|
||||
signMcpbFile,
|
||||
unsignMcpbFile,
|
||||
verifyMcpbFile,
|
||||
} from "../src/node/sign.js";
|
||||
|
||||
// Test directory
|
||||
const TEST_DIR = path.join(__dirname, "test-output");
|
||||
|
|
|
|||
Loading…
Reference in a new issue