@asyncapi/cli 3.3.0 → 3.4.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.
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/cli",
|
|
3
3
|
"description": "All in one CLI for all AsyncAPI tools",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run_bin"
|
|
@@ -173,6 +173,7 @@
|
|
|
173
173
|
"pack:macos": "oclif pack macos && npm run pack:rename",
|
|
174
174
|
"pack:linux": "oclif pack deb && npm run pack:rename",
|
|
175
175
|
"pack:tarballs": "oclif pack tarballs -t linux-x64 && npm run pack:rename",
|
|
176
|
+
"pack:tarballs:alpine": "oclif pack tarballs -t linux-x64 && npm run pack:rename alpine",
|
|
176
177
|
"pack:windows": "oclif pack win && npm run pack:rename",
|
|
177
178
|
"pack:rename": "node scripts/releasePackagesRename.js",
|
|
178
179
|
"prepublishOnly": "npm run build",
|
|
@@ -37,7 +37,7 @@ async function renameDeb({version, name, sha}) {
|
|
|
37
37
|
await checkAndRenameFile(generatedPath, newPath);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
async function renameTar({version, name, sha}) {
|
|
40
|
+
async function renameTar({version, name, sha, isAlpine}) {
|
|
41
41
|
const dist = 'dist';
|
|
42
42
|
|
|
43
43
|
const generatedPath = path.resolve(dist, `${name}-v${version}-${sha}-linux-x64.tar.gz`);
|
|
@@ -45,7 +45,9 @@ async function renameTar({version, name, sha}) {
|
|
|
45
45
|
// Creates a new `tar` directory(`dist/tar`), and moves the generated tarball inside that directory.
|
|
46
46
|
const tarDirectory = path.resolve(dist, 'tar');
|
|
47
47
|
await createDirectory(tarDirectory);
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
const fileName = isAlpine ? 'asyncapi-alpine.tar.gz' : 'asyncapi.tar.gz';
|
|
50
|
+
const newPath = path.resolve(tarDirectory, fileName);
|
|
49
51
|
await checkAndRenameFile(generatedPath, newPath);
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -69,12 +71,18 @@ async function renamePackages() {
|
|
|
69
71
|
const version = packageJson.version;
|
|
70
72
|
const name = 'asyncapi';
|
|
71
73
|
const sha = await git.revparse(['--short', 'HEAD']);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
const isAlpine = process.argv.includes('alpine');
|
|
75
|
+
|
|
76
|
+
if (isAlpine) {
|
|
77
|
+
await renameTar({version, name, sha, isAlpine: true});
|
|
78
|
+
} else {
|
|
79
|
+
await renameDeb({version: version.split('-')[0], name, sha});
|
|
80
|
+
await renamePkg({version, name, sha, arch: 'x64'});
|
|
81
|
+
await renamePkg({version, name, sha, arch: 'arm64'});
|
|
82
|
+
await renameWindows({version, name, sha, arch: 'x64'});
|
|
83
|
+
await renameWindows({version, name, sha, arch: 'x86'});
|
|
84
|
+
await renameTar({version, name, sha, isAlpine: false});
|
|
85
|
+
}
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
renamePackages();
|