diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 94% rename from .eslintrc.js rename to .eslintrc.cjs index 412b5ba..06d0a64 100644 --- a/.eslintrc.js +++ b/.eslintrc.cjs @@ -6,7 +6,7 @@ module.exports = { ], overrides: [ { - files: ['*.js'], + files: ['*.js', '*.cjs', '*.mjs'], env: { node: true, }, diff --git a/.npmignore b/.npmignore index 290c0db..d8ada3b 100644 --- a/.npmignore +++ b/.npmignore @@ -22,9 +22,9 @@ node_modules # Build configurations /.* +/*.cjs /*.js -/ts*.json -/typedoc.json +/*.json # Package lock /yarn.lock diff --git a/jest.config.js b/jest.config.cjs similarity index 100% rename from jest.config.js rename to jest.config.cjs diff --git a/package.json b/package.json index 38e4811..72b02e1 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,17 @@ }, "license": "MIT", "author": "Ruslan Lopatin ", - "main": "dist/render-scheduler.js", - "module": "dist/render-scheduler.mjs", + "bugs": { + "url": "https://github.com/proc7ts/render-scheduler/issues" + }, + "type": "module", + "main": "dist/render-scheduler.cjs", + "module": "dist/render-scheduler.js", "types": "index.d.ts", "exports": { ".": { - "import": "./dist/render-scheduler.mjs", - "require": "./dist/render-scheduler.js" + "import": "./dist/render-scheduler.js", + "require": "./dist/render-scheduler.cjs" } }, "devDependencies": {