@dword-design/base-config-nuxt 6.2.3 → 6.2.4

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/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createRequire } from 'node:module';
2
2
  import { execa } from 'execa';
3
3
  import fs from 'fs-extra';
4
- const _require = createRequire(import.meta.url);
5
- const nuxtWrapper = _require.resolve('./nuxt-wrapper.js');
4
+ const resolver = createRequire(import.meta.url);
5
+ const nuxtWrapper = resolver.resolve('./nuxt-wrapper.js');
6
6
  export default async (options = {}) => {
7
7
  options = {
8
8
  log: process.env.NODE_ENV !== 'test',
package/dist/dev.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { createRequire } from 'node:module';
2
2
  import { execa } from 'execa';
3
- const _require = createRequire(import.meta.url);
4
- const nuxtWrapper = _require.resolve('./nuxt-wrapper.js');
3
+ const resolver = createRequire(import.meta.url);
4
+ const nuxtWrapper = resolver.resolve('./nuxt-wrapper.js');
5
5
  export default (options = {}) => {
6
6
  options = {
7
7
  log: process.env.NODE_ENV !== 'test',
8
8
  ...options
9
9
  };
10
10
  return execa(nuxtWrapper, ['dev'], {
11
- [options.log ? 'stdio' : 'stderr']: 'inherit'
11
+ [options.log ? 'stdio' : 'stderr']: 'inherit',
12
+ reject: false
12
13
  });
13
14
  };
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import lint from "./lint.js";
15
15
  import prepublishOnly from "./prepublish-only.js";
16
16
  import start from "./start.js";
17
17
  const __dirname = P.dirname(fileURLToPath(import.meta.url));
18
- const _require = createRequire(import.meta.url);
18
+ const resolver = createRequire(import.meta.url);
19
19
  const isInNodeModules = __dirname.split(P.sep).includes('node_modules');
20
20
  export default {
21
21
  allowedMatches: ['.stylelintrc.json', 'server/api/**/*.js', 'server/plugins/**/*.js', 'server/routes/**/*.js', 'server/middleware/**/*.js', 'app.vue', 'assets', 'components', 'composables', 'content', 'i18n', 'layouts', 'middleware', 'model', 'modules', 'config.js', 'pages', 'plugins', 'public', 'store', 'types'],
@@ -42,8 +42,8 @@ export default {
42
42
  main: 'dist/index.js'
43
43
  },
44
44
  prepare: async () => {
45
- const configPath = isInNodeModules ? '@dword-design/base-config-nuxt/config' : `./${P.relative(process.cwd(), _require.resolve('./config.js')).split(P.sep).join('/')}`;
46
- const parentConfigPath = isInNodeModules ? '@dword-design/base-config-nuxt/nuxt.config' : `./${P.relative(process.cwd(), _require.resolve('./nuxt.config.js')).split(P.sep).join('/')}`;
45
+ const configPath = isInNodeModules ? '@dword-design/base-config-nuxt/config' : `./${P.relative(process.cwd(), resolver.resolve('./config.js')).split(P.sep).join('/')}`;
46
+ const parentConfigPath = isInNodeModules ? '@dword-design/base-config-nuxt/nuxt.config' : `./${P.relative(process.cwd(), resolver.resolve('./nuxt.config.js')).split(P.sep).join('/')}`;
47
47
  await outputFiles({
48
48
  '.stylelintrc.json': `${JSON.stringify({
49
49
  extends: packageName`@dword-design/stylelint-config`
@@ -1,10 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import dotenv from '@dword-design/dotenv-json-extended';
3
- import { x } from 'tinyexec';
3
+ import { execa } from 'execa';
4
4
  dotenv.config();
5
- x('nuxt', process.argv.slice(2), {
6
- nodeOptions: {
7
- stdio: 'inherit'
8
- },
9
- throwOnError: true
5
+ execa('nuxt', process.argv.slice(2), {
6
+ stdio: 'inherit'
10
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "6.2.3",
3
+ "version": "6.2.4",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -46,12 +46,11 @@
46
46
  "output-files": "^2.0.32",
47
47
  "require-package-name": "^2.0.1",
48
48
  "stylelint": "^16.19.1",
49
- "tinyexec": "^1.0.1",
50
49
  "vite-plugin-eslint2": "^5.0.3",
51
50
  "vite-svg-loader": "^5.1.0"
52
51
  },
53
52
  "devDependencies": {
54
- "@dword-design/base": "^12.0.13",
53
+ "@dword-design/base": "^12.0.14",
55
54
  "@dword-design/tester": "^2.0.19",
56
55
  "@dword-design/tester-plugin-tmp-dir": "^2.1.26",
57
56
  "@nuxtjs/sitemap": "^7.3.0",