Skip to content

Commit

Permalink
fix: fix default babelConfig and tsConfig file path issue
Browse files Browse the repository at this point in the history
affects: @medly/rollup-config
  • Loading branch information
gmukul01 committed Dec 24, 2022
1 parent 27022f3 commit 3863f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rollup-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const PACKAGE_ROOT_PATH = process.cwd(),
const extensions = ['.ts', '.tsx', '.js', '.jsx'];

const getConfigs = ({
babelConfig = path.join(PACKAGE_ROOT_PATH, './tsconfig.json'),
tsConfig = path.join(PACKAGE_ROOT_PATH, './babel.config.js')
babelConfig = path.join(PACKAGE_ROOT_PATH, './babel.config.js'),
tsConfig = path.join(PACKAGE_ROOT_PATH, './tsconfig.json')
} = {}) =>
['es', 'cjs'].map(format => {
const isTypescriptProject = fs.existsSync(tsConfig);
Expand Down

0 comments on commit 3863f11

Please sign in to comment.