From 9b4cb28e2d64095e5815f121b724df84065eb67b Mon Sep 17 00:00:00 2001
From: Sam Ritchie <sritchie09@gmail.com>
Date: Thu, 3 Mar 2022 04:58:41 -0700
Subject: [PATCH] update bundle

---
 .../webpack.config.base.js                    |  0
 webpack.config.js => config/webpack.config.js |  4 ++--
 .../webpack.config.testing.js                 |  4 ++--
 gulpfile.js                                   |  2 +-
 karma.conf.js                                 |  2 --
 package.json                                  | 21 ++++++++++++++-----
 src/index.js                                  |  2 +-
 7 files changed, 22 insertions(+), 13 deletions(-)
 rename webpack.config.base.js => config/webpack.config.base.js (100%)
 rename webpack.config.js => config/webpack.config.js (94%)
 rename webpack.config.testing.js => config/webpack.config.testing.js (64%)

diff --git a/webpack.config.base.js b/config/webpack.config.base.js
similarity index 100%
rename from webpack.config.base.js
rename to config/webpack.config.base.js
diff --git a/webpack.config.js b/config/webpack.config.js
similarity index 94%
rename from webpack.config.js
rename to config/webpack.config.js
index b45762d9..554f773e 100644
--- a/webpack.config.js
+++ b/config/webpack.config.js
@@ -3,8 +3,8 @@ const baseConfig = require("./webpack.config.base");
 
 const libraryName = "MathBox";
 const PATHS = {
-  entryPoint: path.resolve(__dirname, "src/index.js"),
-  bundles: path.resolve(__dirname, "dist"),
+  entryPoint: path.resolve(__dirname, "../src/index.js"),
+  bundles: path.resolve(__dirname, "../build"),
 };
 
 const config = {
diff --git a/webpack.config.testing.js b/config/webpack.config.testing.js
similarity index 64%
rename from webpack.config.testing.js
rename to config/webpack.config.testing.js
index b5af57e7..2c4a1a8c 100644
--- a/webpack.config.testing.js
+++ b/config/webpack.config.testing.js
@@ -2,9 +2,9 @@ const { resolve } = require("path");
 const baseConfig = require("./webpack.config.base");
 
 module.exports = {
-  entry: resolve(__dirname, "./test/test_entrypoint.js"),
+  entry: resolve(__dirname, "../test/test_entrypoint.js"),
   output: {
-    path: resolve(__dirname, "build_testing"),
+    path: resolve(__dirname, "../build_testing"),
     filename: "spec_bundle.js",
   },
   mode: "development",
diff --git a/gulpfile.js b/gulpfile.js
index c75e4769..273ab082 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -7,7 +7,7 @@ const watch = require("gulp-watch");
 const shell = require("gulp-shell");
 const jsify = require("./vendor/gulp-jsify");
 
-const webpackConfig = require("./webpack.config.js");
+const webpackConfig = require("./config/webpack.config.js");
 
 const builds = {
   bundle: "build/mathbox.js",
diff --git a/karma.conf.js b/karma.conf.js
index ff1a594d..cc0227a6 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -1,5 +1,3 @@
-const { resolve } = require("path");
-
 module.exports = function (config) {
   config.set({
     browsers: ["Chrome"],
diff --git a/package.json b/package.json
index 5eeef3e5..996f2857 100644
--- a/package.json
+++ b/package.json
@@ -6,9 +6,13 @@
     "type": "git",
     "url": "https://gitgud.io/unconed/mathbox"
   },
-  "main": "src/index.js",
+  "module": "./src/index.js",
+  "exports": {
+    "import": "./src/index.js"
+  },
+  "main": "./src/index.js",
   "files": [
-    "/src",
+    "src",
     "build",
     "*.md",
     "FUNDING.yml"
@@ -16,8 +20,8 @@
   "scripts": {
     "docs": "gulp docs",
     "build": "gulp",
-    "test": "concurrently 'webpack --config webpack.config.testing.js' 'karma start --single-run'",
-    "test:watch": "concurrently 'webpack --watch --config webpack.config.testing.js' 'karma start'"
+    "test": "concurrently 'webpack --config config/webpack.config.testing.js' 'karma start --single-run'",
+    "test:watch": "concurrently 'webpack --watch --config config/webpack.config.testing.js' 'karma start'"
   },
   "prettier": {},
   "dependencies": {
@@ -49,5 +53,12 @@
     "webpack-stream": "^6.1.2"
   },
   "author": "Steven Wittens",
-  "license": "MIT"
+  "license": "MIT",
+  "keywords": [
+    "mathbox",
+    "threejs",
+    "visualizations",
+    "mathematics",
+    "webgl"
+  ]
 }
diff --git a/src/index.js b/src/index.js
index 017f841e..ed355a18 100644
--- a/src/index.js
+++ b/src/index.js
@@ -23,7 +23,7 @@ import * as util from "./util";
 import { Bootstrap } from "threestrap/src/bootstrap.js";
 import { Context as ctx } from "./context.js";
 
-export const version = "2.1.0";
+export const version = "2.1.1";
 
 // Just because
 export const π = Math.PI;
-- 
GitLab