Skip to content

Commit

Permalink
Update types to not require extra unnecessary .default property acc…
Browse files Browse the repository at this point in the history
…ess under TS node16 module resolution (fixes #70) [publish]
  • Loading branch information
ArnaudBarre committed Jan 11, 2025
1 parent 639e772 commit 47f25f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Unreleased
## 0.4.17

- Fix detection of local components to not generate warning on for variable inside JSX files that follow React component naming
- Fix detection of local components to not generate warning on for variable inside JSX files that follow React component naming (fixes #75)
- Update types to not require extra unnecessary `.default` property access under TS node16 module resolution (fixes #70)

## 0.4.16

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-refresh",
"version": "0.4.16",
"version": "0.4.17",
"type": "module",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ await build({
});

execSync("cp LICENSE README.md dist/");
execSync("cp src/types.ts dist/index.d.ts");
execSync("cp src/types.d.ts dist/index.d.ts");

writeFileSync(
"dist/package.json",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts → src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ declare const _default: {
};
};

export default _default;
export = { default: _default };

0 comments on commit 47f25f0

Please sign in to comment.