File tree 12 files changed +1862
-2821
lines changed
12 files changed +1862
-2821
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,19 +11,23 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@v2
13
13
14
+ - name : Corepack
15
+ run : npm i -g corepack@latest && corepack enable
16
+
14
17
- uses : actions/setup-node@v3
15
18
with :
16
19
node-version : ' 18.x'
17
20
registry-url : ' https://registry.npmjs.org'
21
+ cache : ' pnpm'
18
22
19
23
- name : Install dependencies
20
- run : npm ci
24
+ run : pnpm i --frozen-lockfile
21
25
22
26
- name : Test
23
- run : npm run test
27
+ run : pnpm test
24
28
25
29
- name : Publish
26
30
run : |
27
- npm publish --tag beta
31
+ pnpm publish --tag beta
28
32
env :
29
33
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,23 +14,27 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
17
+ - name : Corepack
18
+ run : npm i -g corepack@latest && corepack enable
19
+
17
20
- uses : actions/setup-node@v3
18
21
with :
19
22
node-version : ' 18.x'
20
23
registry-url : ' https://registry.npmjs.org'
24
+ cache : ' pnpm'
21
25
22
26
- name : Install dependencies
23
- run : npm ci
27
+ run : pnpm i --frozen-lockfile
24
28
25
29
- name : Test
26
- run : npm run test
30
+ run : pnpm test
27
31
28
32
- name : Publish
29
33
run : |
30
- npm publish
34
+ pnpm publish
31
35
env :
32
36
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
33
-
37
+
34
38
- name : Publish JSR
35
39
run : |
36
40
npx jsr publish
Original file line number Diff line number Diff line change 8
8
test :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Corepack
12
+ run : npm i -g corepack@latest && corepack enable
11
13
- uses : actions/checkout@v2
12
14
with :
13
15
ref : ${{ github.head_ref }}
16
18
node-version : ' 18.x'
17
19
registry-url : ' https://registry.npmjs.org'
18
20
- name : Deps
19
- run : npm ci
21
+ run : pnpm i --frozen-lockfile
20
22
- name : Test
21
- run : npm run test:ci
23
+ run : pnpm test:ci
Original file line number Diff line number Diff line change
1
+ pnpm nano-staged
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ exception of the BigInt implementation of `sdbm`)
23
23
[ Details &rarr ; ] ( http://www.cse.yorku.ca/~oz/hash.html#djb2 )
24
24
25
25
``` js
26
- import { djb2 as hash } from " @dumbjs/quick-hash" ;
26
+ import { djb2 as hash } from ' @dumbjs/quick-hash'
27
27
// or
28
28
// import { djb2 as hash } from '@dumbjs/quick-hash/djb2'
29
29
Original file line number Diff line number Diff line change 1
1
{
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
+ }
You can’t perform that action at this time.
0 commit comments