@unisphere/nx 2.0.0 → 2.1.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 (73) hide show
  1. package/README.md +1 -164
  2. package/dist/generators/add-application/add-application.js +1 -1
  3. package/dist/generators/add-application/templates/default/package.json.template +2 -5
  4. package/dist/generators/add-application/templates/local-dev-playground/package.json +1 -0
  5. package/dist/generators/add-package/README.md +3 -3
  6. package/dist/generators/add-package/add-package.d.ts.map +1 -1
  7. package/dist/generators/add-package/add-package.js +0 -83
  8. package/dist/generators/add-package/templates/new-package/package.json.template +1 -10
  9. package/dist/generators/add-package/templates/new-package/src/index.ts.template +0 -1
  10. package/dist/generators/add-package/templates/new-package/src/lib/.keep +0 -0
  11. package/dist/generators/add-runtime/add-runtime.d.ts.map +1 -1
  12. package/dist/generators/add-runtime/add-runtime.js +6 -16
  13. package/dist/generators/add-runtime/schema.d.ts +1 -1
  14. package/dist/generators/add-runtime/schema.json +9 -9
  15. package/dist/migrations/1-22-0/check-nx-version.js +1 -1
  16. package/dist/migrations/1-22-0/replace-patches.d.ts.map +1 -1
  17. package/dist/migrations/1-22-0/replace-patches.js +20 -0
  18. package/dist/migrations/1-22-2/add-os-and-cpu.js +1 -1
  19. package/dist/migrations/1-22-2/templates/_publish-artifacts.template +28 -12
  20. package/dist/migrations/1-22-2/templates/cicd.template +1 -1
  21. package/dist/migrations/{summaries/2-0-0-summary.d.ts → 1-22-4/summary.d.ts} +1 -1
  22. package/dist/migrations/1-22-4/summary.d.ts.map +1 -0
  23. package/dist/migrations/1-22-4/summary.js +16 -0
  24. package/dist/migrations/{2-0-0/replace-patches.d.ts → 1-22-7/remove-storybook.d.ts} +1 -1
  25. package/dist/migrations/1-22-7/remove-storybook.d.ts.map +1 -0
  26. package/dist/migrations/1-22-7/remove-storybook.js +114 -0
  27. package/dist/migrations/1-22-7/update-git-ignore.d.ts +3 -0
  28. package/dist/migrations/1-22-7/update-git-ignore.d.ts.map +1 -0
  29. package/dist/migrations/1-22-7/update-git-ignore.js +55 -0
  30. package/dist/migrations/1-22-9/fix-prerelease-deploy.d.ts +3 -0
  31. package/dist/migrations/1-22-9/fix-prerelease-deploy.d.ts.map +1 -0
  32. package/dist/migrations/1-22-9/fix-prerelease-deploy.js +27 -0
  33. package/dist/migrations/1-22-9/templates/cicd.template +79 -0
  34. package/dist/migrations/1-23-0/delete-rollup-patch.d.ts +3 -0
  35. package/dist/migrations/1-23-0/delete-rollup-patch.d.ts.map +1 -0
  36. package/dist/migrations/1-23-0/delete-rollup-patch.js +14 -0
  37. package/dist/migrations/1-23-2/update-nvmrc.d.ts.map +1 -0
  38. package/dist/migrations/1-24-2/force-always-for-applications.d.ts +3 -0
  39. package/dist/migrations/1-24-2/force-always-for-applications.d.ts.map +1 -0
  40. package/dist/migrations/1-24-2/force-always-for-applications.js +36 -0
  41. package/dist/migrations/1-24-2/templates/_publish-artifacts.template +306 -0
  42. package/dist/migrations/2-0-0/summary.d.ts +2 -0
  43. package/dist/migrations/2-0-0/summary.d.ts.map +1 -0
  44. package/dist/migrations/2-0-0/summary.js +17 -0
  45. package/dist/migrations/2-1-0/remove-react-overrides.d.ts +3 -0
  46. package/dist/migrations/2-1-0/remove-react-overrides.d.ts.map +1 -0
  47. package/dist/migrations/2-1-0/remove-react-overrides.js +59 -0
  48. package/dist/migrations/2-1-0/remove-rollup-plugin-node-builtins.d.ts +3 -0
  49. package/dist/migrations/2-1-0/remove-rollup-plugin-node-builtins.d.ts.map +1 -0
  50. package/dist/migrations/2-1-0/remove-rollup-plugin-node-builtins.js +54 -0
  51. package/dist/migrations/2-1-0/remove-storybook.d.ts +3 -0
  52. package/dist/migrations/2-1-0/remove-storybook.d.ts.map +1 -0
  53. package/dist/migrations/2-1-0/remove-storybook.js +88 -0
  54. package/dist/migrations/2-1-0/replace-readme-md.d.ts +3 -0
  55. package/dist/migrations/2-1-0/replace-readme-md.d.ts.map +1 -0
  56. package/dist/migrations/2-1-0/replace-readme-md.js +50 -0
  57. package/dist/migrations/2-1-0/templates/readme.md.template +134 -0
  58. package/dist/migrations/utils/open.d.ts +2 -0
  59. package/dist/migrations/utils/open.d.ts.map +1 -0
  60. package/dist/migrations/utils/open.js +16 -0
  61. package/migrations.json +109 -20
  62. package/package.json +2 -2
  63. package/dist/migrations/2-0-0/patches/@nx+rollup+22.1.3.patch +0 -27
  64. package/dist/migrations/2-0-0/replace-patches.d.ts.map +0 -1
  65. package/dist/migrations/2-0-0/replace-patches.js +0 -56
  66. package/dist/migrations/2-0-0/update-nvmrc.d.ts.map +0 -1
  67. package/dist/migrations/summaries/1-22-4-summary.d.ts +0 -2
  68. package/dist/migrations/summaries/1-22-4-summary.d.ts.map +0 -1
  69. package/dist/migrations/summaries/1-22-4-summary.js +0 -12
  70. package/dist/migrations/summaries/2-0-0-summary.d.ts.map +0 -1
  71. package/dist/migrations/summaries/2-0-0-summary.js +0 -12
  72. /package/dist/migrations/{2-0-0 → 1-23-2}/update-nvmrc.d.ts +0 -0
  73. /package/dist/migrations/{2-0-0 → 1-23-2}/update-nvmrc.js +0 -0
@@ -0,0 +1,134 @@
1
+ # Unisphere - {{company-name|human-readable}} {{project-name|human-readable}}
2
+
3
+ ## Overview
4
+
5
+ This repository is a **Unisphere workspace** for an experience named **{{project-name|human-readable}}**.
6
+
7
+ It contains everything you need to:
8
+ - Create and publish npm / JFrog packages
9
+ - Bundle and version runtime artifacts
10
+ - Build and deploy applications
11
+ - Develop locally and promote changes to production
12
+
13
+ The Unisphere workspace acts as the single entry point for the entire lifecycle — from local development, through CI/CD, and all the way to production deployment.
14
+
15
+ To better understand the ideas behind Unisphere and how it works, read more at:
16
+ https://unisphere.kaltura.com/
17
+
18
+ ---
19
+
20
+ ## Prerequisites
21
+
22
+ At the moment, **deploying Unisphere experiences is available only to Kaltura employees**.
23
+
24
+ Before doing anything else, make sure your machine is properly configured to access:
25
+ - Kaltura GitHub repositories
26
+ - Kaltura JFrog Artifactory registries
27
+
28
+ Follow the setup guide here:
29
+ https://unisphere.kaltura.com/docs/create/kaltura-employees/setup-machine
30
+
31
+ ---
32
+
33
+ ## Add the Experience to Kaltura Github Organization
34
+
35
+ Before you can deploy or activate this experience, it must be registered in Github under Kaltura Organization.
36
+
37
+ This step connects your Unisphere workspace to the relevant Kaltura infrastructure and enables CI/CD, deployment, and activation flows.
38
+
39
+ Follow the guide here:
40
+ https://unisphere.kaltura.com/docs/create/devops/create-github-repository
41
+
42
+ ---
43
+
44
+ ## Create Artifacts
45
+
46
+ Unisphere allows you to create and manage different types of artifacts, including:
47
+ - Packages
48
+ - Runtimes
49
+ - Applications
50
+
51
+ Each artifact type has its own role in the ecosystem, but they all live and evolve together inside this workspace.
52
+
53
+ Read more about creating artifacts here:
54
+ https://unisphere.kaltura.com/docs/create/overview
55
+
56
+ ---
57
+
58
+ ## Deploy
59
+
60
+ To deploy **packages, applications, and runtimes**, follow the deployment guide:
61
+ https://unisphere.kaltura.com/docs/create/devops/deploy
62
+
63
+ For **applications and runtimes**, deployment is only part of the process.
64
+ After deployment, they must also be activated to become available in production.
65
+
66
+ Activation guide:
67
+ https://unisphere.kaltura.com/docs/create/devops/activate
68
+
69
+ ---
70
+
71
+ ## Local Development
72
+
73
+ Unisphere provides a structured local development flow that mirrors production as closely as possible, while still keeping things fast and developer-friendly.
74
+
75
+ This includes:
76
+ - Local builds
77
+ - Watching and rebuilding artifacts
78
+ - Running applications in isolation or as part of a larger workspace
79
+
80
+ Read more about local development here:
81
+ https://unisphere.kaltura.com/docs/create/local-development
82
+
83
+ ---
84
+
85
+ ## Available Commands
86
+
87
+ This workspace exposes a small set of opinionated commands to help you explore, validate, and manage the experience.
88
+
89
+ ### Start
90
+ Lists all available commands for each artifact in the experience, including how to build and serve runtimes, and how to spawn applications.
91
+
92
+ ```bash
93
+ npm run start
94
+ ```
95
+
96
+
97
+ ### Info
98
+ Displays information about the current workspace, including detected artifacts, configuration, and environment details.
99
+
100
+ ```bash
101
+ npm run info
102
+ ```
103
+
104
+ ### Check
105
+ Validates the workspace setup and verifies that all required artifacts and configurations are in place.
106
+
107
+ ```bash
108
+ npm run check
109
+ ```
110
+
111
+ ### Reset
112
+ Resets the workspace to a clean state. Useful when experimenting or when local state becomes inconsistent.
113
+
114
+ ```bash
115
+ npm run reset
116
+ ```
117
+
118
+
119
+ ---
120
+
121
+ ## Next Steps
122
+
123
+ If this is your first time working with Unisphere, a great next step is to **create a runtime with a playground**.
124
+
125
+ Follow the Hello World walkthrough here:
126
+ [https://unisphere.kaltura.com/docs/create/overview](https://unisphere.kaltura.com/docs/create/overview)
127
+
128
+ The walkthrough will guide you through:
129
+
130
+ * Creating your first runtime
131
+ * Running it locally with a playground
132
+ * Understanding how runtimes, packages, and applications connect together
133
+
134
+ This will give you a strong foundation for building and evolving the experience over time.
@@ -0,0 +1,2 @@
1
+ export declare const openBrowser: (url: string) => void;
2
+ //# sourceMappingURL=open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/migrations/utils/open.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,SAYtC,CAAA"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.openBrowser = void 0;
4
+ const node_child_process_1 = require("node:child_process");
5
+ const openBrowser = (url) => {
6
+ try {
7
+ const command = process.platform === 'darwin' ? `open "${url}"` :
8
+ process.platform === 'win32' ? `start "" "${url}"` :
9
+ `xdg-open "${url}"`;
10
+ (0, node_child_process_1.exec)(command);
11
+ }
12
+ catch (error) {
13
+ console.error('Failed to open browser:', error);
14
+ }
15
+ };
16
+ exports.openBrowser = openBrowser;
package/migrations.json CHANGED
@@ -18,10 +18,10 @@
18
18
  },
19
19
  "1-22-0-replace-patches": {
20
20
  "version": "1.22.0",
21
- "description": "Replaces patches with updated version for Nx 22.1.3",
21
+ "description": "Replaces patches with updated version for Nx 22.1.3 and changeset cli",
22
22
  "factory": "./dist/migrations/1-22-0/replace-patches.js",
23
23
  "cli": {
24
- "postUpdateMessage": "✅ Patches have been replaced with updated version for Nx 22.1.3."
24
+ "postUpdateMessage": "✅ Patches have been replaced with updated version for Nx 22.1.3 and changeset cli."
25
25
  }
26
26
  },
27
27
  "1-22-1-sync-inner-package-json-dependencies": {
@@ -58,6 +58,44 @@
58
58
  "description": "Adds kaltura-tools to preinstall script",
59
59
  "factory": "./dist/migrations/1-22-4/add-kaltura-tools-to-pre-install.js"
60
60
  },
61
+ "1-22-4-summary": {
62
+ "version": "1.22.4",
63
+ "description": "Migration completion summary for 1.22.4",
64
+ "factory": "./dist/migrations/1-22-4/summary.js"
65
+ },
66
+ "1-22-7-update-git-ignore": {
67
+ "version": "1.22.7",
68
+ "description": "Update .gitignore",
69
+ "factory": "./dist/migrations/1-22-7/update-git-ignore.js"
70
+ },
71
+ "1-22-7-remove-storybook": {
72
+ "version": "1.22.7",
73
+ "description": "Removes storybook files and dependencies",
74
+ "factory": "./dist/migrations/1-22-7/remove-storybook.js",
75
+ "cli": {
76
+ "postUpdateMessage": "✅ Storybook files and dependencies have been removed"
77
+ }
78
+ },
79
+ "1-22-9-fix-prerelease-deploy": {
80
+ "version": "1.22.9",
81
+ "description": "Fix prerelease deploy logic in GitHub workflow",
82
+ "factory": "./dist/migrations/1-22-9/fix-prerelease-deploy.js"
83
+ },
84
+ "1-23-0-delete-rollup-patch": {
85
+ "version": "1.23.0",
86
+ "description": "Delete rollup patch file",
87
+ "factory": "./dist/migrations/1-23-0/delete-rollup-patch.js"
88
+ },
89
+ "1-23-2-update-nvmrc": {
90
+ "version": "1.23.2",
91
+ "description": "Update .nvmrc to Node 24",
92
+ "factory": "./dist/migrations/1-23-2/update-nvmrc.js"
93
+ },
94
+ "1-24-2-force-always-for-applications": {
95
+ "version": "1.24.2",
96
+ "description": "Force always deploy applications in GitHub workflow",
97
+ "factory": "./dist/migrations/1-24-2/force-always-for-applications.js"
98
+ },
61
99
  "2-0-0-update-npmrc": {
62
100
  "version": "2.0.0",
63
101
  "description": "Updates .npmrc to remove legacy-peer-deps=true",
@@ -86,31 +124,42 @@
86
124
  "description": "Syncs package json files",
87
125
  "factory": "./dist/migrations/2-0-0/sync-package-json-files.js"
88
126
  },
89
- "2-0-0-update-nvmrc": {
127
+ "2-0-0-summary": {
90
128
  "version": "2.0.0",
91
- "description": "Updates .nvmrc to Node 24 (creates if missing)",
92
- "factory": "./dist/migrations/2-0-0/update-nvmrc.js",
129
+ "description": "Migration completion summary for 2.0.0",
130
+ "factory": "./dist/migrations/2-0-0/summary.js"
131
+ },
132
+ "2-1-0-replace-readme-md": {
133
+ "version": "2.1.0",
134
+ "description": "Replaces README.md from template",
135
+ "factory": "./dist/migrations/2-1-0/replace-readme-md.js",
93
136
  "cli": {
94
- "postUpdateMessage": "✅ .nvmrc has been updated to Node 24. Please ensure you have Node.js 24.x installed."
137
+ "postUpdateMessage": "✅ README.md has been replaced"
95
138
  }
96
139
  },
97
- "2-0-0-replace-patches": {
98
- "version": "2.0.0",
99
- "description": "Replaces patches",
100
- "factory": "./dist/migrations/2-0-0/replace-patches.js",
140
+ "2-1-0-remove-storybook": {
141
+ "version": "2.1.0",
142
+ "description": "Removes storybook files and dependencies",
143
+ "factory": "./dist/migrations/2-1-0/remove-storybook.js",
101
144
  "cli": {
102
- "postUpdateMessage": "✅ Patches have been replaced"
145
+ "postUpdateMessage": "✅ Storybook files and dependencies have been removed"
103
146
  }
104
147
  },
105
- "000-1-22-4-summary": {
106
- "version": "1.22.4",
107
- "description": "Migration completion summary for 1.22.4",
108
- "factory": "./dist/migrations/summaries/1-22-4-summary.js"
148
+ "2-1-0-remove-react-overrides": {
149
+ "version": "2.1.0",
150
+ "description": "Removes React overrides from package.json",
151
+ "factory": "./dist/migrations/2-1-0/remove-react-overrides.js",
152
+ "cli": {
153
+ "postUpdateMessage": "✅ React overrides have been removed"
154
+ }
109
155
  },
110
- "000-2-0-0-summary": {
111
- "version": "2.0.0",
112
- "description": "Migration completion summary for 2.0.0",
113
- "factory": "./dist/migrations/summaries/2-0-0-summary.js"
156
+ "2-1-0-remove-rollup-plugin-node-builtins": {
157
+ "version": "2.1.0",
158
+ "description": "Removes rollup-plugin-node-builtins dependency",
159
+ "factory": "./dist/migrations/2-1-0/remove-rollup-plugin-node-builtins.js",
160
+ "cli": {
161
+ "postUpdateMessage": "✅ rollup-plugin-node-builtins dependency has been removed"
162
+ }
114
163
  }
115
164
  },
116
165
  "packageJsonUpdates": {
@@ -145,6 +194,26 @@
145
194
  }
146
195
  }
147
196
  },
197
+ "1.22.9": {
198
+ "version": "1.22.9",
199
+ "cli": "nx",
200
+ "packages": {
201
+ "@unisphere/cli": {
202
+ "version": "^1.58.7",
203
+ "alwaysAddToPackageJson": true
204
+ }
205
+ }
206
+ },
207
+ "1.24.1": {
208
+ "version": "1.24.1",
209
+ "cli": "nx",
210
+ "packages": {
211
+ "@unisphere/cli": {
212
+ "version": "^1.58.9",
213
+ "alwaysAddToPackageJson": true
214
+ }
215
+ }
216
+ },
148
217
  "2.0.0": {
149
218
  "version": "2.0.0",
150
219
  "cli": "nx",
@@ -162,6 +231,14 @@
162
231
  "version": "^7.3.4",
163
232
  "alwaysAddToPackageJson": false
164
233
  },
234
+ "@mui/x-date-pickers": {
235
+ "version": "8.11.3",
236
+ "alwaysAddToPackageJson": false
237
+ },
238
+ "@mui/x-tree-view": {
239
+ "version": "7.29.1",
240
+ "alwaysAddToPackageJson": false
241
+ },
165
242
  "@mui/icons-material": {
166
243
  "version": "^7.3.4",
167
244
  "alwaysAddToPackageJson": false
@@ -170,6 +247,10 @@
170
247
  "version": "^12.2.2",
171
248
  "alwaysAddToPackageJson": false
172
249
  },
250
+ "@kaltura/ds-react-components": {
251
+ "version": "^12.2.2",
252
+ "alwaysAddToPackageJson": false
253
+ },
173
254
  "@kaltura/ds-react-icons": {
174
255
  "version": "^12.2.2",
175
256
  "alwaysAddToPackageJson": false
@@ -191,7 +272,11 @@
191
272
  "alwaysAddToPackageJson": false
192
273
  },
193
274
  "@types/node": {
194
- "@types/node": "24.3.2",
275
+ "version": "24.3.2",
276
+ "alwaysAddToPackageJson": false
277
+ },
278
+ "@unisphere/runtime-react": {
279
+ "version": "^1.80.1",
195
280
  "alwaysAddToPackageJson": false
196
281
  },
197
282
  "@types/react": {
@@ -213,6 +298,10 @@
213
298
  "@emotion/styled": {
214
299
  "version": "11.14.1",
215
300
  "alwaysAddToPackageJson": false
301
+ },
302
+ "@vitejs/plugin-react": {
303
+ "version": "^4.7.0",
304
+ "alwaysAddToPackageJson": false
216
305
  }
217
306
  }
218
307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/nx",
3
- "version": "2.0.0",
3
+ "version": "2.1.3",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/kaltura/unisphere-nx-workspace-plugin"
13
+ "url": "https://github.com/kaltura/unisphere-nx"
14
14
  },
15
15
  "author": {
16
16
  "name": "Kaltura",
@@ -1,27 +0,0 @@
1
- diff --git a/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js b/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js
2
- index 1135bba..4762053 100644
3
- --- a/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js
4
- +++ b/node_modules/@nx/rollup/src/plugins/with-nx/with-nx.js
5
- @@ -149,7 +149,13 @@ dependencies) {
6
- else {
7
- options.generatePackageJson ??= true;
8
- }
9
- - const compilerOptions = createTsCompilerOptions(projectRoot, tsConfig, options, dependencies);
10
- + let compilerOptionsInterceptor = ((config) => config);
11
- + if (rollupConfig.unisphere?.interceptors?.compilerOptions) {
12
- + console.log(`[unisphere.nx.rollup] using monkey patched interceptor for TS compiler options`);
13
- + compilerOptionsInterceptor = rollupConfig.unisphere?.interceptors?.compilerOptions;
14
- + }
15
- +
16
- + const compilerOptions = compilerOptionsInterceptor(createTsCompilerOptions(projectRoot, tsConfig, options, dependencies));
17
- compilerOptions.outDir = Array.isArray(finalConfig.output)
18
- ? finalConfig.output[0].dir
19
- : finalConfig.output.dir;
20
- @@ -170,6 +176,7 @@ dependencies) {
21
- return require('rollup-plugin-typescript2')({
22
- check: !options.skipTypeCheck,
23
- tsconfig: tsConfigPath,
24
- + exclude: ['**/*.stories.ts', '**/*.stories.tsx'],
25
- tsconfigOverride: {
26
- compilerOptions,
27
- },
@@ -1 +0,0 @@
1
- {"version":3,"file":"replace-patches.d.ts","sourceRoot":"","sources":["../../../src/migrations/2-0-0/replace-patches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmC,MAAM,YAAY,CAAC;AAQnE,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAwD9D"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = update;
4
- const devkit_1 = require("@nx/devkit");
5
- const path_1 = require("path");
6
- const removePatchList = ['nx+rollup+'];
7
- const forcePatchVersions = {
8
- '@nx/rollup': '22.1.3'
9
- };
10
- async function update(tree) {
11
- devkit_1.logger.info('🔄 Creating patches');
12
- try {
13
- // Check @nx/rollup version
14
- if (Object.keys(forcePatchVersions).length !== 0) {
15
- devkit_1.logger.info('removing patches of older versions');
16
- const pkg = (0, devkit_1.readJson)(tree, 'package.json');
17
- Object.keys(forcePatchVersions).forEach(key => {
18
- const version = pkg.devDependencies?.[key] || pkg.dependencies?.[key];
19
- if (version !== forcePatchVersions[key]) {
20
- devkit_1.logger.error(`❌ ${key} version must be exactly ${forcePatchVersions[key]}`);
21
- throw new Error(`${key} version must be exactly ${forcePatchVersions[key]}. did you migrate nx to other version?`);
22
- }
23
- });
24
- }
25
- // Create patches
26
- const patchesPath = 'patches';
27
- const patchesTemplatePath = (0, path_1.join)(__dirname, 'patches');
28
- // Delete existing patches folder content if it exists
29
- if (tree.exists(patchesPath)) {
30
- const existingFiles = tree.children(patchesPath);
31
- for (const file of existingFiles) {
32
- if (removePatchList.some(patch => file.includes(patch))) {
33
- devkit_1.logger.info(`🗑️ Removing existing patch: ${file}`);
34
- tree.delete((0, path_1.join)(patchesPath, file));
35
- }
36
- else {
37
- devkit_1.logger.info(`✅ Patch: ${file} is up to date`);
38
- }
39
- }
40
- devkit_1.logger.info(`🧹 Cleaned up existing patches folder`);
41
- }
42
- // Copy all patch files using generateFiles
43
- (0, devkit_1.generateFiles)(tree, patchesTemplatePath, `./${patchesPath}`, {});
44
- // Log created patches
45
- const createdPatches = tree.children(patchesPath);
46
- for (const patchFile of createdPatches) {
47
- devkit_1.logger.info(`✅ Created patch: ${patchFile}`);
48
- }
49
- // Always log that patches were created
50
- devkit_1.logger.info(`✅ All patches created successfully`);
51
- }
52
- catch (error) {
53
- devkit_1.logger.error(`❌ Failed to create patches: ${error?.message || 'Unknown error'}`);
54
- throw error;
55
- }
56
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-nvmrc.d.ts","sourceRoot":"","sources":["../../../src/migrations/2-0-0/update-nvmrc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,YAAY,CAAC;AAEvD,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA0B9D"}
@@ -1,2 +0,0 @@
1
- export default function (): Promise<void>;
2
- //# sourceMappingURL=1-22-4-summary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1-22-4-summary.d.ts","sourceRoot":"","sources":["../../../src/migrations/summaries/1-22-4-summary.ts"],"names":[],"mappings":"AAEA,0CAOC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
- const devkit_1 = require("@nx/devkit");
5
- async function default_1() {
6
- devkit_1.logger.info('');
7
- devkit_1.logger.info('🎉 Migration to @unisphere/nx 1.22.4 finished successfully!');
8
- devkit_1.logger.info('');
9
- devkit_1.logger.info('📋 Full details:');
10
- devkit_1.logger.info('https://unisphere.kaltura.com/docs/create/changelog/1-22-4-changelog');
11
- devkit_1.logger.info('');
12
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"2-0-0-summary.d.ts","sourceRoot":"","sources":["../../../src/migrations/summaries/2-0-0-summary.ts"],"names":[],"mappings":"AAEA,0CAOC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
- const devkit_1 = require("@nx/devkit");
5
- async function default_1() {
6
- devkit_1.logger.info('');
7
- devkit_1.logger.info('🎉 Migration to @unisphere/nx 2.0.0 finished successfully!');
8
- devkit_1.logger.info('');
9
- devkit_1.logger.info('📋 Full details:');
10
- devkit_1.logger.info('https://unisphere.kaltura.com/docs/create/changelog/2-0-0-changelog');
11
- devkit_1.logger.info('');
12
- }