Skip to content

Commit

Permalink
feat(package): add prettier-package-json
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <willsoto@users.noreply.github.com>
  • Loading branch information
willsoto committed Oct 12, 2019
1 parent f967063 commit b1c8e93
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 43 deletions.
83 changes: 42 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
{
"author": {
"email": "willsoto@users.noreply.github.com",
"name": "Will Soto",
"url": "https://github.com/willsoto"
},
"name": "@willsoto/nestjs-objection",
"description": "Objection module for NestJS",
"license": "Apache-2.0",
"author": "Will Soto <willsoto@users.noreply.github.com> (https://github.com/willsoto)",
"version": "2.0.0",
"main": "dist/nestjs-objection.umd.js",
"module": "dist/nestjs-objection.esm.js",
"files": [
"dist",
"lib",
"typings"
],
"scripts": {
"prebuild": "yarn clean",
"build": "rollup --config rollup.config.js",
"postbuild": "yarn typings",
"clean": "rimraf dist",
"lint": "eslint lib --ext ts --fix",
"prerelease": "yarn build",
"release": "standard-version --sign --message 'chore(release): %s [skip ci]'",
"postrelease": "conventional-github-releaser -p angular",
"test": "jest",
"pretypings": "rimraf typings",
"typings": "tsc --project tsconfig.build.json --declaration --declarationDir typings --emitDeclarationOnly"
},
"typings": "./typings/index.d.ts",
"peerDependencies": {
"@nestjs/common": ">=6.2.0",
"@nestjs/core": ">=6.2.0",
"knex": ">=0.16.5",
"objection": ">=1.6.8"
},
"devDependencies": {
"@babel/core": "~7.6.4",
"@babel/plugin-proposal-decorators": "~7.6.0",
Expand All @@ -31,6 +57,7 @@
"lint-staged": "~9.4.2",
"objection": "~1.6.9",
"prettier": "~1.18.2",
"prettier-package-json": "~2.1.0",
"reflect-metadata": "~0.1.13",
"rimraf": "~3.0.0",
"rollup": "~1.23.1",
Expand All @@ -41,59 +68,33 @@
"standard-version": "~7.0.0",
"typescript": "~3.6.4"
},
"files": [
"lib",
"dist",
"typings"
"keywords": [
"database",
"knex",
"nestjs",
"objection"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"keywords": [
"nestjs",
"objection",
"knex",
"database"
],
"license": "Apache-2.0",
"lint-staged": {
"*.md": [
"*.{md,yaml,yml}": [
"prettier --write",
"git add"
],
"*.ts": [
"yarn lint",
"prettier --write",
"git add"
],
"package.json": [
"prettier-package-json --write",
"git add"
]
},
"main": "dist/nestjs-objection.umd.js",
"module": "dist/nestjs-objection.esm.js",
"name": "@willsoto/nestjs-objection",
"peerDependencies": {
"@nestjs/common": ">=6.2.0",
"@nestjs/core": ">=6.2.0",
"knex": ">=0.16.5",
"objection": ">=1.6.8"
},
"scripts": {
"build": "rollup --config rollup.config.js",
"clean": "rimraf dist",
"lint": "eslint lib --ext ts --fix",
"postbuild": "yarn typings",
"postrelease": "conventional-github-releaser -p angular",
"prebuild": "yarn clean",
"prerelease": "yarn build",
"pretypings": "rimraf typings",
"release": "standard-version --sign --message 'chore(release): %s [skip ci]'",
"test": "jest",
"typings": "tsc --project tsconfig.build.json --declaration --declarationDir typings --emitDeclarationOnly"
},
"typings": "./typings/index.d.ts",
"version": "2.0.0",
"volta": {
"node": "12.12.0",
"yarn": "1.19.1"
Expand Down
60 changes: 58 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,11 @@ atob@^2.1.1:
resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

author-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/author-regex/-/author-regex-1.0.0.tgz#d08885be6b9bbf9439fe087c76287245f0a81450"
integrity sha1-0IiFvmubv5Q5/gh8dihyRfCoFFA=

avvio@^6.2.2:
version "6.2.2"
resolved "https://registry.npmjs.org/avvio/-/avvio-6.2.2.tgz#af6ded59bde361fded817a6841a748142c659873"
Expand Down Expand Up @@ -2309,7 +2314,7 @@ commander@2.20.0:
resolved "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==

commander@^2.20.0:
commander@^2.18.0, commander@^2.20.0:
version "2.20.3"
resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
Expand Down Expand Up @@ -3820,6 +3825,15 @@ fs-access@1.0.1:
dependencies:
null-check "^1.0.0"

fs-extra@^7.0.0:
version "7.0.1"
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-minipass@^1.2.5:
version "1.2.7"
resolved "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7"
Expand Down Expand Up @@ -4109,7 +4123,7 @@ got@^8.0.0:
url-parse-lax "^3.0.0"
url-to-options "^1.0.1"

graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.2.2:
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.2.2:
version "4.2.2"
resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02"
integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==
Expand Down Expand Up @@ -5314,6 +5328,13 @@ json5@^2.1.0:
dependencies:
minimist "^1.2.0"

jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
optionalDependencies:
graceful-fs "^4.1.6"

jsonparse@^1.2.0:
version "1.3.1"
resolved "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
Expand Down Expand Up @@ -6601,6 +6622,13 @@ parent-require@^1.0.0:
resolved "https://registry.npmjs.org/parent-require/-/parent-require-1.0.0.tgz#746a167638083a860b0eef6732cb27ed46c32977"
integrity sha1-dGoWdjgIOoYLDu9nMssn7UbDKXc=

parse-author@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz#d3460bf1ddd0dfaeed42da754242e65fb684a81f"
integrity sha1-00YL8d3Q367tQtp1QkLmX7aEqB8=
dependencies:
author-regex "^1.0.0"

parse-filepath@^1.0.1:
version "1.0.2"
resolved "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891"
Expand Down Expand Up @@ -6852,6 +6880,19 @@ prepend-http@^2.0.0:
resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=

prettier-package-json@~2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/prettier-package-json/-/prettier-package-json-2.1.0.tgz#12160af8d24518f74c1f310d950caa467ec530b6"
integrity sha512-0AV5tsBPkhljw0pDWQqCZhm+9+cre6QWQfMlOunjjZNN1cotSRQdyBn/koJijnO7VYP4aVEp9tA8RhlBLcOcLA==
dependencies:
commander "^2.18.0"
fs-extra "^7.0.0"
glob "^7.1.3"
minimatch "^3.0.4"
parse-author "^2.0.0"
sort-object-keys "^1.1.2"
sort-order "^1.0.1"

prettier@~1.18.2:
version "1.18.2"
resolved "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
Expand Down Expand Up @@ -7791,6 +7832,16 @@ sort-keys@^2.0.0:
dependencies:
is-plain-obj "^1.0.0"

sort-object-keys@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/sort-object-keys/-/sort-object-keys-1.1.2.tgz#d3a6c48dc2ac97e6bc94367696e03f6d09d37952"
integrity sha1-06bEjcKsl+a8lDZ2luA/bQnTeVI=

sort-order@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/sort-order/-/sort-order-1.0.1.tgz#d822b8cdb90ea6a9df968c4bd45987cf548199e6"
integrity sha1-2CK4zbkOpqnfloxL1FmHz1SBmeY=

source-map-resolve@^0.5.0:
version "0.5.2"
resolved "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259"
Expand Down Expand Up @@ -8554,6 +8605,11 @@ unique-stream@^2.0.2:
json-stable-stringify-without-jsonify "^1.0.1"
through2-filter "^3.0.0"

universalify@^0.1.0:
version "0.1.2"
resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==

unpipe@1.0.0, unpipe@~1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
Expand Down

0 comments on commit b1c8e93

Please sign in to comment.