Skip to content

Commit c3c83e5

Browse files
authored
prepublishOnly (#31)
1 parent 36ac528 commit c3c83e5

9 files changed

Lines changed: 39 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 20
23+
node-version: 24
2424
cache: pnpm
2525

2626
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 24
2727
cache: pnpm
2828
registry-url: https://registry.npmjs.org
2929

.github/workflows/verify-published.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org
2020

2121
- name: Wait for npm package availability

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Setup:
7373

7474
```bash
7575
corepack enable
76+
pnpm install
7677
```
7778

7879
Install dependencies:

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ Home page:
7676

7777
This repository uses a **pnpm monorepo**.
7878

79+
Setup:
80+
81+
```bash
82+
corepack enable
83+
pnpm install
84+
```
85+
7986
```
8087
packages/
8188
client/ main dfsync HTTP client package

packages/client/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

packages/client/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 dfsync contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/client/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# @dfsync/client
22

33
[![npm version](https://img.shields.io/npm/v/@dfsync/client.svg)](https://www.npmjs.com/package/@dfsync/client)
4-
![TypeScript](https://img.shields.io/badge/TypeScript-ready-blue)
5-
[![npm downloads](https://img.shields.io/npm/dm/@dfsync/client.svg)](https://www.npmjs.com/package/@dfsync/client)
6-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/dfsyncjs/dfsync/blob/main/LICENSE)
4+
[![npm downloads](https://img.shields.io/npm/dw/@dfsync/client.svg)](https://www.npmjs.com/package/@dfsync/client)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
76

87
Reliable service-to-service HTTP communication for Node.js and TypeScript.
98

packages/client/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"files": [
1717
"dist",
18-
"README.md"
18+
"README.md",
19+
"LICENSE"
1920
],
2021
"publishConfig": {
2122
"access": "public",
@@ -52,7 +53,8 @@
5253
"coverage": "vitest run --coverage",
5354
"typecheck": "tsc --noEmit",
5455
"lint": "eslint .",
55-
"lint:fix": "eslint . --fix"
56+
"lint:fix": "eslint . --fix",
57+
"prepublishOnly": "pnpm run typecheck && pnpm run test && npm pack --dry-run"
5658
},
5759
"devDependencies": {
5860
"@types/node": "^22.13.10",

0 commit comments

Comments
 (0)