From e49ac11186db0cedcdad8bed28e25087477b65a2 Mon Sep 17 00:00:00 2001 From: Shalitha Suranga Date: Mon, 18 Mar 2024 20:19:46 +0530 Subject: [PATCH] Update build.mjs and pkgjson --- build.mjs | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.mjs b/build.mjs index 228cad7..fcc350e 100644 --- a/build.mjs +++ b/build.mjs @@ -175,7 +175,7 @@ const writeDts = (filepath, definitions) => { // Read the type definition files let typesSource = '' typeFiles.forEach(file => { - typesSource += readFileSync (`./types/${file}`, { encoding: 'utf8' }) + '\n\n'; + typesSource += readFileSync (`./src/types/${file}`, { encoding: 'utf8' }) + '\n\n'; }); let globalsSource = readFileSync ('./src/index.ts', { encoding: 'utf8' }) diff --git a/package.json b/package.json index f68eb6b..98bfb03 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "5.0.1", "description": "JavaScript API for Neutralinojs", "main": "./dist/index.js", + "type": "module", "files": [ "dist" ],