We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e815001 commit 65d2c08Copy full SHA for 65d2c08
1 file changed
lib/util.js
@@ -50,12 +50,14 @@ function hasFileOnDisk(filesOnDisk, file) {
50
function getFileType(file) {
51
if (file.ext === '.js') return 'server_js';
52
if (file.ext === '.gs') return 'server_js';
53
+ if (file.ext === '.json') return 'json';
54
if (file.ext === '.html') return 'html';
55
throw new Error('Unsupported file type found. Google Apps Script only allows .js and .html');
56
}
57
58
function getFileExtension(file) {
59
if (file.type === 'server_js') return '.js';
60
+ if (file.type === 'json') return '.json';
61
if (file.type === 'html') return '.html';
62
throw new Error('Unsupported file type found');
63
0 commit comments