Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
enapupe committed Nov 12, 2023
1 parent ff9bd4e commit 617d466
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- test
pull_request:

jobs:
Expand Down Expand Up @@ -44,8 +45,8 @@ jobs:
run: |
docker container restart mongodb
- name: Build and run tests
- name: Run tests
run: yarn test
env:
NODE_OPTIONS: --experimental-vm-modules

- name: Build files
run: yarn build-release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"scripts": {
"lint": "yarn ts-standard",
"fix": "yarn ts-standard --fix",
"test": "yarn build && cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand",
"test": "jest",
"build": "tsc -p tsconfig.json",
"build-release": "tsc -p tsconfig.release.json",
"clean": "tsc -b --clean && rm -rf build/*",
Expand Down
2 changes: 1 addition & 1 deletion src/db/export/json/async-file.processor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { promises } from 'fs'
import { Processor } from '../common/processor'
import path, { dirname } from 'path'
import { logger } from '../../../logge'
import { logger } from '../../../logger'

export type Writer = (data: string, path: string) => Promise<void>
export type PathResolver<T> = (data: T) => string
Expand Down
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@
},
"include": [
"src/**/*.ts",
]
}
],
"exclude": [
"node_modules",
"**/__mocks__",
"**/__tests__",
] /* Build excludes test files */
}

0 comments on commit 617d466

Please sign in to comment.