From 9fe093dc91793869e131a5ad77658f11715fba9e Mon Sep 17 00:00:00 2001 From: Maxim Mazurok Date: Fri, 20 Mar 2020 05:56:42 +1100 Subject: [PATCH] refactor: compile using tsc with no arguments --- package.json | 2 +- src/init.ts | 2 +- test/test-init.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 692929b2..bd1d959a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build": "npm run compile", "clean": "rimraf ./build/", "codecov": "c8 report --reporter=json && codecov -f coverage/*.json", - "compile": "tsc -p .", + "compile": "tsc", "postcompile": "ncp template build/template", "lint": "eslint '**/*.ts'", "prepare": "npm run compile", diff --git a/src/init.ts b/src/init.ts index a0bdc7aa..2ca77e73 100644 --- a/src/init.ts +++ b/src/init.ts @@ -84,7 +84,7 @@ export async function addScripts( const scripts: Bag = { check: `gts check`, clean: 'gts clean', - compile: `tsc -p .`, + compile: `tsc`, fix: `gts fix`, prepare: `${pkgManager} run compile`, pretest: `${pkgManager} run compile`, diff --git a/test/test-init.ts b/test/test-init.ts index b3b03a43..c3e26bab 100644 --- a/test/test-init.ts +++ b/test/test-init.ts @@ -86,7 +86,7 @@ describe('init', () => { const SCRIPTS = { check: `fake check`, clean: 'fake clean', - compile: `fake tsc -p .`, + compile: `fake tsc`, fix: `fake fix`, prepare: `fake run compile`, pretest: `fake run compile`, @@ -105,7 +105,7 @@ describe('init', () => { const SCRIPTS = { check: `fake check`, clean: 'fake clean', - compile: `fake tsc -p .`, + compile: `fake tsc`, fix: `fake fix`, prepare: `fake run compile`, pretest: `fake run compile`,