Skip to content

Commit 3396d37

Browse files
authored
Maintenance (#41)
1 parent 014798b commit 3396d37

File tree

15 files changed

+1248
-1990
lines changed

15 files changed

+1248
-1990
lines changed

.changeset/better-suns-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"remsg": patch
3+
---
4+
5+
Basic maintenance work. Replaced build tool.

.changeset/hot-beans-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"remsg": patch
3+
---
4+
5+
Enabled trusted publishing.

.changeset/late-flowers-sniff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"remsg": patch
3+
---
4+
5+
Unbundled `binary-util`

.github/workflows/changesets.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,37 @@ on:
99
workflow_dispatch:
1010

1111
permissions:
12-
contents: write
13-
pull-requests: write
14-
id-token: write
12+
contents: read
13+
14+
concurrency:
15+
group: ci-${{ github.ref }}
16+
cancel-in-progress: true
1517

1618
jobs:
1719
changesets:
1820
runs-on: ubuntu-latest
1921

22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
id-token: write
26+
2027
steps:
21-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2229
with:
2330
fetch-depth: 0
31+
persist-credentials: false
2432

25-
- uses: actions/setup-node@v4
33+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
34+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2635
with:
2736
node-version: 22
2837

29-
- run: corepack enable
30-
3138
- name: find pnpm cache path
3239
id: cache
33-
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
40+
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
3441

35-
- uses: actions/cache@v4
42+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3643
with:
3744
path: ${{ steps.cache.outputs.path }}
3845
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -43,11 +50,11 @@ jobs:
4350
run: pnpm install --frozen-lockfile
4451

4552
- name: Build
46-
run: pnpm run build
53+
run: node --run build
4754

4855
- name: Update release PR / Publish packages to `npm`
4956
id: changesets
50-
uses: changesets/action@v1
57+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1
5158
with:
5259
title: Release
5360
commit: Release new version

.github/workflows/ci.yml

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,32 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ci-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
jobs:
1017
lint:
1118
runs-on: ubuntu-latest
1219

1320
steps:
14-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
22+
with:
23+
persist-credentials: false
1524

16-
- uses: actions/setup-node@v4
25+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
26+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1727
with:
1828
node-version: 22
1929

20-
- run: corepack enable
21-
2230
- name: find pnpm cache path
2331
id: cache
24-
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
32+
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
2533

26-
- uses: actions/cache@v4
34+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2735
with:
2836
path: ${{ steps.cache.outputs.path }}
2937
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -33,25 +41,26 @@ jobs:
3341
- name: Install dependencies
3442
run: pnpm install --frozen-lockfile
3543

36-
- run: pnpm lint
44+
- run: node --run lint
3745

3846
typecheck:
3947
runs-on: ubuntu-latest
4048

4149
steps:
42-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
51+
with:
52+
persist-credentials: false
4353

44-
- uses: actions/setup-node@v4
54+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
55+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4556
with:
4657
node-version: 22
4758

48-
- run: corepack enable
49-
5059
- name: find pnpm cache path
5160
id: cache
52-
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
61+
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
5362

54-
- uses: actions/cache@v4
63+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5564
with:
5665
path: ${{ steps.cache.outputs.path }}
5766
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -61,25 +70,26 @@ jobs:
6170
- name: Install dependencies
6271
run: pnpm install --frozen-lockfile
6372

64-
- run: pnpm typecheck
73+
- run: node --run typecheck
6574

6675
test:
6776
runs-on: ubuntu-latest
6877

6978
steps:
70-
- uses: actions/checkout@v4
79+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
80+
with:
81+
persist-credentials: false
7182

72-
- uses: actions/setup-node@v4
83+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
84+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
7385
with:
7486
node-version: 22
7587

76-
- run: corepack enable
77-
7888
- name: find pnpm cache path
7989
id: cache
80-
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
90+
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
8191

82-
- uses: actions/cache@v4
92+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8393
with:
8494
path: ${{ steps.cache.outputs.path }}
8595
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -89,25 +99,26 @@ jobs:
8999
- name: Install dependencies
90100
run: pnpm install --frozen-lockfile
91101

92-
- run: pnpm test
102+
- run: node --run test
93103

94104
build:
95105
runs-on: ubuntu-latest
96106

97107
steps:
98-
- uses: actions/checkout@v4
108+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
109+
with:
110+
persist-credentials: false
99111

100-
- uses: actions/setup-node@v4
112+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
113+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
101114
with:
102115
node-version: 22
103116

104-
- run: corepack enable
105-
106117
- name: find pnpm cache path
107118
id: cache
108-
run: echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
119+
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
109120

110-
- uses: actions/cache@v4
121+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
111122
with:
112123
path: ${{ steps.cache.outputs.path }}
113124
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -117,6 +128,4 @@ jobs:
117128
- name: Install dependencies
118129
run: pnpm install --frozen-lockfile
119130

120-
- run: pnpm build
121-
122-
- run: pnpm publint
131+
- run: node --run build

.github/workflows/zizmor.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: zizmor
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: [.github/workflows/*]
7+
pull_request:
8+
paths: [.github/workflows/*]
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
lint-workflows:
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read # only required in private repos
23+
actions: read # only required in private repos
24+
security-events: write # allow writing security events
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
29+
with:
30+
persist-credentials: false
31+
32+
- name: Run zizmor 🌈
33+
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
34+
with:
35+
persona: pedantic
36+
annotations: true
37+
advanced-security: false

.github/zizmor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules:
2+
anonymous-definition:
3+
disable: true

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

eslint.config.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,30 @@ export default antfu({
77
jsonc: false,
88
jsx: false,
99
toml: false,
10-
yaml: false,
11-
test: { overrides: { "test/no-import-node-test": "off" } },
10+
pnpm: false,
1211
typescript: {
1312
tsconfigPath: "tsconfig.json",
13+
1414
overrides: {
1515
"no-console": "off",
16-
"ts/no-use-before-define": "off",
16+
"antfu/no-top-level-await": "off",
17+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
18+
"node/prefer-global/process": "off",
1719
"ts/consistent-type-definitions": "off",
18-
"ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
20+
"ts/consistent-type-imports": [
21+
"error",
22+
{ fixStyle: "inline-type-imports", disallowTypeAnnotations: false },
23+
],
1924
"ts/no-unsafe-argument": "off",
2025
"ts/no-unsafe-assignment": "off",
21-
"node/prefer-global/process": "off",
22-
"antfu/no-top-level-await": "off",
23-
"import/consistent-type-specifier-style": "off",
26+
"ts/no-use-before-define": "off",
27+
"unused-imports/no-unused-vars": "off",
2428

2529
"perfectionist/sort-imports": [
2630
"error",
2731
{
2832
type: "natural",
29-
internalPattern: ["@/.+?", "~/.+?"],
33+
internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"],
3034
newlinesBetween: "always",
3135
groups: [
3236
["builtin", "builtin-type"],

package.json

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"url": "https://github.com/beeequeue/remsg.git"
1010
},
1111
"license": "MIT",
12-
"packageManager": "pnpm@10.24.0",
12+
"packageManager": "pnpm@10.25.0",
1313
"engines": {
14-
"node": ">=20"
14+
"node": ">=20.19"
1515
},
1616
"simple-git-hooks": {
1717
"pre-commit": "pnpm lint-staged"
1818
},
1919
"lint-staged": {
20-
"*.{js,jsx,ts,tsx,json,json5,yaml,yml,css,scss,md}": [
20+
"*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json,json5,yaml,yml,css,scss,md}": [
2121
"prettier --write"
2222
]
2323
},
@@ -26,49 +26,32 @@
2626
"CHANGELOG.md"
2727
],
2828
"exports": {
29-
"types": "./dist/index.d.ts",
30-
"import": "./dist/index.js"
29+
"default": "./dist/index.mjs"
3130
},
3231
"scripts": {
33-
"build": "tsup",
32+
"build": "tsdown",
3433
"lint": "eslint src",
3534
"test": "vitest",
3635
"typecheck": "tsc --noEmit",
3736
"prepare": "simple-git-hooks"
3837
},
38+
"dependencies": {
39+
"binary-util": "1.1.1"
40+
},
3941
"devDependencies": {
40-
"@antfu/eslint-config": "5.4.1",
41-
"@changesets/changelog-github": "0.5.2",
42-
"@changesets/cli": "2.29.8",
42+
"@antfu/eslint-config": "6.4.2",
43+
"@changesets/changelog-github": "1.0.0-next.1",
44+
"@changesets/cli": "3.0.0-next.1",
4345
"@tsconfig/node22": "22.0.5",
4446
"@tsconfig/strictest": "2.0.8",
4547
"@types/node": "22.19.1",
46-
"binary-util": "1.1.1",
47-
"dotenv": "16.6.1",
4848
"eslint": "9.39.1",
49-
"eslint-define-config": "2.1.0",
5049
"lint-staged": "16.2.7",
5150
"prettier": "3.7.3",
5251
"publint": "0.3.15",
5352
"simple-git-hooks": "2.13.1",
54-
"tsup": "8.5.1",
53+
"tsdown": "0.17.2",
5554
"typescript": "5.9.3",
56-
"vitest": "3.2.4"
57-
},
58-
"pnpm": {
59-
"overrides": {
60-
"@eslint/markdown": "-",
61-
"@stylistic/eslint-plugin": "-",
62-
"eslint-plugin-jsonc": "-",
63-
"eslint-plugin-toml": "-",
64-
"eslint-plugin-vue": "-",
65-
"eslint-processor-vue-blocks": "-",
66-
"eslint-plugin-yml": "-",
67-
"jsonc-eslint-parser": "-",
68-
"toml-eslint-parser": "-",
69-
"yaml-eslint-parser": "-",
70-
"is-core-module": "npm:@nolyfill/is-core-module@^1",
71-
"safer-buffer": "npm:@nolyfill/safer-buffer@^1"
72-
}
55+
"vitest": "4.0.15"
7356
}
7457
}

0 commit comments

Comments
 (0)