@mondaydotcomorg/z2h-cli 0.4.1 → 0.5.0

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 (46) hide show
  1. package/dist/commands/create-workspace.d.ts.map +1 -1
  2. package/dist/commands/create-workspace.js +3 -30
  3. package/dist/commands/migrate.d.ts +6 -0
  4. package/dist/commands/migrate.d.ts.map +1 -0
  5. package/dist/commands/migrate.js +13 -0
  6. package/dist/esm/commands/create-workspace.d.ts.map +1 -1
  7. package/dist/esm/commands/create-workspace.mjs +5 -32
  8. package/dist/esm/commands/migrate.d.ts +6 -0
  9. package/dist/esm/commands/migrate.d.ts.map +1 -0
  10. package/dist/esm/commands/migrate.mjs +11 -0
  11. package/dist/esm/index.mjs +14 -0
  12. package/dist/esm/migrations/001-remove-per-consumer-yarnrc.d.ts +3 -0
  13. package/dist/esm/migrations/001-remove-per-consumer-yarnrc.d.ts.map +1 -0
  14. package/dist/esm/migrations/001-remove-per-consumer-yarnrc.mjs +15 -0
  15. package/dist/esm/migrations/002-remove-z2h-cli-from-workspace-deps.d.ts +3 -0
  16. package/dist/esm/migrations/002-remove-z2h-cli-from-workspace-deps.d.ts.map +1 -0
  17. package/dist/esm/migrations/002-remove-z2h-cli-from-workspace-deps.mjs +41 -0
  18. package/dist/esm/migrations/auto-migrate.d.ts +2 -0
  19. package/dist/esm/migrations/auto-migrate.d.ts.map +1 -0
  20. package/dist/esm/migrations/auto-migrate.mjs +166 -0
  21. package/dist/esm/templates/workspace/nx.mjs +5 -0
  22. package/dist/index.js +14 -0
  23. package/dist/migrations/001-remove-per-consumer-yarnrc.d.ts +3 -0
  24. package/dist/migrations/001-remove-per-consumer-yarnrc.d.ts.map +1 -0
  25. package/dist/migrations/001-remove-per-consumer-yarnrc.js +17 -0
  26. package/dist/migrations/002-remove-z2h-cli-from-workspace-deps.d.ts +3 -0
  27. package/dist/migrations/002-remove-z2h-cli-from-workspace-deps.d.ts.map +1 -0
  28. package/dist/migrations/002-remove-z2h-cli-from-workspace-deps.js +43 -0
  29. package/dist/migrations/auto-migrate.d.ts +2 -0
  30. package/dist/migrations/auto-migrate.d.ts.map +1 -0
  31. package/dist/migrations/auto-migrate.js +174 -0
  32. package/dist/templates/workspace/nx.js +7 -0
  33. package/migrations.json +14 -0
  34. package/package.json +6 -2
  35. package/src/commands/__tests__/create-workspace.test.ts +2 -4
  36. package/src/commands/__tests__/create.test.ts +0 -1
  37. package/src/commands/create-workspace.ts +5 -33
  38. package/src/commands/migrate.ts +15 -0
  39. package/src/index.ts +14 -0
  40. package/src/migrations/001-remove-per-consumer-yarnrc.ts +15 -0
  41. package/src/migrations/002-remove-z2h-cli-from-workspace-deps.ts +47 -0
  42. package/src/migrations/auto-migrate.ts +214 -0
  43. package/src/templates/app/package.json.tmpl +1 -4
  44. package/src/templates/workspace/nx.json +3 -0
  45. package/src/templates/workspace/package.json.tmpl +4 -1
  46. package/src/util/__tests__/workspace-templates-shipped.test.ts +1 -0
@@ -4,6 +4,9 @@
4
4
  "private": true,
5
5
  "z2hWorkspace": true,
6
6
  "workspaces": ["*", "*/.zth"],
7
+ "scripts": {
8
+ "nx": "nx"
9
+ },
7
10
  "dependencies": {
8
11
  "@mondaydotcomorg/trident-runtime": "^1.24.1",
9
12
  "@vibe/core": "^4.0.1",
@@ -14,8 +17,8 @@
14
17
  "devDependencies": {
15
18
  "@mondaydotcomorg/bigbrain-types": "^0.3.4",
16
19
  "@mondaydotcomorg/mf-api-types": "^0.1.1",
20
+ "@mondaydotcomorg/trident-monorepo": "^0.38.8",
17
21
  "@mondaydotcomorg/trident-toolkit": "^2.9.25",
18
- "@mondaydotcomorg/z2h-cli": "__Z2H_CLI_VERSION__",
19
22
  "@types/react": "^18.0.14",
20
23
  "@types/react-dom": "^18.0.5",
21
24
  "typescript": "^5.7.2"
@@ -8,6 +8,7 @@ describe('workspace templates ship with the package', () => {
8
8
  'workspace/package.json.tmpl',
9
9
  'workspace/gitignore',
10
10
  'workspace/yarnrc.yml',
11
+ 'workspace/nx.json',
11
12
  'workspace/nvmrc',
12
13
  'workspace/npmrc',
13
14
  'workspace/README.md',