@evanpurkhiser/oxc-config 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +9 -11
- package/mise.toml +7 -0
- package/package.json +17 -11
- package/prek.toml +33 -0
- package/.github/workflows/ci.yml +0 -17
|
@@ -3,32 +3,27 @@ name: publish
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
|
+
pull_request:
|
|
6
7
|
|
|
7
8
|
jobs:
|
|
8
9
|
check:
|
|
9
10
|
runs-on: ubuntu-latest
|
|
10
11
|
steps:
|
|
11
12
|
- uses: actions/checkout@v4
|
|
12
|
-
- uses:
|
|
13
|
-
with:
|
|
14
|
-
node-version: '24'
|
|
15
|
-
- uses: pnpm/action-setup@v4
|
|
13
|
+
- uses: jdx/mise-action@v4
|
|
16
14
|
- run: pnpm install --frozen-lockfile
|
|
17
|
-
- run:
|
|
15
|
+
- run: prek run --all-files
|
|
18
16
|
|
|
19
17
|
publish:
|
|
20
18
|
runs-on: ubuntu-latest
|
|
21
19
|
needs: check
|
|
20
|
+
if: github.event_name == 'push'
|
|
22
21
|
permissions:
|
|
23
22
|
contents: write
|
|
24
23
|
id-token: write
|
|
25
24
|
steps:
|
|
26
25
|
- uses: actions/checkout@v4
|
|
27
|
-
- uses:
|
|
28
|
-
with:
|
|
29
|
-
node-version: '24'
|
|
30
|
-
registry-url: 'https://registry.npmjs.org'
|
|
31
|
-
- uses: pnpm/action-setup@v4
|
|
26
|
+
- uses: jdx/mise-action@v4
|
|
32
27
|
- run: pnpm install --frozen-lockfile
|
|
33
28
|
- name: bump version
|
|
34
29
|
run: |
|
|
@@ -36,4 +31,7 @@ jobs:
|
|
|
36
31
|
git config user.email "<>"
|
|
37
32
|
pnpm version minor
|
|
38
33
|
git push
|
|
39
|
-
- run:
|
|
34
|
+
- run: pnpm publish --no-git-checks --provenance --access=public
|
|
35
|
+
env:
|
|
36
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
37
|
+
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|
package/mise.toml
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@evanpurkhiser/oxc-config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "Evan Purkhiser's personal Oxc configuration",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Evan Purkhiser",
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
"./react": "./src/react.mjs",
|
|
16
16
|
"./oxfmt": "./src/oxfmt.mjs"
|
|
17
17
|
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"lint": "oxlint src oxlint.config.ts profiles/all/oxlint.config.ts",
|
|
20
|
-
"format": "oxfmt .",
|
|
21
|
-
"format:check": "oxfmt --check .",
|
|
22
|
-
"check": "pnpm run lint && pnpm run format:check"
|
|
23
|
-
},
|
|
24
18
|
"devDependencies": {
|
|
25
19
|
"oxfmt": "^0.41.0",
|
|
26
20
|
"oxlint": "^1.56.0",
|
|
@@ -29,8 +23,20 @@
|
|
|
29
23
|
"peerDependencies": {
|
|
30
24
|
"oxlint": ">=1.56.0"
|
|
31
25
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
26
|
+
"devEngines": {
|
|
27
|
+
"packageManager": {
|
|
28
|
+
"name": "pnpm",
|
|
29
|
+
"version": "11.0.0"
|
|
30
|
+
},
|
|
31
|
+
"runtime": {
|
|
32
|
+
"name": "node",
|
|
33
|
+
"version": "^24.15.0"
|
|
34
|
+
}
|
|
34
35
|
},
|
|
35
|
-
"
|
|
36
|
-
|
|
36
|
+
"scripts": {
|
|
37
|
+
"lint": "oxlint src oxlint.config.ts profiles/all/oxlint.config.ts",
|
|
38
|
+
"format": "oxfmt .",
|
|
39
|
+
"format:check": "oxfmt --check .",
|
|
40
|
+
"check": "pnpm run lint && pnpm run format:check"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/prek.toml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[[repos]]
|
|
2
|
+
repo = "https://github.com/pre-commit/pre-commit-hooks"
|
|
3
|
+
rev = "v6.0.0"
|
|
4
|
+
hooks = [
|
|
5
|
+
{ id = "trailing-whitespace", priority = 0 },
|
|
6
|
+
{ id = "end-of-file-fixer", priority = 1 },
|
|
7
|
+
{ id = "mixed-line-ending", priority = 2 },
|
|
8
|
+
{ id = "check-merge-conflict", priority = 100 },
|
|
9
|
+
{ id = "check-added-large-files", priority = 100 },
|
|
10
|
+
{ id = "check-executables-have-shebangs", priority = 100 },
|
|
11
|
+
{ id = "check-shebang-scripts-are-executable", priority = 100 },
|
|
12
|
+
{ id = "check-case-conflict", priority = 100 },
|
|
13
|
+
{ id = "check-symlinks", priority = 100 },
|
|
14
|
+
{ id = "detect-private-key", priority = 100 },
|
|
15
|
+
{ id = "check-json", priority = 100 },
|
|
16
|
+
{ id = "check-toml", priority = 100 },
|
|
17
|
+
{ id = "check-yaml", priority = 100 },
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[[repos]]
|
|
21
|
+
repo = "https://github.com/crate-ci/typos"
|
|
22
|
+
rev = "v1.48.0"
|
|
23
|
+
hooks = [{ id = "typos", args = ["--force-exclude"], priority = 100 }]
|
|
24
|
+
|
|
25
|
+
[[repos]]
|
|
26
|
+
repo = "https://github.com/rhysd/actionlint"
|
|
27
|
+
rev = "v1.7.12"
|
|
28
|
+
hooks = [{ id = "actionlint-system", priority = 11 }]
|
|
29
|
+
|
|
30
|
+
[[repos]]
|
|
31
|
+
repo = "https://github.com/evanpurkhiser/prek-personal"
|
|
32
|
+
rev = "v1.0.2"
|
|
33
|
+
hooks = [{ id = "oxfmt-system", priority = 10 }, { id = "oxlint-system", priority = 11 }]
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: ci
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
check:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v4
|
|
12
|
-
- uses: actions/setup-node@v4
|
|
13
|
-
with:
|
|
14
|
-
node-version: '24'
|
|
15
|
-
- uses: pnpm/action-setup@v4
|
|
16
|
-
- run: pnpm install --frozen-lockfile
|
|
17
|
-
- run: pnpm run check
|