@dword-design/base-config-nuxt 4.0.6 → 4.0.8
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/depcheck-special.js +4 -3
- package/dist/eslint.config.js +3 -0
- package/dist/index.js +2 -2
- package/package.json +2 -1
package/dist/depcheck-special.js
CHANGED
|
@@ -4,9 +4,10 @@ import map from "@dword-design/functions/dist/map.js";
|
|
|
4
4
|
import jitiBabelTransform from '@dword-design/jiti-babel-transform';
|
|
5
5
|
import jiti from 'jiti';
|
|
6
6
|
import P from 'path';
|
|
7
|
+
import requirePackageName from 'require-package-name';
|
|
7
8
|
export default (path => {
|
|
8
9
|
if (P.basename(path) === 'config.js') {
|
|
9
|
-
var _ref, _modules;
|
|
10
|
+
var _ref, _ref2, _modules;
|
|
10
11
|
const jitiInstance = jiti(process.cwd(), {
|
|
11
12
|
esmResolve: true,
|
|
12
13
|
interopDefault: true,
|
|
@@ -14,10 +15,10 @@ export default (path => {
|
|
|
14
15
|
});
|
|
15
16
|
const config = jitiInstance('./config.js');
|
|
16
17
|
const modules = [...(config.modules || []), ...(config.buildModules || [])];
|
|
17
|
-
return _ref = (_modules = modules, map(mod => {
|
|
18
|
+
return _ref = (_ref2 = (_modules = modules, map(mod => {
|
|
18
19
|
var _concat;
|
|
19
20
|
return _concat = [].concat(mod), first(_concat);
|
|
20
|
-
})(_modules)), filter(name => typeof name === 'string')(_ref);
|
|
21
|
+
})(_modules)), filter(name => typeof name === 'string')(_ref2)), map(name => requirePackageName(name))(_ref);
|
|
21
22
|
}
|
|
22
23
|
return [];
|
|
23
24
|
});
|
package/dist/eslint.config.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -30,9 +30,9 @@ export default {
|
|
|
30
30
|
},
|
|
31
31
|
specials: [depcheckSpecial]
|
|
32
32
|
},
|
|
33
|
-
editorIgnore: ['.eslintcache', '.stylelintcache', '.stylelintrc.json', '.nuxt', 'app.vue', 'dist', 'nuxt.config.js'],
|
|
33
|
+
editorIgnore: ['.eslintcache', '.stylelintcache', '.stylelintrc.json', '.nuxt', '.output', 'app.vue', 'dist', 'nuxt.config.js'],
|
|
34
34
|
eslintConfig,
|
|
35
|
-
gitignore: ['/.eslintcache', '/.nuxt', '/.stylelintcache', '/app.vue', '/dist', '/nuxt.config.js'],
|
|
35
|
+
gitignore: ['/.eslintcache', '/.nuxt', '/.output', '/.stylelintcache', '/app.vue', '/dist', '/nuxt.config.js'],
|
|
36
36
|
lint,
|
|
37
37
|
nodeVersion: 18,
|
|
38
38
|
npmPublish: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-nuxt",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"repository": "dword-design/base-config-nuxt",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"nuxt-alias-path": "^1.0.0",
|
|
45
45
|
"nuxt-basic-authentication-module": "^0.2.1",
|
|
46
46
|
"output-files": "^2.0.0",
|
|
47
|
+
"require-package-name": "^2.0.1",
|
|
47
48
|
"stylelint": "^13.6.0",
|
|
48
49
|
"vite-svg-loader": "^4.0.0"
|
|
49
50
|
},
|