Skip to content

Commit 84be70f

Browse files
committed
build and lint passes
1 parent 44478d4 commit 84be70f

File tree

14 files changed

+34
-26
lines changed

14 files changed

+34
-26
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"import/no-extraneous-dependencies": [
6161
"error",
6262
{
63-
"devDependencies": [],
63+
"devDependencies": true,
6464
"optionalDependencies": false,
6565
"peerDependencies": false,
6666
"packageDir": "./"

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
pnpm lint-staged

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"eslint-plugin-import": "^2.29.1",
4242
"eslint-plugin-prettier": "^5.0.1",
4343
"follow-redirects": "1.15.6",
44-
"husky": "^8.0.3",
4544
"ip": "2.0.1",
4645
"lerna": "^7.3.1",
4746
"lint-staged": "^14.0.1",
@@ -75,5 +74,8 @@
7574
"classNameTemplate": "{classname}",
7675
"titleTemplate": "{title}"
7776
},
78-
"packageManager": "pnpm@9.15.4"
77+
"packageManager": "pnpm@9.15.4",
78+
"devDependencies": {
79+
"husky": "^8.0.3"
80+
}
7981
}

packages/cli/.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "../../.eslintrc"
2+
"extends": "../../.eslintrc",
3+
"ignorePatterns": [
4+
"bin/"
5+
]
36
}

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"build": "tsc -p tsconfig.build.json",
4141
"build:watch": "tsc -p tsconfig.build.json --watch",
4242
"tester": "jest --coverage --verbose",
43-
"lint": "pnpm eslint '{src,test}/**/*.ts'"
43+
"lint": "eslint '{src,test}/**/*.ts'"
4444
},
4545
"files": [
4646
"bin",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { generateSpecification } from '@contractual/generators.spec';
2-
import { generateContract } from '@contractual/generators.client';
2+
import { generateContract } from '@contractual/generators.contract';
33
import type inquirer from 'inquirer';
44

55
export function regenerateContract() {
@@ -8,4 +8,4 @@ export function regenerateContract() {
88

99
export function generateSpec(inq: typeof inquirer) {
1010
return generateSpecification(inq);
11-
}
11+
}

packages/cli/tsconfig.build.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"extends": "../../tsconfig.build.json",
33
"compilerOptions": {
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"target": "esnext",
74
"rootDir": "src",
85
"baseUrl": ".",
96
"outDir": "dist",

packages/cli/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["test"]
2+
"extends": "../../tsconfig.json"
43
}

packages/contract/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@
4242
"prebuild": "pnpm rimraf dist",
4343
"build": "exit 0",
4444
"build:watch": "tsc -p tsconfig.build.json --watch",
45-
"test": "pnpm vitest run",
46-
"lint": "pnpm eslint '{src,test}/**/*.ts'"
45+
"test": "vitest run",
46+
"lint": "exit 0"
4747
},
4848
"files": [
4949
"contract",
50-
"generator",
5150
"dist",
5251
"README.md"
5352
],

packages/contract/tsconfig.build.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"rootDir": "contract",
55
"baseUrl": ".",
66
"outDir": "dist",
7-
"skipLibCheck": true
8-
},
7+
"esModuleInterop": true},
98
"exclude": [
109
"index.ts",
1110
"contract",
1211
"dist",
1312
"node_modules",
14-
"__test__/**/*",
13+
"test",
1514
"**/*.spec.ts",
1615
"jest.config.ts"
1716
]

0 commit comments

Comments
 (0)