@modern-js/repo-generator 0.0.0-canary-20220517033114 → 0.0.0-canary-20220519102003

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.
@@ -290875,16 +290875,16 @@ const fs_1 = __importDefault(__webpack_require__(57147));
290875
290875
  const path_1 = __importDefault(__webpack_require__(71017));
290876
290876
  const compiled_1 = __webpack_require__(62046);
290877
290877
  const PACKAGE_MAX_DEPTH = 5;
290878
- const WORKSPACES_FILES = {
290878
+ const WORKSPACE_FILES = {
290879
290879
  YARN: 'package.json',
290880
- PNPM: 'pnpm-workspaces.yaml',
290880
+ PNPM: 'pnpm-workspace.yaml',
290881
290881
  LERNA: 'lerna.json',
290882
290882
  };
290883
- const isLerna = (root) => fs_1.default.existsSync(path_1.default.join(root, WORKSPACES_FILES.LERNA));
290883
+ const isLerna = (root) => fs_1.default.existsSync(path_1.default.join(root, WORKSPACE_FILES.LERNA));
290884
290884
  exports.isLerna = isLerna;
290885
290885
  const isYarnWorkspaces = (root) => {
290886
290886
  var _a;
290887
- const pkg = path_1.default.join(root, WORKSPACES_FILES.YARN);
290887
+ const pkg = path_1.default.join(root, WORKSPACE_FILES.YARN);
290888
290888
  if (!fs_1.default.existsSync(pkg)) {
290889
290889
  return false;
290890
290890
  }
@@ -290892,7 +290892,7 @@ const isYarnWorkspaces = (root) => {
290892
290892
  return Boolean((_a = json.workspaces) === null || _a === void 0 ? void 0 : _a.packages);
290893
290893
  };
290894
290894
  exports.isYarnWorkspaces = isYarnWorkspaces;
290895
- const isPnpmWorkspaces = (root) => fs_1.default.existsSync(path_1.default.join(root, WORKSPACES_FILES.PNPM));
290895
+ const isPnpmWorkspaces = (root) => fs_1.default.existsSync(path_1.default.join(root, WORKSPACE_FILES.PNPM));
290896
290896
  exports.isPnpmWorkspaces = isPnpmWorkspaces;
290897
290897
  const isMonorepo = (root) => (0, exports.isLerna)(root) || (0, exports.isYarnWorkspaces)(root) || (0, exports.isPnpmWorkspaces)(root);
290898
290898
  exports.isMonorepo = isMonorepo;
@@ -290929,7 +290929,7 @@ const getMonorepoPackages = (root) => {
290929
290929
  ({ packages } = json);
290930
290930
  }
290931
290931
  else {
290932
- ({ packages } = compiled_1.yaml.load(fs_1.default.readFileSync(path_1.default.join(root, WORKSPACES_FILES.PNPM), 'utf8')));
290932
+ ({ packages } = compiled_1.yaml.load(fs_1.default.readFileSync(path_1.default.join(root, WORKSPACE_FILES.PNPM), 'utf8')));
290933
290933
  }
290934
290934
  if (packages) {
290935
290935
  return packages
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220517033114",
14
+ "version": "0.0.0-canary-20220519102003",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -32,8 +32,8 @@
32
32
  "@modern-js/monorepo-generator": "2.0.1",
33
33
  "@modern-js/mwa-generator": "2.0.1",
34
34
  "@modern-js/base-generator": "1.4.2",
35
- "@modern-js/generator-plugin": "0.0.0-canary-20220517033114",
36
- "@modern-js/utils": "0.0.0-canary-20220517033114",
35
+ "@modern-js/generator-plugin": "1.2.9",
36
+ "@modern-js/utils": "0.0.0-canary-20220519102003",
37
37
  "@types/jest": "^27",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",
@@ -82,7 +82,8 @@
82
82
  "files": [
83
83
  "src/**/*",
84
84
  "tsconfig.json",
85
- "package.json"
85
+ "package.json",
86
+ "tests/**/*"
86
87
  ],
87
88
  "output": []
88
89
  }