diff --git a/.eslintrc b/.eslintrc index 98c426857..ce3140343 100644 --- a/.eslintrc +++ b/.eslintrc @@ -60,6 +60,9 @@ "import/no-extraneous-dependencies": "off", "import/newline-after-import": "off", "import/no-named-as-default": "off", + "import/no-unresolved": 2, //to handle cjs node modules to esm + "import/no-commonjs": 2, //to handle cjs node modules to esm + "import/extensions": [2, "ignorePackages"], //to handle cjs node modules to esm "lodash/import-scope": ["error", "method"], "lodash/prefer-constant": "off", "lodash/prefer-lodash-method": "off", diff --git a/CHANGELOG.md b/CHANGELOG.md index 8339ffb70..fcae9f72d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ This version of the dashboard requires Cumulus API >= v18.2.0 `@cumulus/aws-client@18.2.0-alpha.0` to work with localstack v3.0.0 - **Snyk Security Fix** - Upgraded axios from 1.6.0 to 1.6.8 +- **CUMULUS-3662** + - Upgrade node dependencies that were CommonJS(CJS) to ECMAScript Modules(ESM) ## [v12.1.0] - 2023-10-27 diff --git a/package.json b/package.json index 9aadba570..a1ea73598 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "cumulus-dashboard", "version": "12.1.0", + "type":"module", "description": "A dashboard for Cumulus API", "repository": { "type": "git",