File tree Expand file tree Collapse file tree 9 files changed +78
-75
lines changed Expand file tree Collapse file tree 9 files changed +78
-75
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ jobs:
25
25
- name : Upload Linux binaries to release
26
26
uses : JasonEtco/upload-to-release@master
27
27
with :
28
- args : ' cwc-linux application/x-executable'
28
+ args : ' dist/ cwc-linux application/x-executable'
29
29
- name : Upload macOS Intel binaries to release
30
30
uses : JasonEtco/upload-to-release@master
31
31
with :
32
- args : ' cwc-apple-intel application/x-mach-binary'
32
+ args : ' dist/ cwc-apple-intel application/x-mach-binary'
33
33
- name : Upload macOS ARM binaries to release
34
34
uses : JasonEtco/upload-to-release@master
35
35
with :
36
36
args : ' cwc-apple-arm application/x-mach-binary'
37
37
- name : Upload Windows binaries to release
38
38
uses : JasonEtco/upload-to-release@master
39
39
with :
40
- args : ' cwc-windows.exe application/vnd.microsoft.portable-executable'
40
+ args : ' dist/ cwc-windows.exe application/vnd.microsoft.portable-executable'
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
cov_profile /
3
3
* .lcov
4
+ dist /** /*
5
+ ! dist /.gitkeep
Original file line number Diff line number Diff line change 1
1
<!-- deno-fmt-ignore-file -->
2
2
# Chrome Web Store CLI
3
3
4
- [ ![ deno version] ( https://img.shields.io/badge/deno-^1.14.0 -lightgrey?logo=deno )] ( https://github.com/denoland/deno )
4
+ [ ![ deno version] ( https://img.shields.io/badge/deno-^1.15.2 -lightgrey?logo=deno )] ( https://github.com/denoland/deno )
5
5
[ ![ GitHub Release] ( https://img.shields.io/github/release/getoslash/chrome-webstore-cli.svg )] ( https://github.com/getoslash/chrome-webstore-cli/releases )
6
6
[ ![ Release] ( https://github.com/getoslash/chrome-webstore-cli/actions/workflows/release.yml/badge.svg )] ( https://github.com/getoslash/chrome-webstore-cli/actions/workflows/release.yml )
7
7
[ ![ codecov] ( https://codecov.io/gh/getoslash/chrome-webstore-cli/branch/main/graph/badge.svg?token=??? )] ( https://codecov.io/gh/getoslash/chrome-webstore-cli )
Original file line number Diff line number Diff line change 1
- export * as path from "https://deno.land/std@0.107 .0/path/mod.ts" ;
2
- export { readableStreamFromReader } from "https://deno.land/std@0.107 .0/io/mod.ts" ;
3
- export { cac } from "https://unpkg.com/[email protected] .3 /mod.ts" ;
1
+ export * as path from "https://deno.land/std@0.112 .0/path/mod.ts" ;
2
+ export { readableStreamFromReader } from "https://deno.land/std@0.112 .0/io/mod.ts" ;
3
+ export { cac } from "https://unpkg.com/[email protected] .11 /mod.ts" ;
4
4
export { JSZip } from "https://deno.land/x/[email protected] /mod.ts" ;
5
5
export { default as debugLog } from "https://deno.land/x/[email protected] /debug.ts" ;
6
6
export { default as apiClient } from "https://deno.land/x/[email protected] /mod.ts" ;
Original file line number Diff line number Diff line change 1
- export * as path from "https://deno.land/std@0.107 .0/path/mod.ts" ;
1
+ export * as path from "https://deno.land/std@0.112 .0/path/mod.ts" ;
2
2
export {
3
3
assertEquals ,
4
4
assertThrowsAsync ,
5
- } from "https://deno.land/std@0.107 .0/testing/asserts.ts" ;
6
- export { createHash } from "https://deno.land/std@0.107 .0/hash/mod.ts" ;
7
- export { iter } from "https://deno.land/std@0.107 .0/io/mod .ts" ;
8
- export { stub } from "https://deno.land/x/mock@v0 .10.0 /mod.ts" ;
9
- export type { Stub } from "https://deno.land/x/mock@v0 .10.0 /mod.ts" ;
10
- export type { SupportedAlgorithm } from "https://deno.land/std@0.107 .0/hash/mod.ts" ;
5
+ } from "https://deno.land/std@0.112 .0/testing/asserts.ts" ;
6
+ export { createHash } from "https://deno.land/std@0.112 .0/hash/mod.ts" ;
7
+ export { iterateReader } from "https://deno.land/std@0.112 .0/streams/conversion .ts" ;
8
+ export { stub } from "https://deno.land/x/mock@0 .10.1 /mod.ts" ;
9
+ export type { Stub } from "https://deno.land/x/mock@0 .10.1 /mod.ts" ;
10
+ export type { SupportedAlgorithm } from "https://deno.land/std@0.112 .0/hash/mod.ts" ;
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ scripts:
35
35
- read
36
36
- write
37
37
- desc : Generate lcov data for coverage
38
- cmd : deno coverage cov_profile --exclude="test/**" --lcov > cov_profile.lcov
38
+ cmd : deno coverage cov_profile --exclude="deps.ts" --exclude="dev_deps.ts" --exclude=" test/**" --lcov > cov_profile.lcov
39
39
compile :
40
40
desc : Compile binary for all platforms
41
41
pll :
42
- - deno compile --output cwc-linux --target x86_64-unknown-linux-gnu cli.ts
43
- - deno compile --output cwc-apple-intel --target x86_64-apple-darwin cli.ts
44
- - deno compile --output cwc-apple-arm --target aarch64-apple-darwin cli.ts
45
- - deno compile --output cwc-windows --target x86_64-pc-windows-msvc cli.ts
42
+ - deno compile --output dist/ cwc-linux --target x86_64-unknown-linux-gnu cli.ts
43
+ - deno compile --output dist/ cwc-apple-intel --target x86_64-apple-darwin cli.ts
44
+ - deno compile --output dist/ cwc-apple-arm --target aarch64-apple-darwin cli.ts
45
+ - deno compile --output dist/ cwc-windows --target x86_64-pc-windows-msvc cli.ts
46
46
reload : false
47
47
cachedOnly : true
48
48
lock : lock.json
Original file line number Diff line number Diff line change 1
- import { createHash , iter } from "../../dev_deps.ts" ;
1
+ import { createHash , iterateReader } from "../../dev_deps.ts" ;
2
2
import type { SupportedAlgorithm } from "../../dev_deps.ts" ;
3
3
4
4
export const calculateFileHash = async (
@@ -7,7 +7,7 @@ export const calculateFileHash = async (
7
7
) : Promise < string > => {
8
8
const hash = createHash ( hashMethod ) ;
9
9
const file = await Deno . open ( filePath ) ;
10
- for await ( const chunk of iter ( file ) ) {
10
+ for await ( const chunk of iterateReader ( file ) ) {
11
11
hash . update ( chunk ) ;
12
12
}
13
13
Deno . close ( file . rid ) ;
You can’t perform that action at this time.
0 commit comments