@dword-design/base-config-nuxt 8.1.4 → 8.1.6
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/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const resolver = createRequire(import.meta.url);
|
|
|
23
23
|
const isInNodeModules = __dirname.split(pathLib.sep).includes("node_modules");
|
|
24
24
|
export default defineBaseConfig(function (config) {
|
|
25
25
|
return {
|
|
26
|
-
allowedMatches: [".stylelintignore", ".stylelintrc.json", "server/api/**/*.ts", "server/plugins/**/*.ts", "server/routes/**/*.ts", "server/middleware/**/*.ts", "app.vue", "assets", "components", "composables", "content", "i18n", "layouts", "middleware", "model", "modules", "config.ts", "pages", "plugins", "public", "shared", "store", "types"],
|
|
26
|
+
allowedMatches: [".stylelintignore", ".stylelintrc.json", "server/api/**/*.ts", "server/plugins/**/*.ts", "server/routes/**/*.ts", "server/middleware/**/*.ts", "server/utils/**/*.ts", "app.vue", "assets", "components", "composables", "content", "i18n", "layouts", "middleware", "model", "modules", "config.ts", "pages", "plugins", "public", "shared", "store", "types"],
|
|
27
27
|
commands: {
|
|
28
28
|
analyze,
|
|
29
29
|
build,
|
|
@@ -43,6 +43,7 @@ export default defineBaseConfig(function (config) {
|
|
|
43
43
|
editorIgnore: [".eslintcache", ".stylelintcache", ".stylelintignore", ".stylelintrc.json", ".nuxt", ".output", "dist", "nuxt.config.ts"],
|
|
44
44
|
eslintConfig: getEslintConfig(pick(config, ["virtualImports"])),
|
|
45
45
|
gitignore: ["/.eslintcache", "/.nuxt", "/.output", "/.stylelintcache", "/dist", "/nuxt.config.ts"],
|
|
46
|
+
hasTypeModule: false,
|
|
46
47
|
hasTypescriptConfigRootAlias: false,
|
|
47
48
|
lint,
|
|
48
49
|
lintStagedConfig: {
|
|
@@ -52,6 +53,7 @@ export default defineBaseConfig(function (config) {
|
|
|
52
53
|
packageConfig: {
|
|
53
54
|
main: "dist/index.js"
|
|
54
55
|
},
|
|
56
|
+
// TODO: Remove this when https://github.com/nuxt/nuxt/issues/33733 is fixed
|
|
55
57
|
prepare: async () => {
|
|
56
58
|
const configPath = isInNodeModules ? "@dword-design/base-config-nuxt/config" : `./${pathLib.relative(this.cwd, resolver.resolve("./config").slice(0, -".ts".length)).split(pathLib.sep).join("/")}`;
|
|
57
59
|
const parentConfigPath = isInNodeModules ? "@dword-design/base-config-nuxt/nuxt.config" : `./${pathLib.relative(this.cwd, resolver.resolve("./nuxt.config").slice(0, -".ts".length)).split(pathLib.sep).join("/")}`;
|