1.1.0-rc1 Updates:
[daffodil-vscode.git] / package.json
index f71583e63dfa60f125263e0bd8eec283f5fe8aec..0eecc1cede584306d389402a3b46fe581c7a910d 100644 (file)
@@ -2,7 +2,7 @@
   "name": "apache-daffodil-vscode",
   "displayName": "Apache Daffodil VS Code Extension",
   "description": "VS Code extension for Apache Daffodil DFDL schema debugging",
-  "version": "1.1.0-SNAPSHOT",
+  "version": "1.1.0",
   "daffodilVersion": "3.3.0",
   "omegaEditServerHash": "2f8fec09a67aa2a9d844bcb7c0c0dd54f702186ddaa1eb13e73b1ec6b3cf6d73b687b3e9b35b46da609a14746ff7ec884f7d6abc5ae4ac9ce634235e78c3d56d",
   "publisher": "asf",
     "url": "https://github.com/apache/daffodil-vscode/issues"
   },
   "scripts": {
-    "omega-edit-download": "tsc -p ./ && node -e \"require('./out/omega_edit/download.js').downloadServer()\"",
-    "vscode:prepublish": "yarn run package-ext",
+    "omega-edit-download": "node -e \"require('./build/scripts/omega_edit_download.ts').downloadServer()\"",
     "precompile": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
     "compile": "tsc -p ./ && yarn omega-edit-download",
     "lint": "yarn run prettier src -c",
     "watch": "yarn omega-edit-download && webpack --watch --devtool nosources-source-map --config ./build/extension.webpack.config.js",
     "watch2": "tsc -watch -p ./",
-    "package": "vsce package",
-    "publish": "vsce publish",
-    "package-ext": "webpack --mode production --config ./build/extension.webpack.config.js",
+               "webpack": "webpack --mode production --config ./build/extension.webpack.config.js",
+               "prepackage": "yarn sbt && yarn install && yarn compile && yarn webpack",
+               "package": "yarn package-setup && yarn package-create",
+               "package-setup": "node -e \"require('./build/scripts/package.ts').setup()\"",
+               "package-create": "node -e \"require('./build/scripts/package.ts').create()\"",
     "pretest": "yarn run compile",
     "test": "node node_modules/mocha/bin/_mocha -u tdd --timeout 999999 --colors ./out/tests",
-    "sbt": "sbt universal:packageBin",
-    "pre-build": "run-script-os",
-    "pre-build:default": "mv LICENSE tmp.LICENSE && mv NOTICE tmp.NOTICE && cp build/bin.LICENSE LICENSE && cp build/bin.NOTICE NOTICE",
-    "pre-build:windows": "move LICENSE tmp.LICENSE && move NOTICE tmp.NOTICE && copy build/bin.LICENSE LICENSE && copy build/bin.NOTICE NOTICE",
-    "build": "yarn pre-build && yarn sbt && yarn install && yarn compile && yarn package && yarn post-build",
-    "post-build": "run-script-os",
-    "post-build:default": "rm NOTICE && rm LICENSE && mv tmp.LICENSE LICENSE && mv tmp.NOTICE NOTICE",
-    "post-build:windows": "del /q NOTICE && del /q LICENSE && move tmp.LICENSE LICENSE && move tmp.NOTICE NOTICE"
+    "sbt": "sbt universal:packageBin"
   },
   "dependencies": {
     "@grpc/grpc-js": "^1.5.4",
     "hexy": "0.3.4",
     "moo": "0.5.1",
     "omega-edit": "0.9.8",
-    "run-script-os": "1.1.6",
     "unzip-stream": "0.3.1",
     "vscode-debugadapter": "1.51.0",
     "xdg-app-paths": "7.3.0"
   },
   "devDependencies": {
     "@types/glob": "^7.1.3",
-    "@types/mocha": "^8.2.2",
+    "@types/mocha": "^9.1.1",
     "@types/node": "^18.0.0",
     "@types/vscode": "^1.55.0",
     "glob": "8.0.3",
@@ -89,7 +82,8 @@
     "onCommand:launch.config",
     "onCommand:data.edit",
     "onCommand:omega_edit.version",
-    "onCommand:toggle.experimental"
+    "onCommand:toggle.experimental",
+    "onCommand:extension.dfdl-debug.debugLastEditorContents"
   ],
   "workspaceTrust": {
     "request": "never"
         {
           "command": "extension.dfdl-debug.debugEditorContents",
           "when": "resourceLangId == dfdl"
+        },
+        {
+          "command": "extension.dfdl-debug.debugLastEditorContents",
+          "when": "resourceLangId == dfdl"
         }
       ],
       "commandPalette": [
         },
         {
           "command": "toggle.experimental"
+        },
+        {
+          "command": "extension.dfdl-debug.debugLastEditorContents",
+          "when": "resourceLangId == dfdl"
         }
       ],
       "debug/variables/context": [
         "enablement": "!inDebugMode",
         "icon": "$(play)"
       },
+      {
+        "command": "extension.dfdl-debug.debugLastEditorContents",
+        "title": "Debug Last File",
+        "category": "Daffodil Debug",
+        "enablement": "!inDebugMode",
+        "icon": "$(debug-alt)"
+      },
       {
         "command": "extension.dfdl-debug.toggleFormatting",
         "title": "Toggle between decimal and hex formatting",