Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: turn into ES module
  • Loading branch information
nikku committed Oct 2, 2022
1 parent 6f9e1a6 commit 5ab8877
Show file tree
Hide file tree
Showing 27 changed files with 1,207 additions and 88 deletions.
11 changes: 10 additions & 1 deletion .eslintrc
@@ -1,3 +1,12 @@
{
"extends": "plugin:bpmn-io/recommended"
"extends": "plugin:bpmn-io/recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-syntax-import-assertions"
]
}
}
}
2 changes: 1 addition & 1 deletion lib/index.js
@@ -1,3 +1,3 @@
export {
default
} from './simple';
} from './simple.js';
14 changes: 7 additions & 7 deletions lib/simple.js
Expand Up @@ -2,14 +2,14 @@ import {
assign
} from 'min-dash';

import BpmnModdle from './bpmn-moddle';
import BpmnModdle from './bpmn-moddle.js';

import BpmnPackage from '../resources/bpmn/json/bpmn.json';
import BpmnDiPackage from '../resources/bpmn/json/bpmndi.json';
import DcPackage from '../resources/bpmn/json/dc.json';
import DiPackage from '../resources/bpmn/json/di.json';
import BiocPackage from '../resources/bpmn-io/json/bioc.json';
import BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json';
import BpmnPackage from '../resources/bpmn/json/bpmn.json' assert { type: 'json' };
import BpmnDiPackage from '../resources/bpmn/json/bpmndi.json' assert { type: 'json' };
import DcPackage from '../resources/bpmn/json/dc.json' assert { type: 'json' };
import DiPackage from '../resources/bpmn/json/di.json' assert { type: 'json' };
import BiocPackage from '../resources/bpmn-io/json/bioc.json' assert { type: 'json' };
import BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' assert { type: 'json' };

var packages = {
bpmn: BpmnPackage,
Expand Down

0 comments on commit 5ab8877

Please sign in to comment.