Skip to content

Commit

Permalink
fix: import correction and changeset
Browse files Browse the repository at this point in the history
Signed-off-by: Sujith <mail.sujithvn@gmail.com>
  • Loading branch information
sujithvn committed Mar 3, 2023
1 parent 1cbfcd2 commit fee4dbe
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .changeset/strange-terms-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
"@reactioncommerce/api-core": major
"@reactioncommerce/api-plugin-accounts": major
"@reactioncommerce/api-plugin-address-validation": major
"@reactioncommerce/api-plugin-address-validation-test": major
"@reactioncommerce/api-plugin-authentication": major
"@reactioncommerce/api-plugin-authorization-simple": major
"@reactioncommerce/api-plugin-carts": major
"@reactioncommerce/api-plugin-catalogs": major
"@reactioncommerce/api-plugin-discounts": major
"@reactioncommerce/api-plugin-discounts-codes": major
"@reactioncommerce/api-plugin-email": major
"@reactioncommerce/api-plugin-email-smtp": major
"@reactioncommerce/api-plugin-email-templates": major
"@reactioncommerce/api-plugin-files": major
"@reactioncommerce/api-plugin-i18n": major
"@reactioncommerce/api-plugin-inventory": major
"@reactioncommerce/api-plugin-inventory-simple": major
"@reactioncommerce/api-plugin-job-queue": major
"@reactioncommerce/api-plugin-navigation": major
"@reactioncommerce/api-plugin-notifications": major
"@reactioncommerce/api-plugin-orders": major
"@reactioncommerce/api-plugin-payments": major
"@reactioncommerce/api-plugin-payments-example": major
"@reactioncommerce/api-plugin-payments-stripe-sca": major
"@reactioncommerce/api-plugin-pricing-simple": major
"@reactioncommerce/api-plugin-products": major
"@reactioncommerce/api-plugin-sample-data": major
"@reactioncommerce/api-plugin-settings": major
"@reactioncommerce/api-plugin-shipments": major
"@reactioncommerce/api-plugin-shipments-flat-rate": major
"@reactioncommerce/api-plugin-shops": major
"@reactioncommerce/api-plugin-simple-schema": major
"@reactioncommerce/api-plugin-sitemap-generator": major
"@reactioncommerce/api-plugin-surcharges": major
"@reactioncommerce/api-plugin-system-information": major
"@reactioncommerce/api-plugin-tags": major
"@reactioncommerce/api-plugin-taxes": major
"@reactioncommerce/api-plugin-taxes-flat-rate": major
"@reactioncommerce/api-plugin-translations": major
"@reactioncommerce/api-utils": major
---

Node18 upgrade includes assert json
2 changes: 1 addition & 1 deletion apps/reaction/src/checkNodeVersion.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// this check to work on older Node versions that
// do not support ES modules.

const semver = require("semver");
import * as packageJson from "./package.json" assert { type: "json" };
const semver = require("semver");

const requiredNodeVersion = packageJson.engines.node;
if (!semver.satisfies(process.version, requiredNodeVersion)) {
Expand Down
3 changes: 0 additions & 3 deletions apps/reaction/tests/util/setupJestTests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* eslint-disable no-undef */
import { createRequire } from "module";

const require = createRequire(import.meta.url);
import * as jestProcessEnv from "./jestProcessEnv.json" assert { type: "json" };

process.env = Object.assign(process.env, {
Expand Down

0 comments on commit fee4dbe

Please sign in to comment.