@elliemae/pui-cli 8.54.12 → 8.55.5
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/README.md +3 -3
- package/dist/cjs/cli.js +0 -0
- package/dist/cjs/package.json +4 -1
- package/dist/cjs/release.config.cjs +1 -0
- package/dist/cjs/semantic-release-plugin.cjs +35 -0
- package/dist/esm/package.json +4 -1
- package/dist/esm/release.config.cjs +1 -0
- package/dist/esm/semantic-release-plugin.cjs +35 -0
- package/dist/types/lib/semantic-release-plugin.d.cts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -30
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Command Line Interface for UI Applications & Libraries
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[Build Job](https://jenkinsbuild.elliemae.cloud/job/UIPlatform/job/pui-cli/job/master)
|
|
4
4
|
|
|
5
|
-
[SonarQube Report](https://
|
|
5
|
+
[SonarQube Report](https://sonarqube.jenkins.elliemae.cloud/overview?id=elliemae.pui.cli-master)
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
### v7 to v8
|
|
24
24
|
|
|
25
|
-
[Changelog](https://confluence.
|
|
25
|
+
[Changelog](https://confluence.ice.com/display/FEAE/CLI+ChangeLog#CLIChangeLog-v8)
|
|
26
26
|
|
|
27
27
|
### v6 to v7
|
|
28
28
|
|
package/dist/cjs/cli.js
CHANGED
|
File without changes
|
package/dist/cjs/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Semantic Release plugin to write publish info and set dist tag
|
|
6
|
+
* @see https://semantic-release.gitbook.io/semantic-release/developer-guide/plugin
|
|
7
|
+
*/
|
|
8
|
+
module.exports = {
|
|
9
|
+
success: async (pluginConfig, context) => {
|
|
10
|
+
const { nextRelease, logger } = context;
|
|
11
|
+
|
|
12
|
+
// Debug: log what we receive
|
|
13
|
+
logger?.log?.('Plugin context keys:', Object.keys(context));
|
|
14
|
+
logger?.log?.('nextRelease:', nextRelease ? 'present' : 'undefined');
|
|
15
|
+
|
|
16
|
+
if (!nextRelease) {
|
|
17
|
+
logger?.log?.('No release information available');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const distTag = nextRelease.channel || 'latest';
|
|
22
|
+
const fname = path.join(process.cwd(), 'publish-info.json');
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
fs.writeFileSync(fname, JSON.stringify(nextRelease, null, 2));
|
|
26
|
+
logger?.log?.(`Wrote publish info to ${fname}`);
|
|
27
|
+
logger?.log?.(`Distribution tag set to: ${distTag}`);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
logger?.error?.(`Failed to write publish info: ${error.message}`);
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
process.env.DIST_TAG = distTag;
|
|
34
|
+
},
|
|
35
|
+
};
|
package/dist/esm/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Semantic Release plugin to write publish info and set dist tag
|
|
6
|
+
* @see https://semantic-release.gitbook.io/semantic-release/developer-guide/plugin
|
|
7
|
+
*/
|
|
8
|
+
module.exports = {
|
|
9
|
+
success: async (pluginConfig, context) => {
|
|
10
|
+
const { nextRelease, logger } = context;
|
|
11
|
+
|
|
12
|
+
// Debug: log what we receive
|
|
13
|
+
logger?.log?.('Plugin context keys:', Object.keys(context));
|
|
14
|
+
logger?.log?.('nextRelease:', nextRelease ? 'present' : 'undefined');
|
|
15
|
+
|
|
16
|
+
if (!nextRelease) {
|
|
17
|
+
logger?.log?.('No release information available');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const distTag = nextRelease.channel || 'latest';
|
|
22
|
+
const fname = path.join(process.cwd(), 'publish-info.json');
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
fs.writeFileSync(fname, JSON.stringify(nextRelease, null, 2));
|
|
26
|
+
logger?.log?.(`Wrote publish info to ${fname}`);
|
|
27
|
+
logger?.log?.(`Distribution tag set to: ${distTag}`);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
logger?.error?.(`Failed to write publish info: ${error.message}`);
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
process.env.DIST_TAG = distTag;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function success(pluginConfig: any, context: any): Promise<void>;
|