Skip to content

Commit

Permalink
Convert to an ESM package
Browse files Browse the repository at this point in the history
  • Loading branch information
zenparsing committed Nov 28, 2022
1 parent 8406a7e commit cfa7b13
Show file tree
Hide file tree
Showing 11 changed files with 1,380 additions and 4,454 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js → .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
{
"extends": ["eslint:recommended"],

"env": {
Expand Down Expand Up @@ -44,4 +44,4 @@ module.exports = {
"array-bracket-spacing": ["error"],
"max-len": ["error", 100]
}
};
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules
test/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zen-observable

An implementation of Observables for JavaScript. Requires Promises or a Promise polyfill.
An implementation of Observables for JavaScript.

## Install

Expand Down
5 changes: 0 additions & 5 deletions esm.js

This file was deleted.

1 change: 0 additions & 1 deletion extras.js

This file was deleted.

6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
module.exports = require('./lib/Observable.js').Observable;
import { Observable } from './src/Observable.js';

export default Observable;
export { Observable };
export * from './src/extras.js';
Loading

0 comments on commit cfa7b13

Please sign in to comment.