@unisphere/cli 1.58.11 → 2.0.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 (39) hide show
  1. package/bundler/package/rollup.js +69 -31
  2. package/bundler/runtime/rollup.js +2 -163
  3. package/bundler/shared.js +174 -0
  4. package/package.json +2 -1
  5. package/src/lib/commands/how-to/command.js +30 -0
  6. package/src/lib/commands/how-to/command.js.map +1 -1
  7. package/src/lib/commands/licenses/command.d.ts +2 -0
  8. package/src/lib/commands/licenses/command.js +274 -0
  9. package/src/lib/commands/licenses/command.js.map +1 -0
  10. package/src/lib/commands/package/build-command.js +31 -0
  11. package/src/lib/commands/package/build-command.js.map +1 -1
  12. package/src/lib/commands/package/licenses/command.d.ts +2 -0
  13. package/src/lib/commands/package/licenses/command.js +12 -0
  14. package/src/lib/commands/package/licenses/command.js.map +1 -0
  15. package/src/lib/commands/package/licenses/extract-command.d.ts +2 -0
  16. package/src/lib/commands/package/licenses/extract-command.js +140 -0
  17. package/src/lib/commands/package/licenses/extract-command.js.map +1 -0
  18. package/src/lib/commands/package/package-commands.js +2 -0
  19. package/src/lib/commands/package/package-commands.js.map +1 -1
  20. package/src/lib/commands/runtime/build-command.js +39 -0
  21. package/src/lib/commands/runtime/build-command.js.map +1 -1
  22. package/src/lib/commands/runtime/command.js +2 -0
  23. package/src/lib/commands/runtime/command.js.map +1 -1
  24. package/src/lib/commands/runtime/licenses/command.d.ts +2 -0
  25. package/src/lib/commands/runtime/licenses/command.js +12 -0
  26. package/src/lib/commands/runtime/licenses/command.js.map +1 -0
  27. package/src/lib/commands/runtime/licenses/extract-command.d.ts +2 -0
  28. package/src/lib/commands/runtime/licenses/extract-command.js +119 -0
  29. package/src/lib/commands/runtime/licenses/extract-command.js.map +1 -0
  30. package/src/lib/utils/unisphere/augment-workspace-config.js +13 -11
  31. package/src/lib/utils/unisphere/augment-workspace-config.js.map +1 -1
  32. package/src/lib/utils/unisphere/get-dependency-graph.d.ts +4 -2
  33. package/src/lib/utils/unisphere/get-dependency-graph.js +85 -69
  34. package/src/lib/utils/unisphere/get-dependency-graph.js.map +1 -1
  35. package/src/lib/utils/unisphere/get-installed-unisphere-packages.js +1 -0
  36. package/src/lib/utils/unisphere/get-installed-unisphere-packages.js.map +1 -1
  37. package/src/lib/utils/unisphere/get-licenses.d.ts +26 -0
  38. package/src/lib/utils/unisphere/get-licenses.js +128 -0
  39. package/src/lib/utils/unisphere/get-licenses.js.map +1 -0
@@ -7,9 +7,9 @@ const svg = require('@svgr/rollup');
7
7
  const fs = require('fs');
8
8
  const path = require('path');
9
9
  const { getEnvVariables } = require('../../src/lib/utils/unisphere/get-env-variables');
10
- const os = require('os');
11
-
10
+ const { getUnisphereWorkspaceFile } = require('../../src/lib/utils/unisphere/unisphere-workspace-file');
12
11
  const { envVariables, isUnisphereEnvironment } = getEnvVariables();
12
+ const { findWorkspaceRoot, createTempBuildTsconfig, generateDynamicPaths, getUnispherePackagesDistList } = require('../shared');
13
13
 
14
14
  if (!isUnisphereEnvironment) {
15
15
  console.warn(
@@ -17,6 +17,7 @@ if (!isUnisphereEnvironment) {
17
17
  );
18
18
  }
19
19
 
20
+
20
21
  console.log('[unisphere] Helpful Tip: When running a build if it is using outdated rollup file, you should clear the nx cache by running `rm -rf node_modules/.cache/nx && npx nx reset`.');
21
22
 
22
23
  const isDeployingRuntime = envVariables.UNISPHERE_MODE === 'runtime';
@@ -59,42 +60,79 @@ const withUnisphere = (rollupConfig) => {
59
60
  return rollupConfig;
60
61
  };
61
62
 
63
+
64
+
65
+ const getWithNx = (unisphereConfig) => {
66
+
67
+ const relativeSourcePath = path.relative(unisphereConfig.cwd, unisphereConfig.workspaceConfiguration.cwd);
68
+
69
+ const outputPath = path.join(relativeSourcePath, 'dist', ...unisphereConfig.sourcePath);
70
+
71
+ const dynamicPaths = generateDynamicPaths(unisphereConfig.cwd);
72
+
73
+ const tsConfig = createTempBuildTsconfig({
74
+ projectRoot: unisphereConfig.cwd,
75
+ baseTsconfigPath: 'tsconfig.lib.json',
76
+ compilerOptions: {
77
+ paths: dynamicPaths,
78
+ },
79
+ });
80
+
81
+ // dev note - this one is copied from the original rollup config file created by npm create nx-workspace
82
+ // when upgrading nx from 22 should compare the file created by nx to this one
83
+ const nxConfig = {
84
+ main: './src/index.ts',
85
+ outputPath,
86
+ tsConfig,
87
+ compiler: 'babel',
88
+ external: ['react', 'react-dom', 'react/jsx-runtime'],
89
+ format: ['esm'],
90
+ assets: [{ input: '.', output: '.', glob: 'README.md' }],
91
+ }
92
+
93
+ const rollupConfig = {
94
+ // Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
95
+ plugins: [
96
+ svg({
97
+ svgo: false,
98
+ titleProp: true,
99
+ ref: true,
100
+ }),
101
+ url({
102
+ limit: 10000, // 10kB
103
+ }),
104
+ ],
105
+ }
106
+
107
+ const unispherePackagesDistList = getUnispherePackagesDistList(unisphereConfig.workspaceConfiguration.cwd);
108
+ return withUnisphere(withNx(
109
+ nxConfig,
110
+ rollupConfig
111
+ ), unispherePackagesDistList);
112
+ }
113
+
62
114
  module.exports = (unisphereConfig) => {
63
115
 
116
+ console.log('[unisphere] unisphere rollup args before stripping', unisphereConfig);
117
+
118
+ const workspaceConfiguration = getUnisphereWorkspaceFile(unisphereConfig.cwd);
119
+
120
+ if (!workspaceConfiguration) {
121
+ throw new Error('the library must be run from the root of the unisphere workspace');
122
+ }
123
+
124
+
64
125
  const projectJsonPath = path.join(unisphereConfig.cwd, 'project.json');
65
126
  const projectJson = JSON.parse(fs.readFileSync(projectJsonPath, 'utf8'));
66
127
  const sourcePath = projectJson.sourceRoot.replace(/\/src$/, '').split('/');
128
+
67
129
  if (sourcePath.length !== 3 || sourcePath[0] !== 'unisphere' || sourcePath[1] !== 'packages') {
68
130
  throw new Error('sourcePath must follow pattern unisphere/packages/<package-name>')
69
131
  }
70
- const outputPath = path.join('..', '..', '..', 'dist', ...sourcePath);
71
132
 
72
- // dev note - this one is copied from the original rollup config file created by npm create nx-workspace
73
- // when upgrading nx from 22 should compare the file created by nx to this one
74
-
75
- return withUnisphere(withNx(
76
- {
77
- main: './src/index.ts',
78
- outputPath,
79
- tsConfig: './tsconfig.lib.json',
80
- compiler: 'babel',
81
- external: ['react', 'react-dom', 'react/jsx-runtime'],
82
- format: ['esm'],
83
- assets: [{ input: '.', output: '.', glob: 'README.md' }],
84
- },
85
- {
86
- // Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
87
- plugins: [
88
- svg({
89
- svgo: false,
90
- titleProp: true,
91
- ref: true,
92
- }),
93
- url({
94
- limit: 10000, // 10kB
95
- }),
96
- ],
97
- }
98
- )
99
- )
133
+ return getWithNx({
134
+ ...unisphereConfig,
135
+ workspaceConfiguration,
136
+ sourcePath
137
+ })
100
138
  }
@@ -11,141 +11,11 @@ const url = require('@rollup/plugin-url');
11
11
  const svg = require('@svgr/rollup');
12
12
  const { getEnvVariables } = require('../../src/lib/utils/unisphere/get-env-variables');
13
13
  const { getUnisphereWorkspaceFile } = require('../../src/lib/utils/unisphere/unisphere-workspace-file');
14
- const os = require('os');
14
+ const { createTempBuildTsconfig, generateDynamicPaths, getUnispherePackagesDistList } = require('../shared');
15
15
 
16
16
 
17
- function findWorkspaceRoot(projectRoot) {
18
- let currentPath = projectRoot;
19
- let tsconfigPath = path.join(currentPath, 'tsconfig.json');
20
-
21
- console.log(`[unisphere] Starting search from: ${projectRoot}`);
22
-
23
- while (fs.existsSync(tsconfigPath)) {
24
- const tsconfig = JSON.parse(fs.readFileSync(tsconfigPath, 'utf8'));
25
- const extendsPath = tsconfig.extends;
26
-
27
- if (!extendsPath) {
28
- // No extends, this might be the base
29
- return { workspaceRoot: currentPath, baseTsconfigPath: tsconfigPath };
30
- }
31
-
32
- console.log(`[unisphere] Found extends: ${extendsPath} in ${tsconfigPath}`);
33
-
34
- // Resolve the extends path
35
- const resolvedExtendsPath = path.resolve(path.dirname(tsconfigPath), extendsPath);
36
-
37
- if (!fs.existsSync(resolvedExtendsPath)) {
38
- // Can't follow the chain further
39
- return { workspaceRoot: currentPath, baseTsconfigPath: tsconfigPath };
40
- }
41
-
42
- // Check if this is tsconfig.base.json (likely the root)
43
- if (path.basename(resolvedExtendsPath) === 'tsconfig.base.json') {
44
- const workspaceRoot = path.dirname(resolvedExtendsPath);
45
- return { workspaceRoot, baseTsconfigPath: resolvedExtendsPath };
46
- }
47
-
48
- // Continue following the chain
49
- currentPath = path.dirname(resolvedExtendsPath);
50
- tsconfigPath = resolvedExtendsPath;
51
- }
52
-
53
- // Fallback - couldn't find the chain
54
- throw new Error('Could not find workspace root through tsconfig extends chain');
55
- }
56
-
57
- function createTempBuildTsconfig({
58
- projectRoot,
59
- baseTsconfigPath, // can be absolute OR relative to projectRoot
60
- compilerOptions = {},
61
- }) {
62
- if (!projectRoot) {
63
- throw new Error('createTempBuildTsconfig: projectRoot is required');
64
- }
65
- if (!baseTsconfigPath) {
66
- throw new Error('createTempBuildTsconfig: baseTsconfigPath is required');
67
- }
68
-
69
- const resolvedProjectRoot = path.resolve(projectRoot);
70
-
71
- // ✅ resolve base tsconfig relative to projectRoot (unless already absolute)
72
- const resolvedBaseTsconfig = path.isAbsolute(baseTsconfigPath)
73
- ? baseTsconfigPath
74
- : path.resolve(resolvedProjectRoot, baseTsconfigPath);
75
-
76
- if (!fs.existsSync(resolvedBaseTsconfig)) {
77
- throw new Error(
78
- `createTempBuildTsconfig: base tsconfig not found at: ${resolvedBaseTsconfig}`
79
- );
80
- }
81
-
82
- const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'unisphere-tsc-'));
83
- const tempTsconfigPath = path.join(tempDir, 'tsconfig.build.json');
84
-
85
- // ✅ important: "extends" can be absolute; TS supports it.
86
- const tsconfig = {
87
- extends: resolvedBaseTsconfig,
88
- compilerOptions: {
89
- ...compilerOptions,
90
- },
91
- };
92
-
93
- console.log(`creating temporary build file in '${tempTsconfigPath}'`)
94
- fs.writeFileSync(tempTsconfigPath, JSON.stringify(tsconfig, null, 2), 'utf8');
95
-
96
- // Optional cleanup
97
- const cleanup = () => {
98
- try {
99
- console.log(`removing temporary folder '${tempDir}'`)
100
- fs.rmSync(tempDir, { recursive: true, force: true });
101
- } catch { }
102
- };
103
- process.on('exit', cleanup);
104
- process.on('SIGINT', cleanup);
105
- process.on('SIGTERM', cleanup);
106
-
107
- return tempTsconfigPath;
108
- }
109
-
110
17
  const { envVariables, isUnisphereEnvironment } = getEnvVariables();
111
18
 
112
- function generateDynamicPaths(projectRoot) {
113
- const paths = {};
114
-
115
- try {
116
- // Find workspace root by following tsconfig extends chain
117
- const { workspaceRoot, baseTsconfigPath } = findWorkspaceRoot(projectRoot);
118
- console.log(`[unisphere] Found workspace root: ${workspaceRoot}`);
119
- console.log(`[unisphere] Base tsconfig path: ${baseTsconfigPath}`);
120
-
121
- // Read base tsconfig to get original paths
122
- if (fs.existsSync(baseTsconfigPath)) {
123
- const baseTsconfig = JSON.parse(fs.readFileSync(baseTsconfigPath, 'utf8'));
124
- const originalPaths = baseTsconfig.compilerOptions?.paths || {};
125
-
126
- console.log(`[unisphere] Found ${Object.keys(originalPaths).length} original paths in base tsconfig`);
127
-
128
- // Convert each path from .ts to .d.ts in dist folder
129
- Object.entries(originalPaths).forEach(([key, pathArray]) => {
130
- const convertedPaths = pathArray.map(originalPath => {
131
- // Convert index.ts to index.d.ts and prefix with dist
132
- return originalPath.replace(/index\.ts$/, 'index.d.ts').replace(/^/, 'dist/');
133
- });
134
-
135
- paths[key] = convertedPaths;
136
- console.log(`[unisphere] Converted path mapping: ${key} -> ${convertedPaths.join(', ')}`);
137
- });
138
- }
139
- } catch (error) {
140
- throw new Error(`Failed to generate dynamic paths: ${error.message}`);
141
- console.warn(`[unisphere] Failed to generate dynamic paths: ${error.message}`);
142
- console.log(`[unisphere] Falling back to basic path generation`);
143
- }
144
-
145
- console.log(`[unisphere] Generated ${Object.keys(paths).length} path mappings`);
146
- return paths;
147
- }
148
-
149
19
  if (!isUnisphereEnvironment) {
150
20
  console.warn(
151
21
  'WARNING: Building or linting unisphere elements from outside the unisphere cli will not handle runtimes.'
@@ -157,38 +27,6 @@ const isProduction = envVariables.UNISPHERE_ENV === 'production';
157
27
  console.log('[unisphere] Helpful Tip: When running a build if it is using outdated rollup file, you should clear the nx cache by running `rm -rf node_modules/.cache/nx && npx nx reset`.');
158
28
 
159
29
 
160
- function getUnispherePackagesDistList(cwd) {
161
-
162
- let folderPattern = path.join(cwd, 'dist', 'unisphere', 'packages', '*');
163
-
164
- if (process.platform === 'win32') {
165
- console.log('[unisphere] running on Windows');
166
- folderPattern = folderPattern.replace(/\\/g, '/');
167
- }
168
- console.log('[unisphere] looking for packages in', folderPattern);
169
- const folderPaths = glob.sync(folderPattern);
170
- const result = [];
171
-
172
- // Iterate through each subfolder
173
- folderPaths.forEach(distPath => {
174
- const packageJsonPath = path.join(distPath, 'package.json');
175
- if (fs.existsSync(packageJsonPath)) {
176
- // Read and parse the package.json file
177
- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
178
- const packageName = packageJson.name;
179
-
180
- if (packageName) {
181
- result.push({ distPath, packageName });
182
- }
183
- }
184
- });
185
-
186
- console.log('[unisphere] found packages', result);
187
-
188
- return result;
189
- }
190
-
191
-
192
30
  const getWithNx = (unisphereConfig) => {
193
31
 
194
32
  const relativeSourcePath = path.relative(unisphereConfig.cwd, unisphereConfig.workspaceConfiguration.cwd);
@@ -303,6 +141,7 @@ module.exports = (unisphereConfig) => {
303
141
 
304
142
  const expectedType = (unisphereConfig.allowedType || 'runtimes');
305
143
  const pathCheck = unisphereConfig.bypassPathHierarchyCheck ? true : (sourcePath.length === 3);
144
+
306
145
  if (!pathCheck || sourcePath[0] !== 'unisphere' || sourcePath[1] !== expectedType) {
307
146
  throw new Error(`sourcePath must follow pattern unisphere/${expectedType}/<runtime-name>, got ${sourcePath.join('/')}`)
308
147
  }
@@ -0,0 +1,174 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const os = require('os');
4
+ const glob = require('glob')
5
+
6
+ function findWorkspaceRoot(projectRoot) {
7
+ let currentPath = projectRoot;
8
+ let tsconfigPath = path.join(currentPath, 'tsconfig.json');
9
+
10
+ console.log(`[unisphere] Starting search from: ${projectRoot}`);
11
+
12
+ while (fs.existsSync(tsconfigPath)) {
13
+ const tsconfig = JSON.parse(fs.readFileSync(tsconfigPath, 'utf8'));
14
+ const extendsPath = tsconfig.extends;
15
+
16
+ if (!extendsPath) {
17
+ // No extends, this might be the base
18
+ return { workspaceRoot: currentPath, baseTsconfigPath: tsconfigPath };
19
+ }
20
+
21
+ console.log(`[unisphere] Found extends: ${extendsPath} in ${tsconfigPath}`);
22
+
23
+ // Resolve the extends path
24
+ const resolvedExtendsPath = path.resolve(path.dirname(tsconfigPath), extendsPath);
25
+
26
+ if (!fs.existsSync(resolvedExtendsPath)) {
27
+ // Can't follow the chain further
28
+ return { workspaceRoot: currentPath, baseTsconfigPath: tsconfigPath };
29
+ }
30
+
31
+ // Check if this is tsconfig.base.json (likely the root)
32
+ if (path.basename(resolvedExtendsPath) === 'tsconfig.base.json') {
33
+ const workspaceRoot = path.dirname(resolvedExtendsPath);
34
+ return { workspaceRoot, baseTsconfigPath: resolvedExtendsPath };
35
+ }
36
+
37
+ // Continue following the chain
38
+ currentPath = path.dirname(resolvedExtendsPath);
39
+ tsconfigPath = resolvedExtendsPath;
40
+ }
41
+
42
+ // Fallback - couldn't find the chain
43
+ throw new Error('Could not find workspace root through tsconfig extends chain');
44
+ }
45
+
46
+ function createTempBuildTsconfig({
47
+ projectRoot,
48
+ baseTsconfigPath, // can be absolute OR relative to projectRoot
49
+ compilerOptions = {},
50
+ }) {
51
+ if (!projectRoot) {
52
+ throw new Error('createTempBuildTsconfig: projectRoot is required');
53
+ }
54
+ if (!baseTsconfigPath) {
55
+ throw new Error('createTempBuildTsconfig: baseTsconfigPath is required');
56
+ }
57
+
58
+ const resolvedProjectRoot = path.resolve(projectRoot);
59
+
60
+ // ✅ resolve base tsconfig relative to projectRoot (unless already absolute)
61
+ const resolvedBaseTsconfig = path.isAbsolute(baseTsconfigPath)
62
+ ? baseTsconfigPath
63
+ : path.resolve(resolvedProjectRoot, baseTsconfigPath);
64
+
65
+ if (!fs.existsSync(resolvedBaseTsconfig)) {
66
+ throw new Error(
67
+ `createTempBuildTsconfig: base tsconfig not found at: ${resolvedBaseTsconfig}`
68
+ );
69
+ }
70
+
71
+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'unisphere-tsc-'));
72
+ const tempTsconfigPath = path.join(tempDir, 'tsconfig.build.json');
73
+
74
+ // ✅ important: "extends" can be absolute; TS supports it.
75
+ const tsconfig = {
76
+ extends: resolvedBaseTsconfig,
77
+ compilerOptions: {
78
+ ...compilerOptions,
79
+ },
80
+ };
81
+
82
+ console.log(`creating temporary build file in '${tempTsconfigPath}'`)
83
+ fs.writeFileSync(tempTsconfigPath, JSON.stringify(tsconfig, null, 2), 'utf8');
84
+
85
+ // Optional cleanup
86
+ const cleanup = () => {
87
+ try {
88
+ console.log(`removing temporary folder '${tempDir}'`)
89
+ fs.rmSync(tempDir, { recursive: true, force: true });
90
+ } catch { }
91
+ };
92
+ process.on('exit', cleanup);
93
+ process.on('SIGINT', cleanup);
94
+ process.on('SIGTERM', cleanup);
95
+
96
+ return tempTsconfigPath;
97
+ }
98
+
99
+
100
+ function generateDynamicPaths(projectRoot) {
101
+ const paths = {};
102
+
103
+ try {
104
+ // Find workspace root by following tsconfig extends chain
105
+ const { workspaceRoot, baseTsconfigPath } = findWorkspaceRoot(projectRoot);
106
+ console.log(`[unisphere] Found workspace root: ${workspaceRoot}`);
107
+ console.log(`[unisphere] Base tsconfig path: ${baseTsconfigPath}`);
108
+
109
+ // Read base tsconfig to get original paths
110
+ if (fs.existsSync(baseTsconfigPath)) {
111
+ const baseTsconfig = JSON.parse(fs.readFileSync(baseTsconfigPath, 'utf8'));
112
+ const originalPaths = baseTsconfig.compilerOptions?.paths || {};
113
+
114
+ console.log(`[unisphere] Found ${Object.keys(originalPaths).length} original paths in base tsconfig`);
115
+
116
+ // Convert each path from .ts to .d.ts in dist folder
117
+ Object.entries(originalPaths).forEach(([key, pathArray]) => {
118
+ const convertedPaths = pathArray.map(originalPath => {
119
+ // Convert index.ts to index.d.ts and prefix with dist
120
+ return originalPath.replace(/index\.ts$/, 'index.d.ts').replace(/^/, 'dist/');
121
+ });
122
+
123
+ paths[key] = convertedPaths;
124
+ console.log(`[unisphere] Converted path mapping: ${key} -> ${convertedPaths.join(', ')}`);
125
+ });
126
+ }
127
+ } catch (error) {
128
+ throw new Error(`Failed to generate dynamic paths: ${error.message}`);
129
+ console.warn(`[unisphere] Failed to generate dynamic paths: ${error.message}`);
130
+ console.log(`[unisphere] Falling back to basic path generation`);
131
+ }
132
+
133
+ console.log(`[unisphere] Generated ${Object.keys(paths).length} path mappings`);
134
+ return paths;
135
+ }
136
+
137
+
138
+ function getUnispherePackagesDistList(cwd) {
139
+
140
+ let folderPattern = path.join(cwd, 'dist', 'unisphere', 'packages', '*');
141
+
142
+ if (process.platform === 'win32') {
143
+ console.log('[unisphere] running on Windows');
144
+ folderPattern = folderPattern.replace(/\\/g, '/');
145
+ }
146
+ console.log('[unisphere] looking for packages in', folderPattern);
147
+ const folderPaths = glob.sync(folderPattern);
148
+ const result = [];
149
+
150
+ // Iterate through each subfolder
151
+ folderPaths.forEach(distPath => {
152
+ const packageJsonPath = path.join(distPath, 'package.json');
153
+ if (fs.existsSync(packageJsonPath)) {
154
+ // Read and parse the package.json file
155
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
156
+ const packageName = packageJson.name;
157
+
158
+ if (packageName) {
159
+ result.push({ distPath, packageName });
160
+ }
161
+ }
162
+ });
163
+
164
+ console.log('[unisphere] found packages', result);
165
+
166
+ return result;
167
+ }
168
+
169
+ module.exports = {
170
+ findWorkspaceRoot,
171
+ createTempBuildTsconfig,
172
+ generateDynamicPaths,
173
+ getUnispherePackagesDistList
174
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/cli",
3
- "version": "1.58.11",
3
+ "version": "2.0.0",
4
4
  "bin": {
5
5
  "unisphere": "./src/cli.js"
6
6
  },
@@ -72,6 +72,7 @@
72
72
  "readline": "1.3.0",
73
73
  "events": "3.3.0",
74
74
  "express": "5.1.0",
75
+ "@nrwl/devkit": "15.2.1",
75
76
  "tslib": "2.4.1"
76
77
  },
77
78
  "peerDependencies": {}
@@ -168,11 +168,26 @@ in the target project directory and then choose the desired package command`),
168
168
  'Build the package',
169
169
  `npx unisphere package build ${name}`,
170
170
  ]);
171
+ table.push([
172
+ (0, colorette_1.bold)('Build with licenses'),
173
+ 'Build and extract licenses to dist folder',
174
+ `npx unisphere package build ${name} --licenses`,
175
+ ]);
171
176
  table.push([
172
177
  (0, colorette_1.bold)('Lint'),
173
178
  'Lint the package',
174
179
  `npx nx run unisphere-package-${name}:lint --fix`,
175
180
  ]);
181
+ table.push([
182
+ (0, colorette_1.bold)('Extract Licenses'),
183
+ 'Extract license information for package dependencies',
184
+ `npx unisphere package licenses extract ${name}`,
185
+ ]);
186
+ table.push([
187
+ (0, colorette_1.bold)('Extract Licenses (with options)'),
188
+ 'Available flags: --include-transitive, --format=json|summary|all, --output=<path>',
189
+ `npx unisphere package licenses extract ${name} --include-transitive --format=all --output=./licenses`,
190
+ ]);
176
191
  }
177
192
  }
178
193
  if (Object.keys(ctx.workspace.config.elements.runtimes || {})
@@ -190,6 +205,11 @@ in the target project directory and then choose the desired package command`),
190
205
  'Build the runtime',
191
206
  `npx unisphere runtime build ${name}`,
192
207
  ]);
208
+ table.push([
209
+ (0, colorette_1.bold)('Build with licenses'),
210
+ 'Build and extract licenses to dist folder',
211
+ `npx unisphere runtime build ${name} --licenses`,
212
+ ]);
193
213
  table.push([
194
214
  (0, colorette_1.bold)('Serve'),
195
215
  'Serve the runtime (default port is 8300)',
@@ -200,6 +220,16 @@ in the target project directory and then choose the desired package command`),
200
220
  'Serve the runtime with a specific port (e.g. 8320)',
201
221
  `npx unisphere runtime serve ${name} --port 8320`,
202
222
  ]);
223
+ table.push([
224
+ (0, colorette_1.bold)('Extract Licenses'),
225
+ 'Extract license information for runtime dependencies',
226
+ `npx unisphere runtime licenses extract ${name}`,
227
+ ]);
228
+ table.push([
229
+ (0, colorette_1.bold)('Extract Licenses (with options)'),
230
+ 'Available flags: --include-transitive, --format=json|summary|all, --output=<path>',
231
+ `npx unisphere runtime licenses extract ${name} --include-transitive --format=all --output=./licenses`,
232
+ ]);
203
233
  }
204
234
  }
205
235
  if (Object.keys(ctx.workspace.config.elements.applications || {})
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/how-to/command.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AACtD,iCAA0B;AAC1B,mCAA+B;AAC/B,6CAAqD;AACrD,+DAAwE;AACxE,0DAAqE;AAErE,yCAAkD;AAClD,oCAAoC;AAEpC,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,qBAAqB,CAAC,CAAC;AAYpC,MAAM,kBAAkB,GAAG,GAAY,EAAE;IAC9C,MAAM,OAAO,GAAG,IAAI,mBAAO,CAAC,QAAQ,CAAC,CAAC;IAEtC,OAAO;SACJ,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC;SAC/C,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;SAC/C,IAAI,CAAC,WAAW,EAAE,wBAAgB,CAAC;SACnC,MAAM,CAAC,CAAO,OAAO,EAAE,EAAE;QACxB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAEzC,MAAM,IAAI,GAAG,IAAI,cAAK,CACpB;YACE;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE,CAAO,GAAG,EAAE,EAAE;oBAClB,MAAM,SAAS,GA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Q,EAAE,CAAC,CAAC;oBAC9B,IAAI,eAAe,EAAE,CAAC;wBACpB,OAAO,CAAC,GAAG,CACT,8CAA8C,IAAA,gBAAI,EAChD,mCAAmC,CACpC,EAAE,CACJ,CAAC;oBACJ,CAAC;gBACH,CAAC;aACF;SACF,EACD,IAAA,iCAAsB,GAAE,CACzB,CAAC;QAEF,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IACnB,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAjSW,QAAA,kBAAkB,sBAiS7B"}
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/how-to/command.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AACtD,iCAA0B;AAC1B,mCAA+B;AAC/B,6CAAqD;AACrD,+DAAwE;AACxE,0DAAqE;AAErE,yCAAkD;AAClD,oCAAoC;AAEpC,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,qBAAqB,CAAC,CAAC;AAYpC,MAAM,kBAAkB,GAAG,GAAY,EAAE;IAC9C,MAAM,OAAO,GAAG,IAAI,mBAAO,CAAC,QAAQ,CAAC,CAAC;IAEtC,OAAO;SACJ,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC;SAC/C,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;SAC/C,IAAI,CAAC,WAAW,EAAE,wBAAgB,CAAC;SACnC,MAAM,CAAC,CAAO,OAAO,EAAE,EAAE;QACxB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAEzC,MAAM,IAAI,GAAG,IAAI,cAAK,CACpB;YACE;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE,CAAO,GAAG,EAAE,EAAE;oBAClB,MAAM,SAAS,GAAG,MAAM,IAAA,iCAAqB,EAAC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