add compile script to typescript

This commit is contained in:
Timo Hocker 2020-04-23 16:38:29 +02:00
parent 3160ccd49c
commit 5a6c874425

View File

@ -46,6 +46,8 @@ export default class Node implements Snippet {
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs', lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
test: 'nyc ava' test: 'nyc ava'
}; };
if (use_ts)
obj.scripts.compile = 'tsc';
return obj; return obj;
}, path.join (folder, 'package.json')); }, path.join (folder, 'package.json'));
} }