@dword-design/base-config-nuxt 9.0.1 → 9.0.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.
@@ -1,48 +1,2 @@
1
- declare const _default: {
2
- app: {
3
- head: {
4
- meta: ({
5
- content: any;
6
- hid: string;
7
- name: string;
8
- } | {
9
- content: string;
10
- name: string;
11
- hid?: undefined;
12
- })[];
13
- };
14
- };
15
- devtools: {
16
- enabled: boolean;
17
- };
18
- eslint: {
19
- checker: {
20
- fix: boolean;
21
- };
22
- config: {
23
- standalone: boolean;
24
- };
25
- };
26
- modules: any[];
27
- router: {
28
- options: {
29
- linkActiveClass: string;
30
- };
31
- };
32
- typescript: {
33
- strict: boolean;
34
- };
35
- vite: {
36
- css: {
37
- modules: {
38
- localsConvention: string;
39
- };
40
- };
41
- vue: {
42
- template: {
43
- transformAssetUrls: boolean;
44
- };
45
- };
46
- };
47
- };
1
+ declare const _default: import("c12").InputConfig<import("@nuxt/schema").NuxtConfig, import("c12").ConfigLayerMeta>;
48
2
  export default _default;
@@ -1,23 +1,22 @@
1
1
  import { defineNuxtModule } from "@nuxt/kit";
2
2
  import packageName from "depcheck-package-name";
3
+ import { defineNuxtConfig } from "nuxt/config";
3
4
  import ts from "typescript";
4
5
  import config from "./config.js";
5
6
  const {
6
7
  config: typescriptConfig
7
8
  } = ts.readConfigFile("tsconfig.json", ts.sys.readFile);
8
- export default {
9
+ export default defineNuxtConfig({
9
10
  app: {
10
11
  head: {
11
12
  meta: [{
12
13
  content: config.name,
13
- hid: "description",
14
14
  name: "description"
15
15
  }, ...(config.webApp ? [{
16
16
  content: "yes",
17
17
  name: "apple-mobile-web-app-capable"
18
18
  }] : []), ...(config.ogImage ? [{
19
19
  content: config.ogImage,
20
- hid: "og:image",
21
20
  name: "og:image"
22
21
  }] : [])]
23
22
  }
@@ -25,12 +24,10 @@ export default {
25
24
  devtools: {
26
25
  enabled: true
27
26
  },
28
- eslint: {
29
- checker: {
30
- fix: true
31
- },
32
- config: {
33
- standalone: false
27
+ hooks: {
28
+ "prepare:types": opts => {
29
+ opts.tsConfig.include = opts.tsConfig.include || [];
30
+ opts.tsConfig.include.push("../model/**/*");
34
31
  }
35
32
  },
36
33
  modules: [defineNuxtModule({
@@ -42,7 +39,14 @@ export default {
42
39
  }
43
40
  }
44
41
  }
45
- }), packageName`@nuxt/eslint`, [packageName`@nuxtjs/stylelint-module`, {
42
+ }), [packageName`@nuxt/eslint`, {
43
+ checker: {
44
+ fix: true
45
+ },
46
+ config: {
47
+ standalone: false
48
+ }
49
+ }], [packageName`@nuxtjs/stylelint-module`, {
46
50
  allowEmptyInput: true,
47
51
  failOnWarning: true,
48
52
  fix: true,
@@ -71,4 +75,4 @@ export default {
71
75
  }
72
76
  }
73
77
  }
74
- };
78
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",