Skip to content

Commit

Permalink
Merge pull request #9 from Daniel-Webster/feat/types-and-docs
Browse files Browse the repository at this point in the history
fix: lint on action and ensure types are exported
  • Loading branch information
Daniel-Webster committed Feb 4, 2024
2 parents 553920d + 0dabbd4 commit 947f728
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/node-yarn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
with:
cmd: install

- name: Install Dependencies
uses: borales/actions-yarn@v5
with:
cmd: lint

- name: Build
uses: borales/actions-yarn@v5
with:
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
esm
cjs
types
types
src/generated
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"clean": "rm -rf ./src/generated cjs esm types",
"generate": "yarn openapi-typescript ./src/openapi/war-thunder-localhost.yaml -o ./src/generated/thunder-client.d.ts",
"generate": "yarn openapi-typescript ./src/openapi/war-thunder-localhost.yaml -o ./src/generated/thunder-client.ts",
"clean:generate": "yarn clean && yarn generate",
"build:cjs": "tsc --declaration false --allowJs --outDir cjs --noEmit false --module CommonJS",
"build:types": "tsc --declaration --declarationMap --isolatedModules false --outDir types --emitDeclarationOnly --noEmit false --module CommonJS",
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"strictPropertyInitialization": true,
"stripInternal": true,
},
"include": [
"src/**/*.ts", // adjust this to match your folder structure
],
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "**/*.test.ts"],
}

0 comments on commit 947f728

Please sign in to comment.