Skip to content

Commit

Permalink
fix(docz-core): revert ts auto-detect
Browse files Browse the repository at this point in the history
To avoid bugs with monorepos having tsconfig in root
but not all packages using ts
  • Loading branch information
rakannimer committed Jan 2, 2020
1 parent 1437b59 commit f0ce584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion core/docz-core/src/config/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const setArgs = (yargs: Yargs) => {
.option('typescript', {
alias: 'ts',
type: 'boolean',
default: getEnv('docz.typescript', doczRcBaseConfig.typescript),
default: getEnv('docz.typescript', false),
})
.option('propsParser', {
type: 'boolean',
Expand Down
2 changes: 0 additions & 2 deletions core/docz-core/src/config/docz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { Arguments } from 'yargs'
import { omit, merge } from 'lodash/fp'
import { load, loadFrom } from 'load-cfg'
import detectPort from 'detect-port'
import fs from 'fs-extra'

import * as paths from '../config/paths'
import { Config, Argv } from '../config/argv'
import { Plugin } from '../lib/Plugin'

const toOmit = ['_', '$0', 'version', 'help']
export const doczRcBaseConfig = {
typescript: fs.existsSync(paths.appTsConfig),
themeConfig: {},
src: './',
gatsbyRoot: './',
Expand Down

0 comments on commit f0ce584

Please sign in to comment.