@asyncapi/cli 0.54.4 → 0.54.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/lib/models/Context.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +3 -4
package/lib/models/Context.js
CHANGED
|
@@ -285,9 +285,9 @@ function getContextFilePath() {
|
|
|
285
285
|
// If a file is found which can be read and passed validation as a
|
|
286
286
|
// legitimate context file, then it is considered a legitimate context
|
|
287
287
|
// file indeed.
|
|
288
|
-
const fileContent = JSON.parse(
|
|
289
|
-
|
|
290
|
-
}));
|
|
288
|
+
const fileContent = JSON.parse(
|
|
289
|
+
//we do not use await readFile because getContextFilePath cannot be called inside async function
|
|
290
|
+
(0, fs_1.readFileSync)(currentPathString, { encoding: 'utf8' }));
|
|
291
291
|
if (fileContent &&
|
|
292
292
|
(yield isContextFileValid(fileContent))) {
|
|
293
293
|
exports.CONTEXT_FILE_PATH = currentPathString;
|
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": "0.54.
|
|
4
|
+
"version": "0.54.5",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
},
|
|
129
129
|
"repository": "asyncapi/cli",
|
|
130
130
|
"scripts": {
|
|
131
|
-
"build": "rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && echo \"Build Completed\"",
|
|
131
|
+
"build": "rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && oclif manifest && echo \"Build Completed\"",
|
|
132
132
|
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
|
|
133
133
|
"dev": "tsc --watch",
|
|
134
134
|
"docker:build": "docker build -t asyncapi/cli:latest .",
|
|
@@ -144,8 +144,7 @@
|
|
|
144
144
|
"pack:tarballs": "oclif pack tarballs -t linux-x64 && npm run pack:rename",
|
|
145
145
|
"pack:windows": "oclif pack win && npm run pack:rename",
|
|
146
146
|
"pack:rename": "node scripts/releasePackagesRename.js",
|
|
147
|
-
"
|
|
148
|
-
"prepublishOnly": "npm run build && oclif manifest",
|
|
147
|
+
"prepublishOnly": "npm run build",
|
|
149
148
|
"pretest:coverage": "npm run build",
|
|
150
149
|
"release": "semantic-release",
|
|
151
150
|
"pretest": "npm run build",
|