Skip to content

Commit 2746a74

Browse files
committed
Build tweaks
1 parent deb8464 commit 2746a74

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cp src/icon*.png build-chrome
2020

2121
rm -f jsonview-chrome.zip
2222
pushd build-chrome
23-
zip -r ../jsonview-chrome.zip *
23+
zip -r -q ../jsonview-chrome.zip *
2424
popd
2525

2626

@@ -38,5 +38,5 @@ cp src/icon*.png build-firefox
3838

3939
rm -f jsonview-firefox.zip
4040
pushd build-firefox
41-
zip -r ../jsonview-firefox.zip *
41+
zip -r -q ../jsonview-firefox.zip *
4242
popd

src/background.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* content script reformats the page.
77
*/
88

9-
import "@types/chrome";
10-
119
import { isJSONContentType } from "./content-type";
1210

1311
function isRedirect(status: number) {

src/content.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { errorPage, jsonToHTML } from "./jsonformatter";
33
import { installCollapseEventListeners } from "./collapse";
44
import { safeStringEncodeNums } from "./safe-encode-numbers";
55

6-
import "@types/chrome";
7-
86
/**
97
* This script runs on every page. It communicates with the background script
108
* to help decide whether to treat the contents of the page as JSON.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"forceConsistentCasingInFileNames": true,
1414
"allowJs": true,
1515
"checkJs": true,
16-
"typeRoots": ["node_modules/@types", "node_modules/web-ext-types"]
16+
"typeRoots": ["node_modules/@types", "node_modules/web-ext-types", "node_modules/@types/chrome"]
1717
},
1818
"include": ["./src/*.ts"]
1919
}

0 commit comments

Comments
 (0)