From bd841250c65af5dc8d3bdef3b60d6000ea81b085 Mon Sep 17 00:00:00 2001 From: Ruslan Lopatin Date: Tue, 10 Nov 2020 14:34:26 +0700 Subject: [PATCH] Convert to module --- .eslintrc.js => .eslintrc.cjs | 2 +- .npmignore | 4 ++-- jest.config.js => jest.config.cjs | 0 package.json | 12 ++++++++---- 4 files changed, 11 insertions(+), 7 deletions(-) rename .eslintrc.js => .eslintrc.cjs (94%) rename jest.config.js => jest.config.cjs (100%) 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": {