Skip to content

Commit

Permalink
chore: use import attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Mar 7, 2024
1 parent d33b0bc commit b5413a2
Show file tree
Hide file tree
Showing 9 changed files with 367 additions and 397 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-syntax-import-assertions"
"@babel/plugin-syntax-import-attributes"
]
}
}
Expand Down
12 changes: 6 additions & 6 deletions lib/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {

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

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' };
import BpmnPackage from '../resources/bpmn/json/bpmn.json' with { type: 'json' };
import BpmnDiPackage from '../resources/bpmn/json/bpmndi.json' with { type: 'json' };
import DcPackage from '../resources/bpmn/json/dc.json' with { type: 'json' };
import DiPackage from '../resources/bpmn/json/di.json' with { type: 'json' };
import BiocPackage from '../resources/bpmn-io/json/bioc.json' with { type: 'json' };
import BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' with { type: 'json' };

const packages = {
bpmn: BpmnPackage,
Expand Down
737 changes: 353 additions & 384 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"sideEffects": false,
"devDependencies": {
"@babel/eslint-parser": "^7.23.10",
"@babel/plugin-syntax-import-assertions": "^7.23.3",
"@babel/plugin-syntax-import-attributes": "^7.23.3",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"bpmn-in-color-moddle": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/camunda/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
readFile
} from '../../helper.js';

import camundaPackage from '../../fixtures/json/model/camunda.json' assert { type: 'json' };
import camundaPackage from '../../fixtures/json/model/camunda.json' with { type: 'json' };


describe('bpmn-moddle - integration', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/camunda/roundtrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
createModdle
} from '../../helper.js';

import camundaPackage from '../../fixtures/json/model/camunda.json' assert { type: 'json' };
import camundaPackage from '../../fixtures/json/model/camunda.json' with { type: 'json' };

import {
fromFile as parseFromFile,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/camunda/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
createModdle
} from '../../helper.js';

import camundaPackage from '../../fixtures/json/model/camunda.json' assert { type: 'json' };
import camundaPackage from '../../fixtures/json/model/camunda.json' with { type: 'json' };


describe('bpmn-moddle - integration', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
readFile
} from '../helper.js';

import droolsPackage from '../fixtures/json/model/drools.json' assert { type: 'json' };
import droolsPackage from '../fixtures/json/model/drools.json' with { type: 'json' };

import {
assign
Expand Down
3 changes: 2 additions & 1 deletion test/spec/extension/expr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
readFile
} from '../../helper.js';

import ExprModdle from '../../fixtures/json/model/expr.json' assert { type: 'json' };
import ExprModdle from '../../fixtures/json/model/expr.json' with { type: 'json' };


describe('bpmn-moddle - expr', function() {

Expand Down

0 comments on commit b5413a2

Please sign in to comment.