Skip to content

Commit

Permalink
fix build step
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 29, 2025
1 parent 668a96c commit 94ec262
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: npm ci
- name: Build types
run: npm run build:types
- name: Check types
run: npm run test:types
check-mongo:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ node_modules

# Babel.js
lib/
types/
# types/* once we have full typescript support, we can generate types from the typescript files
!types/tsconfig.json

# cache folder
.cache
Expand Down
Empty file added types/index.d.ts
Empty file.
2 changes: 2 additions & 0 deletions types/logger.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare function setLogger(aLogger: any): void;
export declare function getLogger(): any;
18 changes: 18 additions & 0 deletions types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,

// If the library is an external module (uses `export`), this allows your test file to import "mylib" instead of "./index".
// If the library is global (cannot be imported via `import` or `require`), leave this out.
"baseUrl": ".",
"paths": { "parse": ["."] }
}
}

0 comments on commit 94ec262

Please sign in to comment.