diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e5aff8..c6ca1d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 4cd1b7c..9099a85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-refresh", - "version": "0.4.16", + "version": "0.4.17", "type": "module", "license": "MIT", "scripts": { diff --git a/scripts/bundle.ts b/scripts/bundle.ts index f33a7d4..ec6225c 100755 --- a/scripts/bundle.ts +++ b/scripts/bundle.ts @@ -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", diff --git a/src/types.ts b/src/types.d.ts similarity index 88% rename from src/types.ts rename to src/types.d.ts index d3deec2..09090ed 100644 --- a/src/types.ts +++ b/src/types.d.ts @@ -11,4 +11,4 @@ declare const _default: { }; }; -export default _default; +export = { default: _default };