Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Convert to module
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Nov 10, 2020
1 parent 9062eb7 commit bd84125
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
],
overrides: [
{
files: ['*.js'],
files: ['*.js', '*.cjs', '*.mjs'],
env: {
node: true,
},
Expand Down
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ node_modules

# Build configurations
/.*
/*.cjs
/*.js
/ts*.json
/typedoc.json
/*.json

# Package lock
/yarn.lock
Expand Down
File renamed without changes.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@
},
"license": "MIT",
"author": "Ruslan Lopatin <[email protected]>",
"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": {
Expand Down

0 comments on commit bd84125

Please sign in to comment.