diff options
| author | mo <mo.khan@gmail.com> | 2018-05-20 19:59:24 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-05-20 19:59:24 -0600 |
| commit | 5201ded2a3e0848512ebf9a67d66e66bfa0d81c8 (patch) | |
| tree | 5fe49c2d36a7b615806401a26fa8c0138f5513eb | |
| parent | 1170671754f4579b4513e23c2df4a625f88013db (diff) | |
fix package main.
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/greeting.js | 5 | ||||
| -rw-r--r-- | src/index.js | 7 |
3 files changed, 8 insertions, 6 deletions
diff --git a/package.json b/package.json index 9016cc3..810b46f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "mokha", "version": "0.1.2", "description": "i'm not sure yet", - "main": "./distribution/index.js", + "main": "dist/index.js", "repository": "https://www.mokhan.ca/", "author": "mo", "license": "MIT", diff --git a/src/greeting.js b/src/greeting.js new file mode 100644 index 0000000..3267646 --- /dev/null +++ b/src/greeting.js @@ -0,0 +1,5 @@ +export default class { + greet(name) { + console.log(`Hello ${name}`); + } +} diff --git a/src/index.js b/src/index.js index 65363bf..1f5518a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,2 @@ -export default class { - lit() { - console.log("🔥"); - } -} +import Greeting from './greeting' +console.log("🔥"); |
