From d9b45c635a87f92e74161c9dfbdc645dc6feec30 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Mon, 17 Apr 2023 16:56:26 +0200
Subject: [PATCH] fix: publish

---
 monster-js/dist/extension.js | 77 +-----------------------------------
 monster-js/package.json      |  5 ++-
 2 files changed, 4 insertions(+), 78 deletions(-)

diff --git a/monster-js/dist/extension.js b/monster-js/dist/extension.js
index 1e0132b..3ca8b00 100644
--- a/monster-js/dist/extension.js
+++ b/monster-js/dist/extension.js
@@ -1,76 +1 @@
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
-  for (var name in all)
-    __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
-  if (from && typeof from === "object" || typeof from === "function") {
-    for (let key of __getOwnPropNames(from))
-      if (!__hasOwnProp.call(to, key) && key !== except)
-        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
-  }
-  return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
-  // If the importer is in node compatibility mode or this is not an ESM
-  // file that has been converted to a CommonJS file using a Babel-
-  // compatible transform (i.e. "__esModule" has not been set), then set
-  // "default" to the CommonJS "module.exports" for node compatibility.
-  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
-  mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// source/extension.mjs
-var extension_exports = {};
-__export(extension_exports, {
-  activate: () => activate,
-  deactivate: () => deactivate
-});
-module.exports = __toCommonJS(extension_exports);
-var vscode = __toESM(require("vscode"), 1);
-function activate(context) {
-  let disposable = vscode.commands.registerCommand("monster.open-doc", () => {
-    let documentationUrls;
-    vscode.env.openExternal(vscode.Uri.parse("https://monsterjs.org/en/doc/"));
-    const onDiskPath = vscode.Uri.joinPath(context.extensionUri, "documentation");
-    documentationUrls = panel.webview.asWebviewUri(onDiskPath);
-    const panel = vscode.window.createWebviewPanel(
-      "monsterDocumentation",
-      // Identifies the type of the webview. Used internally
-      "Monster JS Documentation",
-      // Title of the panel displayed to the user
-      vscode.ViewColumn.One,
-      {
-        enableScripts: true,
-        localResourceRoots: [documentationUrls]
-      }
-      // Webview options. More on these later.
-    );
-    getWebviewContent(context).then((html) => {
-      panel.webview.html = html;
-    }).catch((error) => {
-      console.log(error);
-    });
-    panel.onDidDispose(
-      () => {
-      },
-      null,
-      context.subscriptions
-    );
-  });
-  context.subscriptions.push(disposable);
-}
-function deactivate() {
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
-  activate,
-  deactivate
-});
-//# sourceMappingURL=extension.js.map
+var d=Object.create;var c=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var n in o)c(e,n,{get:o[n],enumerable:!0})},a=(e,o,n,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of m(o))!p.call(e,t)&&t!==n&&c(e,t,{get:()=>o[t],enumerable:!(i=l(o,t))||i.enumerable});return e};var w=(e,o,n)=>(n=e!=null?d(v(e)):{},a(o||!e||!e.__esModule?c(n,"default",{value:e,enumerable:!0}):n,e)),b=e=>a(c({},"__esModule",{value:!0}),e);var U={};u(U,{activate:()=>h,deactivate:()=>D});module.exports=b(U);var s=w(require("vscode"),1);function h(e){let o=s.commands.registerCommand("monster.open-doc",()=>{let n;s.env.openExternal(s.Uri.parse("https://monsterjs.org/en/doc/"));let i=s.Uri.joinPath(e.extensionUri,"documentation");n=t.webview.asWebviewUri(i);let t=s.window.createWebviewPanel("monsterDocumentation","Monster JS Documentation",s.ViewColumn.One,{enableScripts:!0,localResourceRoots:[n]});getWebviewContent(e).then(r=>{t.webview.html=r}).catch(r=>{console.log(r)}),t.onDidDispose(()=>{},null,e.subscriptions)});e.subscriptions.push(o)}function D(){}0&&(module.exports={activate,deactivate});
diff --git a/monster-js/package.json b/monster-js/package.json
index 774db78..1f27ee8 100644
--- a/monster-js/package.json
+++ b/monster-js/package.json
@@ -14,7 +14,7 @@
   },
   "homepage": "https://monsterjs.org",
   "pricing": "Free",
-  "version": "0.0.6",
+  "version": "0.0.7",
   "engines": {
     "vscode": "^1.76.0"
   },
@@ -61,7 +61,8 @@
     "vscode:prepublish": "npm run esbuild-base -- --minify",
     "esbuild-base": "esbuild ./source/extension.mjs --bundle --outfile=dist/extension.js --external:vscode  --external:vscode-web --format=cjs --platform=node",
     "esbuild": "npm run esbuild-base -- --sourcemap",
-    "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
+    "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
+    "publish": "npm run esbuild-base; npx vsce publish"
   },
   "devDependencies": {
     "@types/vscode": "^1.76.0",
-- 
GitLab