@modern-js/monorepo-tools 1.4.2 → 1.4.3

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/.eslintrc.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ['@modern-js'],
4
+ parserOptions: {
5
+ tsconfigRootDir: __dirname,
6
+ project: ['./tsconfig.json'],
7
+ },
8
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @modern-js/monorepo-tools
2
2
 
3
+ ## 1.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cffe99d: chore:
8
+ remove react eslint rules for `modern-js` rule set.
9
+ add .eslintrc for each package to speed up linting
10
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
11
+ - 60f7d8bf: feat: add tests dir to npmignore
12
+ - 305e0bb4: fix: commander.commandsMap typing not work
13
+ - 2888389b: add parse config for lerna
14
+ - Updated dependencies [a4330c73]
15
+ - Updated dependencies [b8599d09]
16
+ - Updated dependencies [6cffe99d]
17
+ - Updated dependencies [04ae5262]
18
+ - Updated dependencies [60f7d8bf]
19
+ - Updated dependencies [e4cec1ce]
20
+ - Updated dependencies [3b7aa8bb]
21
+ - Updated dependencies [5dbbeb57]
22
+ - Updated dependencies [ebfcbb35]
23
+ - Updated dependencies [3bf4f8b0]
24
+ - Updated dependencies [305e0bb4]
25
+ - @modern-js/core@1.8.0
26
+ - @modern-js/utils@1.5.0
27
+ - @modern-js/i18n-cli-language-detector@1.2.2
28
+ - @modern-js/plugin-changeset@1.2.5
29
+ - @modern-js/plugin-i18n@1.2.4
30
+ - @modern-js/new-action@1.3.6
31
+ - @modern-js/plugin@1.3.3
32
+
3
33
  ## 1.4.2
4
34
 
5
35
  ### Patch Changes
@@ -30,6 +30,11 @@ export const getProjectsByWorkspaceFile = async (rootPath, config, ignoreConfigs
30
30
 
31
31
  const pkgJson = JsonFile.load(path.resolve(rootPath, workspaceFile));
32
32
  packagesConfig = (pkgJson === null || pkgJson === void 0 ? void 0 : (_pkgJson$workspaces = pkgJson.workspaces) === null || _pkgJson$workspaces === void 0 ? void 0 : _pkgJson$workspaces.packages) || [];
33
+ } else if (workspaceFile === WORKSPACE_FILE.LERNA) {
34
+ var _lernaJson$packages;
35
+
36
+ const lernaJson = JsonFile.load(path.resolve(rootPath, workspaceFile));
37
+ packagesConfig = (_lernaJson$packages = lernaJson.packages) !== null && _lernaJson$packages !== void 0 ? _lernaJson$packages : [];
33
38
  }
34
39
 
35
40
  const projects = await getProjetsByPackageConfig(rootPath, packagesConfig, ignoreConfigs);
@@ -61,6 +66,11 @@ export const syncGetProjectsByWorkspaceFile = (rootPath, config, ignoreConfigs)
61
66
 
62
67
  const pkgJson = JsonFile.load(path.resolve(rootPath, workspaceFile));
63
68
  packagesConfig = (pkgJson === null || pkgJson === void 0 ? void 0 : (_pkgJson$workspaces2 = pkgJson.workspaces) === null || _pkgJson$workspaces2 === void 0 ? void 0 : _pkgJson$workspaces2.packages) || [];
69
+ } else if (workspaceFile === WORKSPACE_FILE.LERNA) {
70
+ var _lernaJson$packages2;
71
+
72
+ const lernaJson = JsonFile.load(path.resolve(rootPath, workspaceFile));
73
+ packagesConfig = (_lernaJson$packages2 = lernaJson.packages) !== null && _lernaJson$packages2 !== void 0 ? _lernaJson$packages2 : [];
64
74
  }
65
75
 
66
76
  const projects = syncGetProjetsByPackageConfig(rootPath, packagesConfig, ignoreConfigs);
@@ -50,6 +50,12 @@ const getProjectsByWorkspaceFile = async (rootPath, config, ignoreConfigs) => {
50
50
  const pkgJson = _nodeCoreLibrary.JsonFile.load(path.resolve(rootPath, workspaceFile));
51
51
 
52
52
  packagesConfig = (pkgJson === null || pkgJson === void 0 ? void 0 : (_pkgJson$workspaces = pkgJson.workspaces) === null || _pkgJson$workspaces === void 0 ? void 0 : _pkgJson$workspaces.packages) || [];
53
+ } else if (workspaceFile === _constants.WORKSPACE_FILE.LERNA) {
54
+ var _lernaJson$packages;
55
+
56
+ const lernaJson = _nodeCoreLibrary.JsonFile.load(path.resolve(rootPath, workspaceFile));
57
+
58
+ packagesConfig = (_lernaJson$packages = lernaJson.packages) !== null && _lernaJson$packages !== void 0 ? _lernaJson$packages : [];
53
59
  }
54
60
 
55
61
  const projects = await (0, _getProjectsByPackagesConfig.getProjetsByPackageConfig)(rootPath, packagesConfig, ignoreConfigs);
@@ -87,6 +93,12 @@ const syncGetProjectsByWorkspaceFile = (rootPath, config, ignoreConfigs) => {
87
93
  const pkgJson = _nodeCoreLibrary.JsonFile.load(path.resolve(rootPath, workspaceFile));
88
94
 
89
95
  packagesConfig = (pkgJson === null || pkgJson === void 0 ? void 0 : (_pkgJson$workspaces2 = pkgJson.workspaces) === null || _pkgJson$workspaces2 === void 0 ? void 0 : _pkgJson$workspaces2.packages) || [];
96
+ } else if (workspaceFile === _constants.WORKSPACE_FILE.LERNA) {
97
+ var _lernaJson$packages2;
98
+
99
+ const lernaJson = _nodeCoreLibrary.JsonFile.load(path.resolve(rootPath, workspaceFile));
100
+
101
+ packagesConfig = (_lernaJson$packages2 = lernaJson.packages) !== null && _lernaJson$packages2 !== void 0 ? _lernaJson$packages2 : [];
90
102
  }
91
103
 
92
104
  const projects = (0, _getProjectsByPackagesConfig.syncGetProjetsByPackageConfig)(rootPath, packagesConfig, ignoreConfigs);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.2",
14
+ "version": "1.4.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -35,14 +35,14 @@
35
35
  "modern": "./bin/modern.js"
36
36
  },
37
37
  "dependencies": {
38
- "@modern-js/core": "^1.7.0",
38
+ "@modern-js/core": "^1.8.0",
39
39
  "@babel/runtime": "^7",
40
- "@modern-js/i18n-cli-language-detector": "^1.2.1",
41
- "@modern-js/new-action": "^1.3.5",
42
- "@modern-js/plugin": "^1.3.2",
43
- "@modern-js/plugin-changeset": "^1.2.4",
44
- "@modern-js/plugin-i18n": "^1.2.3",
45
- "@modern-js/utils": "^1.4.0",
40
+ "@modern-js/i18n-cli-language-detector": "^1.2.2",
41
+ "@modern-js/new-action": "^1.3.6",
42
+ "@modern-js/plugin": "^1.3.3",
43
+ "@modern-js/plugin-changeset": "^1.2.5",
44
+ "@modern-js/plugin-i18n": "^1.2.4",
45
+ "@modern-js/utils": "^1.5.0",
46
46
  "@rushstack/node-core-library": "^3.39.1",
47
47
  "@rushstack/package-deps-hash": "^3.0.54",
48
48
  "anymatch": "^3.1.2",
@@ -1,7 +0,0 @@
1
- import plugin from '../src';
2
-
3
- describe('monorepo-tools', () => {
4
- it('default', () => {
5
- expect(plugin).toBeDefined();
6
- });
7
- });
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "outDir": "./out",
8
- "emitDeclarationOnly": true,
9
- "isolatedModules": true,
10
- "paths": {},
11
- "types": ["node", "jest"]
12
- }
13
- }