@vuepress/core 1.9.9 → 1.9.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018-present, Yuxi (Evan) You
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,9 +1,9 @@
1
1
  const {
2
2
  logger,
3
3
  fs,
4
+ globby,
4
5
  path: { resolve }
5
6
  } = require('@vuepress/shared-utils')
6
- const readdirSync = dir => (fs.existsSync(dir) && fs.readdirSync(dir)) || []
7
7
 
8
8
  module.exports = class ThemeAPI {
9
9
  constructor (theme, parentTheme) {
@@ -105,10 +105,12 @@ module.exports = class ThemeAPI {
105
105
 
106
106
  function resolveSFCs (dirs) {
107
107
  return dirs
108
- .map(layoutDir =>
109
- readdirSync(layoutDir)
110
- .filter(filename => filename.endsWith('.vue'))
111
- .map(filename => {
108
+ .map((layoutDir) =>
109
+ (fs.existsSync(layoutDir)
110
+ ? globby.sync('**/*.vue', { cwd: layoutDir, absolute: false })
111
+ : []
112
+ )
113
+ .map((filename) => {
112
114
  const componentName = getComponentName(filename)
113
115
  return {
114
116
  filename,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "1.9.9",
3
+ "version": "1.9.10",
4
4
  "description": "Minimalistic doc generator with Vue component based layout system",
5
5
  "keywords": [
6
6
  "documentation",
@@ -31,12 +31,12 @@
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.8.4",
33
33
  "@vue/babel-preset-app": "^4.1.2",
34
- "@vuepress/markdown": "1.9.9",
35
- "@vuepress/markdown-loader": "1.9.9",
36
- "@vuepress/plugin-last-updated": "1.9.9",
37
- "@vuepress/plugin-register-components": "1.9.9",
38
- "@vuepress/shared-utils": "1.9.9",
39
- "@vuepress/types": "1.9.9",
34
+ "@vuepress/markdown": "1.9.10",
35
+ "@vuepress/markdown-loader": "1.9.10",
36
+ "@vuepress/plugin-last-updated": "1.9.10",
37
+ "@vuepress/plugin-register-components": "1.9.10",
38
+ "@vuepress/shared-utils": "1.9.10",
39
+ "@vuepress/types": "1.9.10",
40
40
  "autoprefixer": "^9.5.1",
41
41
  "babel-loader": "^8.0.4",
42
42
  "bundle-require": "2.1.8",
@@ -76,5 +76,6 @@
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public"
79
- }
79
+ },
80
+ "gitHead": "a3e4bbab8df198b8b18d55031ff0b6f0bf190fdb"
80
81
  }