@modern-js/monorepo-tools 1.4.0 → 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.
Files changed (64) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +68 -0
  3. package/dist/js/modern/cli/build-watch.js +3 -3
  4. package/dist/js/modern/cli/build.js +2 -2
  5. package/dist/js/modern/cli/clear.js +2 -2
  6. package/dist/js/modern/cli/deploy.js +2 -2
  7. package/dist/js/modern/cli/install.js +2 -2
  8. package/dist/js/modern/commands/build-watch.js +2 -4
  9. package/dist/js/modern/commands/build.js +2 -4
  10. package/dist/js/modern/commands/clear.js +3 -5
  11. package/dist/js/modern/commands/deploy.js +5 -6
  12. package/dist/js/modern/commands/install.js +2 -4
  13. package/dist/js/modern/dag/utils.js +0 -1
  14. package/dist/js/modern/features/build/index.js +2 -3
  15. package/dist/js/modern/features/deploy/index.js +3 -8
  16. package/dist/js/modern/features/dev/create-task.js +1 -2
  17. package/dist/js/modern/features/dev/index.js +1 -2
  18. package/dist/js/modern/features/install/index.js +3 -7
  19. package/dist/js/modern/hooks/index.js +2 -5
  20. package/dist/js/modern/index.js +22 -22
  21. package/dist/js/modern/log/multi-tasks-log.js +1 -1
  22. package/dist/js/modern/log/time.js +1 -1
  23. package/dist/js/modern/projects/get-projects-by-workspace-file.js +13 -6
  24. package/dist/js/modern/utils/install.js +1 -2
  25. package/dist/js/node/cli/build-watch.js +3 -3
  26. package/dist/js/node/cli/build.js +2 -2
  27. package/dist/js/node/cli/clear.js +2 -2
  28. package/dist/js/node/cli/deploy.js +2 -2
  29. package/dist/js/node/cli/install.js +2 -2
  30. package/dist/js/node/commands/build-watch.js +2 -5
  31. package/dist/js/node/commands/build.js +2 -5
  32. package/dist/js/node/commands/clear.js +3 -6
  33. package/dist/js/node/commands/deploy.js +5 -7
  34. package/dist/js/node/commands/install.js +2 -5
  35. package/dist/js/node/dag/utils.js +0 -1
  36. package/dist/js/node/features/build/index.js +5 -7
  37. package/dist/js/node/features/deploy/index.js +6 -16
  38. package/dist/js/node/features/dev/create-task.js +2 -6
  39. package/dist/js/node/features/dev/index.js +3 -5
  40. package/dist/js/node/features/install/index.js +4 -11
  41. package/dist/js/node/hooks/index.js +4 -10
  42. package/dist/js/node/index.js +25 -29
  43. package/dist/js/node/log/multi-tasks-log.js +4 -4
  44. package/dist/js/node/log/time.js +2 -2
  45. package/dist/js/node/projects/get-projects-by-workspace-file.js +16 -9
  46. package/dist/js/node/utils/install.js +2 -6
  47. package/dist/types/cli/build-watch.d.ts +3 -2
  48. package/dist/types/cli/build.d.ts +3 -2
  49. package/dist/types/cli/clear.d.ts +3 -2
  50. package/dist/types/cli/deploy.d.ts +3 -2
  51. package/dist/types/cli/install.d.ts +3 -2
  52. package/dist/types/cli/new.d.ts +1 -1
  53. package/dist/types/commands/build-watch.d.ts +2 -1
  54. package/dist/types/commands/build.d.ts +2 -1
  55. package/dist/types/commands/clear.d.ts +2 -1
  56. package/dist/types/commands/deploy.d.ts +2 -1
  57. package/dist/types/commands/install.d.ts +2 -1
  58. package/dist/types/hooks/index.d.ts +7 -1
  59. package/dist/types/index.d.ts +2 -3
  60. package/dist/types/log/time.d.ts +2 -2
  61. package/jest.config.js +0 -1
  62. package/package.json +9 -17
  63. package/tests/index.test.ts +0 -7
  64. package/tests/tsconfig.json +0 -13
package/jest.config.js CHANGED
@@ -2,7 +2,6 @@ const sharedConfig = require('@scripts/jest-config');
2
2
 
3
3
  /** @type {import('@jest/types').Config.InitialOptions} */
4
4
  module.exports = {
5
- // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
5
  ...sharedConfig,
7
6
  rootDir: __dirname,
8
7
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.0",
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,37 +35,29 @@
35
35
  "modern": "./bin/modern.js"
36
36
  },
37
37
  "dependencies": {
38
- "@modern-js/core": "^1.4.4",
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.3",
42
- "@modern-js/plugin": "^1.2.1",
43
- "@modern-js/plugin-changeset": "^1.2.2",
44
- "@modern-js/plugin-i18n": "^1.2.1",
45
- "@modern-js/utils": "^1.3.3",
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",
49
- "chalk": "^4.1.1",
50
- "chokidar": "^3.5.2",
51
- "commander": "^8.1.0",
52
49
  "globby": "^11.0.0",
53
- "js-yaml": "^4.1.0",
54
50
  "md5": "^2.3.0",
55
- "p-map": "^4.0.0",
56
- "signale": "^1.4.0"
51
+ "p-map": "^4.0.0"
57
52
  },
58
53
  "devDependencies": {
59
54
  "@scripts/build": "0.0.0",
60
55
  "@scripts/jest-config": "0.0.0",
61
56
  "@types/jest": "^26",
62
- "@types/js-yaml": "^4.0.2",
63
57
  "@types/md5": "^2.3.1",
64
58
  "@types/node": "^14",
65
59
  "@types/react": "^17",
66
60
  "@types/react-dom": "^17",
67
- "@types/signale": "^1.4.2",
68
- "execa": "^5.1.1",
69
61
  "jest": "^27",
70
62
  "typescript": "^4"
71
63
  },
@@ -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
- }