Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
fix: disable config file (#9)
Browse files Browse the repository at this point in the history
* disable configFile for mono repo setups

* bump version
  • Loading branch information
ricokahler authored Dec 2, 2020
1 parent 6515693 commit e9dba66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanity-codegen",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"description": "",
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import register from '@babel/register';

register({
extensions: ['.js', '.ts', '.tsx', '.mjs'],
// these disable any babel config files in the project so we can run our
// very specific babel config for the CLI
babelrc: false,
configFile: false,
presets: [
['@babel/preset-env', { targets: { node: true } }],
'@babel/preset-typescript',
Expand Down

0 comments on commit e9dba66

Please sign in to comment.