From 1f1e21301b3b7191778489bb05ff8c3718aaeb32 Mon Sep 17 00:00:00 2001 From: Miro Date: Fri, 9 Feb 2024 16:02:34 +0100 Subject: [PATCH] Fix app: imports and module type --- app/index.js | 6 +++--- app/package.json | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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": "",