Skip to content

Commit

Permalink
fix: point to package json
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshyfawn committed May 31, 2023
1 parent 52f622c commit f9e46c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion scripts/rollup/createRollupConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function createRollupConfig(options, callback) {
exports: 'named',
},
plugins: [
external(),
external({
packageJsonPath: '../../package.json',
}),
typescript({
tsconfig: options.tsconfig,
clean: true,
Expand Down
4 changes: 1 addition & 3 deletions scripts/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ const options = [
name,
format: 'cjs',
input: pkg.source,
external: ['react', 'react-dom'],
},
{ name, format: 'esm', input: pkg.source, external: ['react', 'react-dom'] },
{ name, format: 'esm', input: pkg.source },
{
name,
format: 'umd',
input: pkg.source,
external: ['react', 'react-dom'],
},
];

Expand Down

0 comments on commit f9e46c5

Please sign in to comment.