diff --git a/.fatherrc.base.ts b/.fatherrc.base.ts new file mode 100644 index 0000000..292a4af --- /dev/null +++ b/.fatherrc.base.ts @@ -0,0 +1,6 @@ +import { defineConfig } from 'father'; + +export default defineConfig({ + esm: { output: 'es' }, + cjs: { output: 'lib', platform: 'browser' }, +}); diff --git a/packages/bar/.fatherrc.ts b/packages/bar/.fatherrc.ts index b90b723..fb92946 100644 --- a/packages/bar/.fatherrc.ts +++ b/packages/bar/.fatherrc.ts @@ -1,6 +1,3 @@ -import { defineConfig } from 'father'; +import config from '../../.fatherrc.base'; -export default defineConfig({ - esm: { output: 'es' }, - cjs: { output: 'lib' }, -}); +export default config; diff --git a/packages/foo/.fatherrc.ts b/packages/foo/.fatherrc.ts index b90b723..fb92946 100644 --- a/packages/foo/.fatherrc.ts +++ b/packages/foo/.fatherrc.ts @@ -1,6 +1,3 @@ -import { defineConfig } from 'father'; +import config from '../../.fatherrc.base'; -export default defineConfig({ - esm: { output: 'es' }, - cjs: { output: 'lib' }, -}); +export default config;