Skip to content

Commit 47f25f0

Browse files
committed
Update types to not require extra unnecessary .default property access under TS node16 module resolution (fixes #70) [publish]
1 parent 639e772 commit 47f25f0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.4.17
44

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

78
## 0.4.16
89

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-refresh",
3-
"version": "0.4.16",
3+
"version": "0.4.17",
44
"type": "module",
55
"license": "MIT",
66
"scripts": {

scripts/bundle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ await build({
1717
});
1818

1919
execSync("cp LICENSE README.md dist/");
20-
execSync("cp src/types.ts dist/index.d.ts");
20+
execSync("cp src/types.d.ts dist/index.d.ts");
2121

2222
writeFileSync(
2323
"dist/package.json",

src/types.ts renamed to src/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ declare const _default: {
1111
};
1212
};
1313

14-
export default _default;
14+
export = { default: _default };

0 commit comments

Comments
 (0)