Skip to content

Commit 522a1a1

Browse files
authored
Merge pull request #1 from dumbjs/chore/pkg
chore: pkg maintenance
2 parents 53c0417 + c438090 commit 522a1a1

12 files changed

+1862
-2821
lines changed

.eslintrc.cjs

-27
This file was deleted.

.github/workflows/release-beta.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14+
- name: Corepack
15+
run: npm i -g corepack@latest && corepack enable
16+
1417
- uses: actions/setup-node@v3
1518
with:
1619
node-version: '18.x'
1720
registry-url: 'https://registry.npmjs.org'
21+
cache: 'pnpm'
1822

1923
- name: Install dependencies
20-
run: npm ci
24+
run: pnpm i --frozen-lockfile
2125

2226
- name: Test
23-
run: npm run test
27+
run: pnpm test
2428

2529
- name: Publish
2630
run: |
27-
npm publish --tag beta
31+
pnpm publish --tag beta
2832
env:
2933
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,27 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17+
- name: Corepack
18+
run: npm i -g corepack@latest && corepack enable
19+
1720
- uses: actions/setup-node@v3
1821
with:
1922
node-version: '18.x'
2023
registry-url: 'https://registry.npmjs.org'
24+
cache: 'pnpm'
2125

2226
- name: Install dependencies
23-
run: npm ci
27+
run: pnpm i --frozen-lockfile
2428

2529
- name: Test
26-
run: npm run test
30+
run: pnpm test
2731

2832
- name: Publish
2933
run: |
30-
npm publish
34+
pnpm publish
3135
env:
3236
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
37+
3438
- name: Publish JSR
3539
run: |
3640
npx jsr publish

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Corepack
12+
run: npm i -g corepack@latest && corepack enable
1113
- uses: actions/checkout@v2
1214
with:
1315
ref: ${{ github.head_ref }}
@@ -16,6 +18,6 @@ jobs:
1618
node-version: '18.x'
1719
registry-url: 'https://registry.npmjs.org'
1820
- name: Deps
19-
run: npm ci
21+
run: pnpm i --frozen-lockfile
2022
- name: Test
21-
run: npm run test:ci
23+
run: pnpm test:ci

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm nano-staged

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exception of the BigInt implementation of `sdbm`)
2323
[Details →](http://www.cse.yorku.ca/~oz/hash.html#djb2)
2424

2525
```js
26-
import { djb2 as hash } from "@dumbjs/quick-hash";
26+
import { djb2 as hash } from '@dumbjs/quick-hash'
2727
// or
2828
// import { djb2 as hash } from '@dumbjs/quick-hash/djb2'
2929

jsr.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"name": "@dumbjs/quick-hash",
3-
"version": "0.0.3",
4-
"exports": "./src/index.js"
5-
}
2+
"name": "@dumbjs/quick-hash",
3+
"version": "0.0.3",
4+
"exports": {
5+
".": "./src/index.js",
6+
"./djb2": "./src/djb2.js",
7+
"./sdbm": "./src/sdbm.js"
8+
}
9+
}

0 commit comments

Comments
 (0)