From 17de03c3d99686cf65dcb85ea9bb5870826dc12e Mon Sep 17 00:00:00 2001 From: Jonathan Putney Date: Wed, 23 Oct 2024 18:55:58 -0400 Subject: [PATCH] Still trying to fix modules --- index.d.ts | 5 ----- package.json | 4 ++-- src/exports/index.js | 5 +++++ webpack.config.js | 2 ++ 4 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 index.d.ts create mode 100644 src/exports/index.js diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index b229bfb..0000000 --- a/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Scorm2004API from "./src/Scorm2004API.ts"; -import Scorm12API from "./src/Scorm12API.ts"; -import AICC from "./src/AICC.ts"; - -export { Scorm2004API, Scorm12API, AICC }; diff --git a/package.json b/package.json index bf3fa82..738bd29 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "scorm-again", - "version": "2.3.0", + "version": "2.4.0", "description": "A modern SCORM JavaScript run-time library for AICC, SCORM 1.2, and SCORM 2004", - "main": "index.d.ts", + "main": "dist/index.min.js", "type": "module", "browser": { "electron": false diff --git a/src/exports/index.js b/src/exports/index.js new file mode 100644 index 0000000..ecf6a7c --- /dev/null +++ b/src/exports/index.js @@ -0,0 +1,5 @@ +import Scorm2004API from "../Scorm2004API.ts"; +import Scorm12API from "../Scorm12API.ts"; +import AICC from "../AICC.ts"; + +export { Scorm12API, Scorm2004API, AICC }; diff --git a/webpack.config.js b/webpack.config.js index 3507f26..7d032b0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,10 +22,12 @@ export default { scorm12: "./src/exports/scorm12.js", scorm2004: "./src/exports/scorm2004.js", "scorm-again": "./src/exports/scorm-again.js", + index: "./src/exports/index.js", "aicc.min": "./src/exports/aicc.js", "scorm12.min": "./src/exports/scorm12.js", "scorm2004.min": "./src/exports/scorm2004.js", "scorm-again.min": "./src/exports/scorm-again.js", + "index.min": "./src/exports/index.js", }, target: ["web", "es5"], module: {