druxt-site 0.15.1 → 0.15.2-dev.20261120230059

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.
@@ -1,4 +1,3 @@
1
- import { existsSync } from 'fs';
2
1
  import { resolve, join } from 'path';
3
2
  import { DrupalJsonApiParams } from 'drupal-jsonapi-params';
4
3
  import { DruxtClient } from 'druxt';
@@ -63,6 +62,7 @@ const DruxtSiteNuxtModule = async function(moduleOptions = {}) {
63
62
  for (const module of druxtModules) {
64
63
  await this.addModule(module);
65
64
  }
65
+ const { existsSync } = this.nuxt.resolver.requireModule("fs");
66
66
  if (!await existsSync(resolve(this.options.srcDir, this.options.dir.layouts)) && options.site.layout) {
67
67
  this.addLayout(resolve(__dirname, "./layouts/default.vue"), "default");
68
68
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const fs = require('fs');
6
5
  const path = require('path');
7
6
  const drupalJsonapiParams = require('drupal-jsonapi-params');
8
7
  const druxt = require('druxt');
@@ -67,7 +66,8 @@ const DruxtSiteNuxtModule = async function(moduleOptions = {}) {
67
66
  for (const module of druxtModules) {
68
67
  await this.addModule(module);
69
68
  }
70
- if (!await fs.existsSync(path.resolve(this.options.srcDir, this.options.dir.layouts)) && options.site.layout) {
69
+ const { existsSync } = this.nuxt.resolver.requireModule("fs");
70
+ if (!await existsSync(path.resolve(this.options.srcDir, this.options.dir.layouts)) && options.site.layout) {
71
71
  this.addLayout(path.resolve(__dirname, "./layouts/default.vue"), "default");
72
72
  }
73
73
  this.nuxt.hook("storybook:config", async ({ stories }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt-site",
3
- "version": "0.15.1",
3
+ "version": "0.15.2-dev.20261120230059",
4
4
  "description": "Out of the box Decoupled Drupal sites with Druxt.",
5
5
  "keywords": [
6
6
  "cms",
@@ -48,14 +48,14 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "drupal-jsonapi-params": "^2.3.2",
51
- "druxt": "^0.25.1",
52
- "druxt-blocks": "^0.18.1",
53
- "druxt-breadcrumb": "^0.18.0",
54
- "druxt-entity": "^0.29.1",
55
- "druxt-menu": "^0.22.1",
56
- "druxt-router": "^0.32.1",
57
- "druxt-schema": "^0.12.1",
58
- "druxt-views": "^0.23.1"
51
+ "druxt": "0.25.2-dev.20261120230059",
52
+ "druxt-blocks": "0.18.2-dev.20261120230059",
53
+ "druxt-breadcrumb": "0.18.1-dev.20261120230059",
54
+ "druxt-entity": "0.29.2-dev.20261120230059",
55
+ "druxt-menu": "0.22.2-dev.20261120230059",
56
+ "druxt-router": "0.32.2-dev.20261120230059",
57
+ "druxt-schema": "0.12.2-dev.20261120230059",
58
+ "druxt-views": "0.23.2-dev.20261120230059"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "vue": "^2.7.14",