Skip to content

Commit c24c384

Browse files
authored
chore: maintenance and configuration updates (#142)
1 parent f706e34 commit c24c384

33 files changed

Lines changed: 34 additions & 17 deletions

.dependency-cruiser.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
"from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
5858
from: {
5959
path: "^(src|app|lib)",
60-
pathNot: "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$",
60+
pathNot: "(\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$|__tests__|[-.]test\\.ts$)",
6161
},
6262
to: {
6363
dependencyTypes: ["npm-dev"],

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Test & Build
3434
run: |
3535
pnpm build
36+
pnpm type-check
3637
pnpm test:code:gen
3738
pnpm test
3839
env:

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pre-commit:
22
commands:
33
format:
44
glob: "*.{js,jsx,json,yml,yaml,html,md,ts,tsx}"
5-
run: biome format --no-errors-on-unmatched --write {staged_files}
5+
run: pnpm exec biome format --no-errors-on-unmatched --write {staged_files}
66
stage_fixed: true
77
sort-package-json:
88
glob: "package.json"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"test:snapshot": "vitest run --config ./vitest.snapshot.config.ts",
7474
"test:vitest": "vitest run --config ./vitest.config.ts --coverage",
7575
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
76+
"type-check": "tsc --noEmit",
7677
"update:snapshot": "vitest run --config ./vitest.snapshot.config.ts --update",
7778
"validate": "pnpm ts ./scripts/validate.ts",
7879
"watch": "pnpm ts ./scripts/watch.ts"

scripts/tools/shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ExecaChildProcess, execa } from "execa";
1+
import { type ResultPromise, execa } from "execa";
22

3-
export const shell = (command: string, cwd: string = process.cwd()): ExecaChildProcess<string> => {
3+
export const shell = (command: string, cwd: string = process.cwd()): ResultPromise => {
44
return execa(command, {
55
stdio: ["pipe", "pipe", "inherit"],
66
shell: true,

src/code-templates/_shared/MethodBody/__tests__/PathParameter-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, test } from "vitest";
12
import ts from "typescript";
23

34
import { TsGenerator } from "../../../../api";

src/code-templates/_shared/__tests__/utils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, test } from "vitest";
12
import * as Utils from "../utils";
23

34
type OK = Utils.VariableElement;

src/internal/OpenApiTools/Walker/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Store {
153153
if (!result) {
154154
throw new Error(`Not found ${localPath}`);
155155
}
156-
return result;
156+
return result as OpenApi.Parameter;
157157
}
158158
public isAfterDefined(referencePath: string): boolean {
159159
return !!DotProp.getProperty(this.state.document, referencePath.replace(/\//g, "."));

test/__tests__/class/argo-rollout-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, test } from "vitest";
12
import * as fs from "fs";
23

34
import * as Utils from "../../utils";

test/__tests__/class/cloudflare-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, test } from "vitest";
12
import * as fs from "fs";
23

34
import * as Utils from "../../utils";

0 commit comments

Comments
 (0)