Skip to content

Commit

Permalink
fix: omit field when undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Feb 10, 2022
1 parent 09d0cbf commit c2ed234
Show file tree
Hide file tree
Showing 6 changed files with 6,828 additions and 6,935 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint -e $1
"$(npm x mdep bin commitlint)" --edit $1
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
coverageProvider: 'v8',
verbose: true,
moduleFileExtensions: [
'ts',
'tsx',
'js'
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
'^.+\\.(ts|tsx)$': '@swc-node/jest'
}
};
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
"version": "0.0.0-development",
"main": "./lib/index.js",
"engines": {
"node": ">= 10.15.0",
"node": ">= 14.15.0",
"npm": ">= 4.x.x"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"compile": "rimraf lib; tsc -b ./tsconfig.build.json",
"prepublishOnly": "yarn compile",
"test": "yarn lint && jest --collectCoverage --runTestsByPath __tests__/**.spec.ts && codecov >/dev/null",
"prepublishOnly": "npm run compile",
"test": "npm run lint && jest --collectCoverage --runTestsByPath __tests__/**.spec.ts && codecov >/dev/null",
"lint": "eslint --ext .ts -c .eslintrc.js src __tests__",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"prepare": "mdep install"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +29,10 @@
},
"homepage": "https://github.com/microfleet/validation#readme",
"devDependencies": {
"@makeomatic/deploy": "^11.0.2",
"@makeomatic/deploy": "^12.6.2",
"@node-rs/xxhash-linux-x64-musl": "^1.1.4",
"@swc-node/jest": "^1.4.3",
"@swc/core-linux-x64-musl": "^1.2.138",
"@types/callsite": "^1.0.31",
"@types/common-errors": "^1.0.2",
"@types/debug": "^4.1.7",
Expand All @@ -38,10 +42,10 @@
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"codecov": "^3.8.3",
"cross-env": "^7.0.3",
"eslint": "^8.6.0",
"eslint-config-makeomatic": "^5.1.0",
"jest": "^27.4.7",
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
},
"dependencies": {
Expand Down
Loading

0 comments on commit c2ed234

Please sign in to comment.