diff --git a/app/index.js b/app/index.js index c4d36ae..718e9f0 100644 --- a/app/index.js +++ b/app/index.js @@ -1,5 +1,5 @@ -import { magicFn } from "../lib"; -import { words } from "capitalize"; +import { magicFn } from "../lib/out/main.js"; +import cap from "capitalize"; -const r = magicFn(words("hello world")); +const r = magicFn(cap.words("hello world")); console.log('Result of magicFn:', r); \ No newline at end of file diff --git a/app/package.json b/app/package.json index 20b2177..ce0f053 100644 --- a/app/package.json +++ b/app/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "description": "", "main": "index.js", + "type": "module", "scripts": { + "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "",