Skip to content

Commit

Permalink
try add mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Feb 1, 2021
1 parent 6f74b1a commit 8a8efcf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import SourceQuery from "./index.js";

export default SourceQuery;
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "sourcequery",
"version": "1.1.2",
"version": "1.1.3",
"description": "https://www.npmjs.com/package/sourcequery but it doesn't suck",
"main": "index.js",
"main": "./index.js",
"types": "./index.d.ts",
"exports": {
".": [
{
"require": "./index.js",
"import": "./index.mjs"
},
"./index.js"
],
"./esm": "./index.mjs"
},
"scripts": {
"test": "node test.js"
},
Expand All @@ -22,5 +33,8 @@
},
"homepage": "https://github.com/MBR-0001/sourcequery#readme",
"dependencies": {},
"devDependencies": {}
"devDependencies": {},
"engines": {
"node": ">=8.0.0"
}
}

0 comments on commit 8a8efcf

Please sign in to comment.