}
},
{
- "files": ["**/*.js", "**/*.mjs"],
+ "files": ["**/*.js", "**/*.cjs", "**/*.mjs"],
"plugins": ["jsdoc"],
"extends": ["plugin:jsdoc/recommended", "plugin:n/recommended"],
"rules": {
"full-trace": true,
"enable-source-maps": true,
"exit": true,
- "require": ["ts-node/register/transpile-only", "mochawesome/register"]
+ "node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm"],
+ "require": ["mochawesome/register"]
}
# Build simulator
WORKDIR /usr/builder
-COPY .npmrc package.json package-lock.json tsconfig.json rollup.config.mjs prepare.js build-requirements.mjs ./
+COPY .npmrc package.json package-lock.json tsconfig.json rollup.config.mjs prepare.cjs build-requirements.mjs ./
COPY src ./src
COPY docker/config.json ./src/assets/config.json
COPY docker/authorization-tags.json ./src/assets/authorization-tags.json
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
+ "type": "module",
"exports": [
"./dist/start.mjs"
],
"useTsNode": true
},
"scripts": {
- "prepare": "node prepare.js",
+ "prepare": "node prepare.cjs",
"build-requirements": "node --no-warnings build-requirements.mjs",
"start": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.mjs",
"start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs",
"build": "npm run rollup",
"build:dev": "npm run rollup -- --environment BUILD:development",
"build:dev:watch": "npm run rollup -- --environment BUILD:development --watch",
- "lint": "cross-env TIMING=1 eslint --cache --ext .js,.mjs,.ts src",
- "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.mjs,.ts src",
+ "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
+ "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.cjs,.mjs,.ts src",
"format": "prettier --cache --write .",
"test": "c8 mocha test/**/*Test.ts",
"test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
// "skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
- "exclude": ["ui/web/**/*.ts"],
- "ts-node": {
- "compilerOptions": {
- "module": "commonjs",
- "verbatimModuleSyntax": false,
- }
- }
+ "exclude": ["ui/web/**/*.ts"]
}