diff --git a/.npmignore b/.npmignore index f465928..817879b 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1 @@ -src/tests +dist/tests diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ade420..e5a20dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.0.6 + +- Use `module.exports` to fix `rule.create is not a function` + # 0.0.5 - Convert to CommonJS for compatibility diff --git a/package.json b/package.json index 281d12b..47f16b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-no-re-export", - "version": "0.0.5", + "version": "0.0.6", "description": "ESLint plugin to disallow re-exporting in TypeScript/JavaScript", "main": "dist/index.js", "repository": { diff --git a/src/index.ts b/src/index.ts index d2a913b..b72aa8a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import noReExport from "./rules/no-re-export"; -export default { +module.exports = { rules: { "no-re-export": noReExport, }, diff --git a/tsconfig.json b/tsconfig.json index 15422d9..a0c768b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "target": "ES2021", + "target": "ES2015", "typeRoots": ["node_modules/@types"] }, "include": ["src"],