From 1514aa00c3788cefcea2dddb810081cdba31087a Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 22 Sep 2022 17:04:01 -0400 Subject: [PATCH] Clean up dependencies, and assure build / package process creates something that is easy to import and use. --- app/app.js | 8 +- app/spiffworkflow/index.js | 3 +- package-lock.json | 180 +++++++++++++++++++------------------ package.json | 4 +- webpack.config.js | 7 +- 5 files changed, 108 insertions(+), 94 deletions(-) diff --git a/app/app.js b/app/app.js index 030713b..75d944e 100644 --- a/app/app.js +++ b/app/app.js @@ -3,16 +3,14 @@ import { BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, } from 'bpmn-js-properties-panel'; +import { SpiffWorkflowModule, SpiffWorkflowModdle } from './spiffworkflow'; import diagramXML from '../test/spec/bpmn/basic_message.bpmn'; -import spiffworkflow from './spiffworkflow'; import setupFileOperations from './fileOperations'; const modelerEl = document.getElementById('modeler'); const panelEl = document.getElementById('panel'); -const spiffModdleExtension = require('./spiffworkflow/moddle/spiffworkflow.json'); let bpmnModeler; - /** * This provides an example of how to instantiate a BPMN Modeler configured with * all the extensions and modifications in this application. @@ -24,12 +22,12 @@ try { parent: panelEl, }, additionalModules: [ - spiffworkflow, + SpiffWorkflowModule, BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, ], moddleExtensions: { - spiffworkflowModdle: spiffModdleExtension, + spiffworkflowModdle: SpiffWorkflowModdle, }, }); } catch (error) { diff --git a/app/spiffworkflow/index.js b/app/spiffworkflow/index.js index 5327773..867cb39 100644 --- a/app/spiffworkflow/index.js +++ b/app/spiffworkflow/index.js @@ -11,7 +11,8 @@ import ExtensionsPropertiesProvider from './extensions/propertiesPanel/Extension import MessagesPropertiesProvider from './messages/propertiesPanel/MessagesPropertiesProvider'; import CallActivityPropertiesProvider from './callActivity/propertiesPanel/CallActivityPropertiesProvider'; -export default { +export const SpiffWorkflowModdle = import('./moddle/spiffworkflow.json'); +export const SpiffWorkflowModule = { __depends__: [RulesModule], __init__: [ 'dataObjectInterceptor', diff --git a/package-lock.json b/package-lock.json index a5cb6ef..19f66bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "bpmn-js-spiffworkflow", - "version": "0.0.9", + "version": "0.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bpmn-js-spiffworkflow", - "version": "0.0.9", + "version": "0.0.10", "license": "MIT", "dependencies": { "bpmn-js": "^9.4.1", - "bpmn-js-properties-panel": "^1.7.0", + "bpmn-js-properties-panel": "1.5.0", "diagram-js": "^8.9.0", "inherits": "^2.0.4", "inherits-browser": "^0.0.1", @@ -1894,12 +1894,12 @@ } }, "node_modules/@bpmn-io/element-templates-validator": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/element-templates-validator/-/element-templates-validator-0.10.0.tgz", - "integrity": "sha512-dQFJDCh2u3YhlGW2V/YBe3OaO15Sq4sx6GZYiO/eUK9SCvvD/iwObliHs9Z1LkTzOITel+J8nS5Yoaab+E2QRw==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/element-templates-validator/-/element-templates-validator-0.9.0.tgz", + "integrity": "sha512-oS5eaXPKxl5bV8x4dJYPCWJpWMumr16TTS39S1oJEh/bKke/nhMBuhsk6wWCp7+G3jWWDkUcS1jGAAaKtvQneA==", "dependencies": { - "@camunda/element-templates-json-schema": "^0.10.1", - "@camunda/zeebe-element-templates-json-schema": "^0.6.0", + "@camunda/element-templates-json-schema": "^0.10.0", + "@camunda/zeebe-element-templates-json-schema": "^0.5.0", "json-source-map": "^0.6.1", "min-dash": "^3.8.1" } @@ -1913,9 +1913,9 @@ } }, "node_modules/@bpmn-io/feel-editor": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.3.0.tgz", - "integrity": "sha512-TPDDc2vCALrMletpBos+jM7d96Qp+RWEa3D95H/4EbbDr3+kyqjUy1Omp/+yQGC4a5ryBRrEwAGHbkoAPwwbIQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.2.0.tgz", + "integrity": "sha512-R85p56nFxffNp0fStNxz561EXJmcTdVZL7NyVhuB3qKS/mt4thuvK1B43YnXKdLx8WessjsbHzjvWkbCYZRWkQ==", "peer": true, "dependencies": { "@codemirror/autocomplete": "^6.0.3", @@ -1929,16 +1929,16 @@ } }, "node_modules/@bpmn-io/properties-panel": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-0.21.0.tgz", - "integrity": "sha512-y9R6vMBFKNL2de4AAP8ep5X8temJMWHfDMTfMHM63G9oKhwEu15Q3Lidm3JmnobT7vUK3POugZJ/ZNK5Ko8igQ==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-0.19.0.tgz", + "integrity": "sha512-cw+MfA2gpCBsa9Q0+JT3Gc7OvR1NGXuyQj4yOk5QoQHNzxuIMNuz6EX2NvDsCrf0oSzc9z0FapbzDuJB+DSC1g==", "peer": true, "dependencies": { - "@bpmn-io/feel-editor": "0.3.0", + "@bpmn-io/feel-editor": "0.2.0", "classnames": "^2.3.1", - "diagram-js": "^8.9.0", - "min-dash": "^3.8.1", - "min-dom": "^3.2.1" + "diagram-js": "^8.1.2", + "min-dash": "^3.7.0", + "min-dom": "^3.1.3" } }, "node_modules/@camunda/element-templates-json-schema": { @@ -1947,14 +1947,14 @@ "integrity": "sha512-sw8RNecjQgY7tX26PMLRJGNX/2QCnlwCvZfxQWh606qlJZsLbpvEbvfgIGCRoYlHYTlsP6PxVcWYx5LPo7yisg==" }, "node_modules/@camunda/zeebe-element-templates-json-schema": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@camunda/zeebe-element-templates-json-schema/-/zeebe-element-templates-json-schema-0.6.0.tgz", - "integrity": "sha512-qawIFM52lp1hW2vWrHaX8ywguZsp2olE0DRTHUY+KWH5GwszZwGWECP3tji1KVih2TasQyf28kcQVh8TeQ6dAg==" + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@camunda/zeebe-element-templates-json-schema/-/zeebe-element-templates-json-schema-0.5.0.tgz", + "integrity": "sha512-BVHVl4cuK9LxL1eDSdWs8AzuZd981/+CPkw7xlwcB1Xkn6Di8E2iRbDUCBhOIqkahjJYq957nVtbM6jlqXX5qw==" }, "node_modules/@codemirror/autocomplete": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.2.0.tgz", - "integrity": "sha512-yNCm2CEE4kE4L2Sf7WeyCej1Q3951ccaCWfomrlBkoERKCss+TzuEeqGe5VnAJTEybLy1yzf1BdMUY/988bfpg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.3.0.tgz", + "integrity": "sha512-4jEvh3AjJZTDKazd10J6ZsCIqaYxDMCeua5ouQxY8hlFIml+nr7le0SgBhT3SIytFBmdzPK3AUhXGuW3T79nVg==", "peer": true, "dependencies": { "@codemirror/language": "^6.0.0", @@ -3046,11 +3046,11 @@ } }, "node_modules/bpmn-js-properties-panel": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/bpmn-js-properties-panel/-/bpmn-js-properties-panel-1.7.0.tgz", - "integrity": "sha512-06qjWOGqFO3iTAk0IWp7WwwjNeOPuXmI5DkXop6sgqDuVZDLDTeI1VWl/7IpTXy4Ku4QPfuq51Ljptu2oLbPMA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bpmn-js-properties-panel/-/bpmn-js-properties-panel-1.5.0.tgz", + "integrity": "sha512-0VAPk6xK/u+GepjGjt8HAXtBa2ab5o4Dkn5II8UgnFMoQThpvrsLras3vh1il8j/2vPhngAsfiA8z7Y9nJ6/Hw==", "dependencies": { - "@bpmn-io/element-templates-validator": "^0.10.0", + "@bpmn-io/element-templates-validator": "^0.9.0", "@bpmn-io/extract-process-variables": "^0.5.0", "array-move": "^3.0.1", "classnames": "^2.3.1", @@ -3061,9 +3061,9 @@ "semver-compare": "^1.0.0" }, "peerDependencies": { - "@bpmn-io/properties-panel": "^0.21.0", + "@bpmn-io/properties-panel": "0.19.x", "bpmn-js": "8.x || 9.x", - "camunda-bpmn-js-behaviors": "0.2.x", + "camunda-bpmn-js-behaviors": "0.1.x", "diagram-js": "7.x || 8.x" } }, @@ -3215,25 +3215,32 @@ } }, "node_modules/camunda-bpmn-js-behaviors": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/camunda-bpmn-js-behaviors/-/camunda-bpmn-js-behaviors-0.2.0.tgz", - "integrity": "sha512-pIaSLBUfJSObCBvfH2WHPTzZbdW4rV0vN4PObyXX1iqy0idKy2uJURQj/lLy7cGmZAWO4GVpDuco8+f8WzH9HA==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/camunda-bpmn-js-behaviors/-/camunda-bpmn-js-behaviors-0.1.1.tgz", + "integrity": "sha512-8hRxOuOgd9fEWFZ7rfB+TpxYnXm9uGJ2xjmZdCUBSKqF8yEbtDPRO3/NUJIf1YT7iHK+lYJaG4S+wRbbZX7wEw==", "peer": true, "dependencies": { "ids": "^1.0.0", - "min-dash": "^3.8.1" + "min-dash": "^3.7.0" }, "peerDependencies": { "bpmn-js": "9.x", - "camunda-bpmn-moddle": "7.x", - "zeebe-bpmn-moddle": "0.15.x" + "camunda-bpmn-moddle": "6.x", + "zeebe-bpmn-moddle": "0.12.x" } }, "node_modules/camunda-bpmn-moddle": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/camunda-bpmn-moddle/-/camunda-bpmn-moddle-7.0.1.tgz", - "integrity": "sha512-Br8Diu6roMpziHdpl66Dhnm0DTnCFMrSD9zwLV08LpD52QA0UsXxU87XfHf08HjuB7ly0Hd1bvajZRpf9hbmYQ==", - "peer": true + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/camunda-bpmn-moddle/-/camunda-bpmn-moddle-6.1.2.tgz", + "integrity": "sha512-DfhOTeq8oN01cB5sLE6Rq34/9xGD15/Y14pEM+YBIjgvV6Rclh+BgIa/2aRMm8An4Kc/itm2tECYiDr8p/FyTQ==", + "peer": true, + "dependencies": { + "min-dash": "^3.8.1" + }, + "peerDependencies": { + "bpmn-js": "^6.x || ^7.x || ^8.x || ^9.x", + "diagram-js": "^5.x || ^6.x || ^7.x || ^8.x" + } }, "node_modules/caniuse-lite": { "version": "1.0.30001366", @@ -3343,9 +3350,9 @@ } }, "node_modules/classnames": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz", - "integrity": "sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==" + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" }, "node_modules/clean-css": { "version": "4.1.11", @@ -9168,9 +9175,9 @@ } }, "node_modules/zeebe-bpmn-moddle": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-0.15.0.tgz", - "integrity": "sha512-cgn6bjkjrtOGcRumrgWnT1J93wTKmnFlSGGuwGXjF7pOksPF28ssbKiwKVMU6IXHnBDIVLQdf8fVNZn7JiBtQQ==", + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-0.12.2.tgz", + "integrity": "sha512-5oMdxaApO3msNEP+RxVapyWxuIHBNwi9WTVoCV99x/SAEuCK+VDYZloa9MCG4DX3dbuXUWA0VpzP4YJ+oNTapg==", "peer": true } }, @@ -10464,12 +10471,12 @@ } }, "@bpmn-io/element-templates-validator": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/element-templates-validator/-/element-templates-validator-0.10.0.tgz", - "integrity": "sha512-dQFJDCh2u3YhlGW2V/YBe3OaO15Sq4sx6GZYiO/eUK9SCvvD/iwObliHs9Z1LkTzOITel+J8nS5Yoaab+E2QRw==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/element-templates-validator/-/element-templates-validator-0.9.0.tgz", + "integrity": "sha512-oS5eaXPKxl5bV8x4dJYPCWJpWMumr16TTS39S1oJEh/bKke/nhMBuhsk6wWCp7+G3jWWDkUcS1jGAAaKtvQneA==", "requires": { - "@camunda/element-templates-json-schema": "^0.10.1", - "@camunda/zeebe-element-templates-json-schema": "^0.6.0", + "@camunda/element-templates-json-schema": "^0.10.0", + "@camunda/zeebe-element-templates-json-schema": "^0.5.0", "json-source-map": "^0.6.1", "min-dash": "^3.8.1" } @@ -10483,9 +10490,9 @@ } }, "@bpmn-io/feel-editor": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.3.0.tgz", - "integrity": "sha512-TPDDc2vCALrMletpBos+jM7d96Qp+RWEa3D95H/4EbbDr3+kyqjUy1Omp/+yQGC4a5ryBRrEwAGHbkoAPwwbIQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-0.2.0.tgz", + "integrity": "sha512-R85p56nFxffNp0fStNxz561EXJmcTdVZL7NyVhuB3qKS/mt4thuvK1B43YnXKdLx8WessjsbHzjvWkbCYZRWkQ==", "peer": true, "requires": { "@codemirror/autocomplete": "^6.0.3", @@ -10499,16 +10506,16 @@ } }, "@bpmn-io/properties-panel": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-0.21.0.tgz", - "integrity": "sha512-y9R6vMBFKNL2de4AAP8ep5X8temJMWHfDMTfMHM63G9oKhwEu15Q3Lidm3JmnobT7vUK3POugZJ/ZNK5Ko8igQ==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/properties-panel/-/properties-panel-0.19.0.tgz", + "integrity": "sha512-cw+MfA2gpCBsa9Q0+JT3Gc7OvR1NGXuyQj4yOk5QoQHNzxuIMNuz6EX2NvDsCrf0oSzc9z0FapbzDuJB+DSC1g==", "peer": true, "requires": { - "@bpmn-io/feel-editor": "0.3.0", + "@bpmn-io/feel-editor": "0.2.0", "classnames": "^2.3.1", - "diagram-js": "^8.9.0", - "min-dash": "^3.8.1", - "min-dom": "^3.2.1" + "diagram-js": "^8.1.2", + "min-dash": "^3.7.0", + "min-dom": "^3.1.3" } }, "@camunda/element-templates-json-schema": { @@ -10517,14 +10524,14 @@ "integrity": "sha512-sw8RNecjQgY7tX26PMLRJGNX/2QCnlwCvZfxQWh606qlJZsLbpvEbvfgIGCRoYlHYTlsP6PxVcWYx5LPo7yisg==" }, "@camunda/zeebe-element-templates-json-schema": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@camunda/zeebe-element-templates-json-schema/-/zeebe-element-templates-json-schema-0.6.0.tgz", - "integrity": "sha512-qawIFM52lp1hW2vWrHaX8ywguZsp2olE0DRTHUY+KWH5GwszZwGWECP3tji1KVih2TasQyf28kcQVh8TeQ6dAg==" + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@camunda/zeebe-element-templates-json-schema/-/zeebe-element-templates-json-schema-0.5.0.tgz", + "integrity": "sha512-BVHVl4cuK9LxL1eDSdWs8AzuZd981/+CPkw7xlwcB1Xkn6Di8E2iRbDUCBhOIqkahjJYq957nVtbM6jlqXX5qw==" }, "@codemirror/autocomplete": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.2.0.tgz", - "integrity": "sha512-yNCm2CEE4kE4L2Sf7WeyCej1Q3951ccaCWfomrlBkoERKCss+TzuEeqGe5VnAJTEybLy1yzf1BdMUY/988bfpg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.3.0.tgz", + "integrity": "sha512-4jEvh3AjJZTDKazd10J6ZsCIqaYxDMCeua5ouQxY8hlFIml+nr7le0SgBhT3SIytFBmdzPK3AUhXGuW3T79nVg==", "peer": true, "requires": { "@codemirror/language": "^6.0.0", @@ -11456,11 +11463,11 @@ } }, "bpmn-js-properties-panel": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/bpmn-js-properties-panel/-/bpmn-js-properties-panel-1.7.0.tgz", - "integrity": "sha512-06qjWOGqFO3iTAk0IWp7WwwjNeOPuXmI5DkXop6sgqDuVZDLDTeI1VWl/7IpTXy4Ku4QPfuq51Ljptu2oLbPMA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bpmn-js-properties-panel/-/bpmn-js-properties-panel-1.5.0.tgz", + "integrity": "sha512-0VAPk6xK/u+GepjGjt8HAXtBa2ab5o4Dkn5II8UgnFMoQThpvrsLras3vh1il8j/2vPhngAsfiA8z7Y9nJ6/Hw==", "requires": { - "@bpmn-io/element-templates-validator": "^0.10.0", + "@bpmn-io/element-templates-validator": "^0.9.0", "@bpmn-io/extract-process-variables": "^0.5.0", "array-move": "^3.0.1", "classnames": "^2.3.1", @@ -11573,20 +11580,23 @@ "dev": true }, "camunda-bpmn-js-behaviors": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/camunda-bpmn-js-behaviors/-/camunda-bpmn-js-behaviors-0.2.0.tgz", - "integrity": "sha512-pIaSLBUfJSObCBvfH2WHPTzZbdW4rV0vN4PObyXX1iqy0idKy2uJURQj/lLy7cGmZAWO4GVpDuco8+f8WzH9HA==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/camunda-bpmn-js-behaviors/-/camunda-bpmn-js-behaviors-0.1.1.tgz", + "integrity": "sha512-8hRxOuOgd9fEWFZ7rfB+TpxYnXm9uGJ2xjmZdCUBSKqF8yEbtDPRO3/NUJIf1YT7iHK+lYJaG4S+wRbbZX7wEw==", "peer": true, "requires": { "ids": "^1.0.0", - "min-dash": "^3.8.1" + "min-dash": "^3.7.0" } }, "camunda-bpmn-moddle": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/camunda-bpmn-moddle/-/camunda-bpmn-moddle-7.0.1.tgz", - "integrity": "sha512-Br8Diu6roMpziHdpl66Dhnm0DTnCFMrSD9zwLV08LpD52QA0UsXxU87XfHf08HjuB7ly0Hd1bvajZRpf9hbmYQ==", - "peer": true + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/camunda-bpmn-moddle/-/camunda-bpmn-moddle-6.1.2.tgz", + "integrity": "sha512-DfhOTeq8oN01cB5sLE6Rq34/9xGD15/Y14pEM+YBIjgvV6Rclh+BgIa/2aRMm8An4Kc/itm2tECYiDr8p/FyTQ==", + "peer": true, + "requires": { + "min-dash": "^3.8.1" + } }, "caniuse-lite": { "version": "1.0.30001366", @@ -11659,9 +11669,9 @@ "dev": true }, "classnames": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz", - "integrity": "sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==" + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" }, "clean-css": { "version": "4.1.11", @@ -16026,9 +16036,9 @@ "dev": true }, "zeebe-bpmn-moddle": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-0.15.0.tgz", - "integrity": "sha512-cgn6bjkjrtOGcRumrgWnT1J93wTKmnFlSGGuwGXjF7pOksPF28ssbKiwKVMU6IXHnBDIVLQdf8fVNZn7JiBtQQ==", + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-0.12.2.tgz", + "integrity": "sha512-5oMdxaApO3msNEP+RxVapyWxuIHBNwi9WTVoCV99x/SAEuCK+VDYZloa9MCG4DX3dbuXUWA0VpzP4YJ+oNTapg==", "peer": true } } diff --git a/package.json b/package.json index 7a234b4..8ffc1b3 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "bpmn-js-spiffworkflow", "version": "0.0.10", "description": "Extensions and modifications of BPMN.js to improve BPMN development for SpiffWorkflow", - "main": "dist/bpmn_spiffworkflow.js", "files": ["dist"], + "main": "dist/index.js", "scripts": { "all": "run-s lint test build", "build": "webpack --mode production", @@ -76,7 +76,7 @@ }, "dependencies": { "bpmn-js": "^9.4.1", - "bpmn-js-properties-panel": "^1.7.0", + "bpmn-js-properties-panel": "1.5.0", "diagram-js": "^8.9.0", "inherits": "^2.0.4", "inherits-browser": "^0.0.1", diff --git a/webpack.config.js b/webpack.config.js index f8752f1..6270bc6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,7 +52,12 @@ module.exports = [ }, output: { path: `${__dirname}/dist`, - filename: 'bpmn_spiffworkflow.js', + filename: 'index.js', + library: { + name: 'SpiffWorkflow', + type: 'umd', + export: 'default', + }, }, module: myModule, mode: 'development',