Skip to content

Commit

Permalink
Fix app: imports and module type
Browse files Browse the repository at this point in the history
  • Loading branch information
Emaro committed Feb 9, 2024
1 parent fe7dd2c commit 1f1e213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 2 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down

0 comments on commit 1f1e213

Please sign in to comment.