@modern-js/plugin-docsite 0.0.0-windows-2021101142341 → 0.0.0-windows-2021102103427

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/CHANGELOG.md CHANGED
@@ -1,14 +1,15 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 0.0.0-windows-2021101142341
3
+ ## 0.0.0-windows-2021102103427
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - windows compatibility
7
+ - 6b802b2: use path method from @modern-js/utils
8
+ - windows test
8
9
  - Updated dependencies [undefined]
9
- - @modern-js/core@0.0.0-windows-2021101142341
10
- - @modern-js/webpack@0.0.0-windows-2021101142341
11
- - @modern-js/utils@0.0.0-windows-2021101142341
10
+ - @modern-js/core@0.0.0-windows-2021102103427
11
+ - @modern-js/webpack@0.0.0-windows-2021102103427
12
+ - @modern-js/utils@0.0.0-windows-2021102103427
12
13
 
13
14
  ## 1.0.0
14
15
 
@@ -1,6 +1,5 @@
1
- import * as path from 'path';
2
1
  import * as glob from 'glob';
3
- import { chalk, fs } from '@modern-js/utils';
2
+ import { chalk, fs, path } from '@modern-js/utils';
4
3
  export const valid = ({
5
4
  appDirectory,
6
5
  docsDir
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.valid = void 0;
7
7
 
8
- var path = _interopRequireWildcard(require("path"));
9
-
10
8
  var glob = _interopRequireWildcard(require("glob"));
11
9
 
12
10
  var _utils = require("@modern-js/utils");
@@ -19,7 +17,8 @@ const valid = ({
19
17
  appDirectory,
20
18
  docsDir
21
19
  }) => {
22
- const docsAbsPath = path.join(appDirectory, docsDir);
20
+ const docsAbsPath = _utils.path.join(appDirectory, docsDir);
21
+
23
22
  const files = glob.sync(`${docsAbsPath}/**/*.{md,mdx}`);
24
23
 
25
24
  if (!_utils.fs.existsSync(docsAbsPath) || files.length <= 0) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-windows-2021101142341",
14
+ "version": "0.0.0-windows-2021102103427",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -32,8 +32,8 @@
32
32
  "@babel/runtime": "^7",
33
33
  "@mdx-js/mdx": "^1.6.22",
34
34
  "@mdx-js/react": "^1.6.22",
35
- "@modern-js/utils": "^0.0.0-windows-2021101142341",
36
- "@modern-js/webpack": "^0.0.0-windows-2021101142341",
35
+ "@modern-js/utils": "^0.0.0-windows-2021102103427",
36
+ "@modern-js/webpack": "^0.0.0-windows-2021102103427",
37
37
  "antd": "^4.16.13",
38
38
  "chokidar": "^3.5.2",
39
39
  "core-js": "^3.17.2",
@@ -57,7 +57,7 @@
57
57
  "webpack-dev-server": "^4.1.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@modern-js/module-tools-hooks": "^0.0.0-windows-2021101142341",
60
+ "@modern-js/module-tools-hooks": "^0.0.0-windows-2021102103427",
61
61
  "@types/core-js": "^2.5.5",
62
62
  "@types/github-slugger": "^1.3.0",
63
63
  "@types/glob": "^7.1.4",
@@ -68,12 +68,12 @@
68
68
  "@types/react-dom": "^17",
69
69
  "@types/webpack-dev-server": "^4.1.0",
70
70
  "typescript": "^4",
71
- "@modern-js/core": "^0.0.0-windows-2021101142341",
72
- "@modern-js/plugin-testing": "^0.0.0-windows-2021101142341",
73
- "@modern-js/module-tools": "^0.0.0-windows-2021101142341"
71
+ "@modern-js/core": "^0.0.0-windows-2021102103427",
72
+ "@modern-js/plugin-testing": "^0.0.0-windows-2021102103427",
73
+ "@modern-js/module-tools": "^0.0.0-windows-2021102103427"
74
74
  },
75
75
  "peerDependencies": {
76
- "@modern-js/core": "^0.0.0-windows-2021101142341"
76
+ "@modern-js/core": "^0.0.0-windows-2021102103427"
77
77
  },
78
78
  "sideEffects": false,
79
79
  "modernConfig": {
@@ -1,6 +1,5 @@
1
- import * as path from 'path';
2
1
  import * as glob from 'glob';
3
- import { chalk, fs } from '@modern-js/utils';
2
+ import { chalk, fs, path } from '@modern-js/utils';
4
3
 
5
4
  interface ValidOption {
6
5
  appDirectory: string;