From 5a6c87442518553309968fa3d2afb17ebdf911b2 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 23 Apr 2020 16:38:29 +0200 Subject: [PATCH] add compile script to typescript --- lib/snippets/node/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index cd527fc..34d7cd4 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -46,6 +46,8 @@ export default class Node implements Snippet { lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs', test: 'nyc ava' }; + if (use_ts) + obj.scripts.compile = 'tsc'; return obj; }, path.join (folder, 'package.json')); }