Skip to content

Commit

Permalink
chore(deps): add prettier-plugin-packagejson (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Jan 11, 2025
1 parent 19f031a commit 5daf574
Show file tree
Hide file tree
Showing 3 changed files with 1,297 additions and 925 deletions.
8 changes: 7 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @type {import('prettier').Config}
*/
module.exports = {
plugins: ['prettier-plugin-organize-imports'],
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-packagejson'],
singleQuote: true,
trailingComma: 'es5',
overrides: [
Expand All @@ -24,5 +24,11 @@ module.exports = {
organizeImportsSkipDestructiveCodeActions: true,
},
},
{
files: 'package.json',
options: {
packageSortOrder: ['name', 'version', 'description', 'scripts'],
},
},
],
};
85 changes: 43 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,42 @@
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"preflight": "pnpm install && run-s format build lint test:update-snapshots ts-check"
},
"bin": {
"node-pg-migrate": "bin/node-pg-migrate.js",
"node-pg-migrate-cjs": "bin/node-pg-migrate.js",
"node-pg-migrate-esm": "bin/node-pg-migrate.mjs"
"keywords": [
"db",
"database",
"migrate",
"migration",
"migrations",
"migrator",
"db-migrate",
"sql",
"pg",
"postgre",
"postgres",
"postgresql",
"cockroach",
"cockroachdb",
"extensible",
"expandable",
"programatic",
"programable",
"api"
],
"homepage": "https://github.com/salsita/node-pg-migrate",
"bugs": {
"url": "https://github.com/salsita/node-pg-migrate/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/salsita/node-pg-migrate.git"
},
"license": "MIT",
"author": "Theo Ephraim",
"contributors": [
"Salsita Software <[email protected]>",
"Christopher Quadflieg <[email protected]>"
],
"type": "commonjs",
"main": "dist/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"./dist/*": {
"types": "./dist/*.d.ts",
Expand All @@ -56,46 +83,19 @@
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"bin": {
"node-pg-migrate": "bin/node-pg-migrate.js",
"node-pg-migrate-cjs": "bin/node-pg-migrate.js",
"node-pg-migrate-esm": "bin/node-pg-migrate.mjs"
},
"files": [
"bin",
"dist",
"templates"
],
"author": "Theo Ephraim",
"contributors": [
"Salsita Software <[email protected]>",
"Christopher Quadflieg <[email protected]>"
],
"keywords": [
"db",
"database",
"migrate",
"migration",
"migrations",
"migrator",
"db-migrate",
"sql",
"pg",
"postgre",
"postgres",
"postgresql",
"cockroach",
"cockroachdb",
"extensible",
"expandable",
"programatic",
"programable",
"api"
],
"bugs": {
"url": "https://github.com/salsita/node-pg-migrate/issues"
},
"license": "MIT",
"homepage": "https://github.com/salsita/node-pg-migrate",
"repository": {
"type": "git",
"url": "git+https://github.com/salsita/node-pg-migrate.git"
},
"dependencies": {
"glob": "11.0.0",
"yargs": "~17.7.0"
Expand Down Expand Up @@ -128,6 +128,7 @@
"pg": "8.13.1",
"prettier": "3.4.2",
"prettier-plugin-organize-imports": "4.1.0",
"prettier-plugin-packagejson": "2.5.6",
"rimraf": "6.0.1",
"ts-node": "10.9.2",
"tsup": "8.3.5",
Expand Down
Loading

0 comments on commit 5daf574

Please sign in to comment.