Skip to content

Commit

Permalink
feat(esm): upgrade to be a pure ESM package
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This package is now only available
via ESM. This means it only supports Node 12+ too.

+ Updated dependancies to use ESM versions
+ Various changes for ESM
  • Loading branch information
zoetrope69 committed Nov 30, 2021
1 parent 5215362 commit c1077b2
Show file tree
Hide file tree
Showing 9 changed files with 1,793 additions and 56 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"node": true,
"es2021": true,
"jest/globals": true
},
"extends": ["eslint:recommended", "prettier", "plugin:node/recommended"],
"plugins": ["prettier", "jest"],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"prettier/prettier": ["error"],
"no-console": ["error"]
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const letterboxd = require("./src/letterboxd");
import letterboxd from "./src/letterboxd.js";

module.exports = letterboxd;
export default letterboxd;
Loading

0 comments on commit c1077b2

Please # to comment.