Skip to content

Commit 65d2c08

Browse files
author
Vitaly Bevzik
committed
Add .json file as allowed
1 parent e815001 commit 65d2c08

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/util.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ function hasFileOnDisk(filesOnDisk, file) {
5050
function getFileType(file) {
5151
if (file.ext === '.js') return 'server_js';
5252
if (file.ext === '.gs') return 'server_js';
53+
if (file.ext === '.json') return 'json';
5354
if (file.ext === '.html') return 'html';
5455
throw new Error('Unsupported file type found. Google Apps Script only allows .js and .html');
5556
}
5657

5758
function getFileExtension(file) {
5859
if (file.type === 'server_js') return '.js';
60+
if (file.type === 'json') return '.json';
5961
if (file.type === 'html') return '.html';
6062
throw new Error('Unsupported file type found');
6163
}

0 commit comments

Comments
 (0)