Skip to content

Commit

Permalink
fix: fix missing exports condition
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Dec 22, 2023
1 parent 7de84c0 commit 675ec28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/pre-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ const pathCWD = process.cwd();
const packageJsonPath = path.join(pathCWD, 'package.json');
const packageJson = fs.readJsonSync(packageJsonPath);
packageJson.svelte = 'dist/index.js';
packageJson.export = {
'.': {
svelte: './dist/index.js'
}
};
fs.writeJsonSync(packageJsonPath, packageJson, { spaces: 4 });

0 comments on commit 675ec28

Please sign in to comment.