Skip to content

Commit 035e673

Browse files
committed
Merge branch 'main' into type-module
2 parents 3886b52 + 938e4c1 commit 035e673

18 files changed

Lines changed: 277 additions & 60 deletions

File tree

.changeset/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "changesets/ghcommit" }],
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "changesets/ghcommit" }
6+
],
47
"commit": false,
58
"fixed": [],
69
"linked": [],

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: pnpm lint
4949

5050
- name: Format
51-
run: pnpm format:check
51+
run: pnpm format
5252

5353
test:
5454
name: Test

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- name: Create or update release pull request
3636
id: changesets
3737
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
38+
with:
39+
version: pnpm version-packages
3840

3941
publish:
4042
name: Publish

.oxfmtrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"sortImports": {
5+
"newlinesBetween": false
6+
}
7+
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
and previously could be used in its place.
1616

1717
- [#40](https://github.com/changesets/ghcommit/pull/40) [`4117e39`](https://github.com/changesets/ghcommit/commit/4117e398eafae4cdf42837e1240e140dbc6592db) Thanks [@s0](https://github.com/s0)! - Refactor & clean up options for multiple functions
18-
1918
- For `commitFilesFromDirectory`:
2019
- Rename `workingDirectory` to `cwd` for consistency across repos,
2120
and utils like `exec`

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Directly change files on github using the github API, to support GPG signing",
55
"keywords": [
66
"actions",
7-
"github",
87
"git",
8+
"github",
99
"gpg"
1010
],
1111
"license": "MIT",
@@ -17,6 +17,9 @@
1717
"type": "git",
1818
"url": "git+https://github.com/changesets/ghcommit.git"
1919
},
20+
"files": [
21+
"dist"
22+
],
2023
"type": "module",
2124
"sideEffects": false,
2225
"exports": {
@@ -41,13 +44,20 @@
4144
"require": "./dist/node.cjs"
4245
}
4346
},
47+
"publishConfig": {
48+
"access": "public"
49+
},
4450
"scripts": {
4551
"build": "pnpm codegen:github && tsc --noEmit && tsdown",
4652
"codegen:github": "graphql-codegen --config src/github/codegen.ts",
47-
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
48-
"format:fix": "prettier --write \"**/*.{ts,tsx,md}\"",
53+
"format": "oxfmt --check",
54+
"format:fix": "oxfmt",
4955
"lint": "oxlint",
50-
"test:integration": "vitest -c vitest.integration.config.ts"
56+
"test:integration": "vitest -c vitest.integration.config.ts",
57+
"version-packages": "pnpm changeset version && pnpm format:fix"
58+
},
59+
"dependencies": {
60+
"isomorphic-git": "^1.36.3"
5161
},
5262
"devDependencies": {
5363
"@actions/github": "^9.0.0",
@@ -62,25 +72,15 @@
6272
"@octokit/graphql-schema": "^14.56.0",
6373
"@types/node": "^20.11.24",
6474
"dotenv": "^16.4.5",
75+
"oxfmt": "^0.51.0",
6576
"oxlint": "^1.63.0",
6677
"oxlint-tsgolint": "^0.22.1",
6778
"pino": "^9.3.2",
6879
"pino-pretty": "^11.2.2",
69-
"prettier": "^3.3.3",
7080
"publint": "^0.3.20",
7181
"tsdown": "^0.22.0",
7282
"typescript": "^6.0.3",
7383
"vitest": "^4.1.5"
7484
},
75-
"files": [
76-
"dist"
77-
],
78-
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499",
79-
"publishConfig": {
80-
"access": "public"
81-
},
82-
"dependencies": {
83-
"isomorphic-git": "^1.36.3"
84-
},
85-
"prettier": {}
85+
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499"
8686
}

0 commit comments

Comments
 (0)