Skip to content

Commit

Permalink
refactor: compile using tsc with no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed Mar 19, 2020
1 parent b660a61 commit 9fe093d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function addScripts(
const scripts: Bag<string> = {
check: `gts check`,
clean: 'gts clean',
compile: `tsc -p .`,
compile: `tsc`,
fix: `gts fix`,
prepare: `${pkgManager} run compile`,
pretest: `${pkgManager} run compile`,
Expand Down
4 changes: 2 additions & 2 deletions test/test-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -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`,
Expand Down

0 comments on commit 9fe093d

Please sign in to comment.