@gluhar/app 2.4.0 → 2.4.2

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.4.2](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.4.1...@gluhar/app@2.4.2) (2025-01-24)
7
+
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - Initial nuxt config ([2cd4891](https://github.com/gluharry/gluhar/commit/2cd4891de3f218a39e8eb87217022c0dad56d5ee))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.4.1](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.4.0...@gluhar/app@2.4.1) (2025-01-24)
18
+
19
+
20
+ ### 🩹 Fixes
21
+
22
+ - Default nuxt config options ([5d2e311](https://github.com/gluharry/gluhar/commit/5d2e3112b24d72dc1e534b8d81db0663b209b8ce))
23
+
24
+
25
+
26
+
27
+
6
28
  # [2.4.0](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.3.0...@gluhar/app@2.4.0) (2025-01-24)
7
29
 
8
30
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
3
  "configKey": "gluhar",
4
- "version": "2.4.0",
4
+ "version": "2.4.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -1,60 +1,5 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addImportsDir } from '@nuxt/kit';
2
-
3
- function isPlainObject(value) {
4
- if (value === null || typeof value !== "object") {
5
- return false;
6
- }
7
- const prototype = Object.getPrototypeOf(value);
8
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
9
- return false;
10
- }
11
- if (Symbol.iterator in value) {
12
- return false;
13
- }
14
- if (Symbol.toStringTag in value) {
15
- return Object.prototype.toString.call(value) === "[object Module]";
16
- }
17
- return true;
18
- }
19
-
20
- function _defu(baseObject, defaults, namespace = ".", merger) {
21
- if (!isPlainObject(defaults)) {
22
- return _defu(baseObject, {}, namespace, merger);
23
- }
24
- const object = Object.assign({}, defaults);
25
- for (const key in baseObject) {
26
- if (key === "__proto__" || key === "constructor") {
27
- continue;
28
- }
29
- const value = baseObject[key];
30
- if (value === null || value === void 0) {
31
- continue;
32
- }
33
- if (merger && merger(object, key, value, namespace)) {
34
- continue;
35
- }
36
- if (Array.isArray(value) && Array.isArray(object[key])) {
37
- object[key] = [...value, ...object[key]];
38
- } else if (isPlainObject(value) && isPlainObject(object[key])) {
39
- object[key] = _defu(
40
- value,
41
- object[key],
42
- (namespace ? `${namespace}.` : "") + key.toString(),
43
- merger
44
- );
45
- } else {
46
- object[key] = value;
47
- }
48
- }
49
- return object;
50
- }
51
- function createDefu(merger) {
52
- return (...arguments_) => (
53
- // eslint-disable-next-line unicorn/no-array-reduce
54
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
55
- );
56
- }
57
- const defu = createDefu();
2
+ import defu from 'defu';
58
3
 
59
4
  const module = defineNuxtModule({
60
5
  meta: {
@@ -80,27 +25,22 @@ const module = defineNuxtModule({
80
25
  addImportsDir(resolve("runtime/composables"));
81
26
  addImportsDir(resolve("runtime/utils"));
82
27
  addImportsDir(resolve("runtime/stores"));
83
- nuxt.options = defu(nuxt.options, {
84
- // Removes comments from the final build
85
- vite: {
86
- esbuild: {
87
- legalComments: "none"
88
- },
89
- build: {
90
- terserOptions: {
91
- format: {
92
- comments: false
93
- }
28
+ nuxt.options.vite = defu(nuxt.options.vite, {
29
+ esbuild: {
30
+ legalComments: "none"
31
+ },
32
+ build: {
33
+ terserOptions: {
34
+ format: {
35
+ comments: false
94
36
  }
95
37
  }
96
- },
97
- // Without this I was getting a 'EMFILE: too many open files' error.
98
- // Nuxt seem to know about this issue.
99
- // Investigate if this is still needed after some time. (Jan '25)
100
- experimental: {
101
- watcher: "parcel"
102
38
  }
103
39
  });
40
+ nuxt.options.experimental = defu(nuxt.options.experimental, {
41
+ watcher: "parcel"
42
+ });
43
+ console.log("nuxt.options.experimental", nuxt.options.experimental);
104
44
  }
105
45
  });
106
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -43,6 +43,7 @@
43
43
  "@gluhar/theme": "^2.0.2",
44
44
  "@nuxt/kit": "^3.13.1",
45
45
  "@pinia/nuxt": "^0.5.4",
46
+ "defu": "^6.1.4",
46
47
  "pinia": "^2.2.2"
47
48
  },
48
49
  "devDependencies": {
@@ -57,5 +58,5 @@
57
58
  "nuxt": "^3.13.1",
58
59
  "vitest": "^2.0.5"
59
60
  },
60
- "gitHead": "72175524c372e2ad4fb7802436290bdd73ab8fd7"
61
+ "gitHead": "daa04dac649ed8f522066f0718382b2a7f680510"
61
62
  }