diff --git a/.changeset/strange-terms-occur.md b/.changeset/strange-terms-occur.md new file mode 100644 index 00000000..5d7dc467 --- /dev/null +++ b/.changeset/strange-terms-occur.md @@ -0,0 +1,7 @@ +--- +"prettier-plugin-pkg": minor +"prettier-plugin-sh": patch +"prettier-plugin-sql": patch +--- + +feat!: add donate field support diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 6bad57ce..076996cf 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -3,4 +3,8 @@ github: - 1stG - rxts - unts +patreon: 1stG open_collective: unts +custom: + - https://opencollective.com/1stG + - https://opencollective.com/rxts diff --git a/packages/pkg/package.json b/packages/pkg/package.json index 8045090e..177789bb 100644 --- a/packages/pkg/package.json +++ b/packages/pkg/package.json @@ -6,6 +6,38 @@ "repository": "git@github.com/un-ts/prettier.git", "homepage": "https://github.com/un-ts/prettier/tree/master/packages/pkg", "author": "JounQin (https://www.1stG.me) ", + "donate": { + "recipients": [ + { + "name": "unts", + "platform": "opencollective", + "address": "https://opencollective.com/unts", + "weight": 60 + }, + { + "name": "rxts", + "platform": "opencollective", + "address": "https://opencollective.com/rxts", + "weight": 20 + }, + { + "name": "1stG", + "email": "i@1stg.me", + "weight": 20, + "platforms": [ + { + "platform": "opencollective", + "address": "https://opencollective.com/1stG" + }, + { + "platform": "patreon", + "address": "https://www.patreon.com/1stG" + } + ] + } + ] + }, + "funding": "https://opencollective.com/unts", "license": "MPL-2.0", "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" diff --git a/packages/pkg/src/rules/sort.ts b/packages/pkg/src/rules/sort.ts index 960e4260..10b3e681 100644 --- a/packages/pkg/src/rules/sort.ts +++ b/packages/pkg/src/rules/sort.ts @@ -39,10 +39,11 @@ const primary = [ 'repository', 'homepage', 'bugs', - 'funding', 'author', 'publisher', 'contributors', + 'donate', + 'funding', 'license', 'preview', 'private', diff --git a/packages/sh/package.json b/packages/sh/package.json index 1231201d..1bc2c9b7 100644 --- a/packages/sh/package.json +++ b/packages/sh/package.json @@ -6,6 +6,38 @@ "repository": "git@github.com/un-ts/prettier.git", "homepage": "https://github.com/un-ts/prettier/tree/master/packages/sh", "author": "JounQin (https://www.1stG.me) ", + "donate": { + "recipients": [ + { + "name": "unts", + "platform": "opencollective", + "address": "https://opencollective.com/unts", + "weight": 60 + }, + { + "name": "rxts", + "platform": "opencollective", + "address": "https://opencollective.com/rxts", + "weight": 20 + }, + { + "name": "1stG", + "email": "i@1stg.me", + "weight": 20, + "platforms": [ + { + "platform": "opencollective", + "address": "https://opencollective.com/1stG" + }, + { + "platform": "patreon", + "address": "https://www.patreon.com/1stG" + } + ] + } + ] + }, + "funding": "https://opencollective.com/unts", "license": "MIT", "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" diff --git a/packages/sql/package.json b/packages/sql/package.json index ddbbcea3..6c1d9499 100644 --- a/packages/sql/package.json +++ b/packages/sql/package.json @@ -6,6 +6,38 @@ "repository": "git@github.com/un-ts/prettier.git", "homepage": "https://github.com/un-ts/prettier/tree/master/packages/sql", "author": "JounQin (https://www.1stG.me) ", + "donate": { + "recipients": [ + { + "name": "unts", + "platform": "opencollective", + "address": "https://opencollective.com/unts", + "weight": 60 + }, + { + "name": "rxts", + "platform": "opencollective", + "address": "https://opencollective.com/rxts", + "weight": 20 + }, + { + "name": "1stG", + "email": "i@1stg.me", + "weight": 20, + "platforms": [ + { + "platform": "opencollective", + "address": "https://opencollective.com/1stG" + }, + { + "platform": "patreon", + "address": "https://www.patreon.com/1stG" + } + ] + } + ] + }, + "funding": "https://opencollective.com/unts", "license": "MIT", "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0"