@adobe-commerce/elsie 1.2.1-alpha56 → 1.2.1-alpha57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/config/vite.mjs +5 -12
  2. package/package.json +1 -1
package/config/vite.mjs CHANGED
@@ -25,18 +25,11 @@ import banner from 'vite-plugin-banner';
25
25
  const env = loadEnv('', process.cwd());
26
26
 
27
27
  // Load Elsie Config
28
- const elsieConfig = await import(
29
- path.resolve(process.cwd(), './.elsie.js')
30
- ).then((m) => m.default);
31
-
32
- const packageJSON = await import(
33
- path.resolve(process.cwd(), './package.json'),
34
- {
35
- assert: {
36
- type: 'json',
37
- },
38
- }
39
- ).then((m) => m.default);
28
+ const elsieConfig = await import(path.resolve(process.cwd(), './.elsie.js')).then((m) => m.default);
29
+
30
+ // Read package.json using createRequire (compatible with Node 20 and 22)
31
+ const require = createRequire(import.meta.url);
32
+ const packageJSON = require(path.resolve(process.cwd(), './package.json'));
40
33
 
41
34
  // Paths
42
35
  const paths = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-commerce/elsie",
3
- "version": "1.2.1-alpha56",
3
+ "version": "1.2.1-alpha57",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Domain Package SDK",
6
6
  "engines": {