Skip to content

Commit

Permalink
fix: re-apply constraint improvements tuning (#382)
Browse files Browse the repository at this point in the history
* chore: roll forward semlrel

* fix: package dependency conflicts/unmet deps

* fix: derive constraint name from where clause/upserted columns

* refactor: appease linter

* feat: add coverage tooling

* fix: mismatched data types

* chore: add type decl

Co-authored-by: Michael Gagliardo <mgagliardo91@gmail.com>
  • Loading branch information
cdaringe and mgagliardo91 committed Jul 1, 2022
1 parent b3dc66a commit 1b33382
Show file tree
Hide file tree
Showing 13 changed files with 1,071 additions and 408 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
*.log
build
postgraphile.graphql
postgraphile.graphql
coverage
6 changes: 4 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"type": "node",
"request": "launch",
"name": "ava - file",
"program": "${workspaceRoot}/node_modules/ava/profile.js",
"args": ["${workspaceRoot}/build/__tests__/main.test.js"],
"program": "${workspaceFolder}/node_modules/ava/entrypoints/cli.mjs",
"args": ["--serial", "${file}"],
"outputCapture": "std",
"console": "integratedTerminal", // optional
"skipFiles": ["<node_internals>/**/*.js"],
"env": {
"DEBUG": "*"
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/* eslint-disable no-undef */
module.exports = { extends: ["@commitlint/config-conventional"] };
25 changes: 21 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,58 @@
"devDependencies": {
"@commitlint/cli": "17.0.2",
"@commitlint/config-conventional": "17.0.2",
"@timbeyer/commitlint-circle": "^4.1.1",
"@types/bluebird": "3.5.36",
"@types/dockerode": "3.3.9",
"@types/nanographql": "2.0.1",
"@types/node": "16.11.39",
"@types/node-fetch": "2.6.1",
"@types/pg": "8.6.1",
"@types/wait-on": "5.3.1",
"@typescript-eslint/eslint-plugin": "5.28.0",
"@typescript-eslint/parser": "5.27.1",
"ava": "4.3.0",
"bluebird": "3.7.2",
"commitlint-circle": "1.0.0",
"c8": "7.11.3",
"dockerode": "3.3.2",
"eslint": "^8.17.0",
"execa": "5.1.1",
"freeport": "1.0.5",
"graphile-build": "4.12.2",
"graphql": "16.5.0",
"graphql": "15.8.0",
"husky": "8.0.1",
"json-decycle": "2.0.1",
"nanographql": "2.0.0",
"node-fetch": "2.6.7",
"pg": "8.7.1",
"postgraphile": "4.12.9",
"postgraphile-core": "4.12.2",
"prettier": "2.6.2",
"prettier-plugin-organize-imports": "3.0.0",
"semantic-release": "19.0.3",
"standard": "17.0.0",
"ts-node": "10.8.1",
"typescript": "4.3.5"
},
"scripts": {
"build": "tsc",
"format": "prettier --write .",
"test": "ava --timeout=2m build/**/*.test.js",
"test": "c8 -r=lcov -r=text-summary ava --timeout=2m",
"semantic-release": "semantic-release",
"lint": "prettier --check .",
"lint": "prettier --check . && eslint '**/*.{ts,js}'",
"prepare": "husky install"
},
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"files": [
"src/__tests__/**/*.test.ts"
]
},
"repository": {
"type": "git",
"url": "https://github.com/cdaringe/postgraphile-upsert.git"
Expand Down

0 comments on commit 1b33382

Please sign in to comment.