ss-support-widget 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.html CHANGED
@@ -11,6 +11,7 @@
11
11
  apiBaseUrl: "http://apiservice.local",
12
12
  };
13
13
  </script>
14
- <script type="module" src="/src/element.tsx"></script>
14
+ <!-- <script type="module" src="/src/element.tsx"></script> -->
15
+ <script src="https://cdn.jsdelivr.net/npm/ss-support-widget@1.0.0/dist/chat-bot-widget.js"></script>
15
16
  </body>
16
17
  </html>
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "ss-support-widget",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Chatbot widget for customer support",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "build:script": "tsup src/element.tsx --format iife --global-name ChatBot --minify --clean --out-dir dist"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "SS SRL",
package/vite.config.ts CHANGED
@@ -3,6 +3,9 @@ import react from "@vitejs/plugin-react";
3
3
 
4
4
  export default defineConfig({
5
5
  plugins: [react()],
6
+ define: {
7
+ "process.env.NODE_ENV": JSON.stringify("production")
8
+ },
6
9
  build: {
7
10
  lib: {
8
11
  entry: "src/element.tsx",