mateooo93-cortex 0.25.44 → 0.25.46
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 +13 -7
- package/lib/path-check.js +2 -2
- package/lib/run.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# mateooo93-cortex (npm)
|
|
2
2
|
|
|
3
3
|
npm wrapper that downloads the native `cortex` binary for your OS on `postinstall`.
|
|
4
4
|
|
|
5
|
-
> **Note:** The package `cortex-cli` on npmjs.org is a different product (CognitiveScale). Use
|
|
5
|
+
> **Note:** The package `cortex-cli` on npmjs.org is a different product (CognitiveScale). Use `mateooo93-cortex`.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
**Recommended
|
|
9
|
+
**Recommended npm install** (npmjs.org, no registry token):
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g mateooo93-cortex@latest
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**curl installer** (also no registry token):
|
|
10
16
|
|
|
11
17
|
```bash
|
|
12
18
|
curl -fsSL https://raw.githubusercontent.com/Mateooo93/cortex-cli/main/script/install.sh | bash
|
|
13
19
|
```
|
|
14
20
|
|
|
15
|
-
**
|
|
21
|
+
**GitHub Packages** (requires GitHub Packages auth in many npm setups):
|
|
16
22
|
|
|
17
23
|
```bash
|
|
18
24
|
npm install -g @mateooo93/cortex@latest --registry=https://npm.pkg.github.com
|
|
@@ -36,7 +42,7 @@ If you see `E401 Unauthorized`, the package may still be private — use the ins
|
|
|
36
42
|
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
|
|
37
43
|
```
|
|
38
44
|
|
|
39
|
-
The global `cortex` command must point at `.../node_modules/@mateooo93/cortex/shims/cortex.js`
|
|
45
|
+
The global `cortex` command must point at `.../node_modules/mateooo93-cortex/shims/cortex.js` or `.../node_modules/@mateooo93/cortex/shims/cortex.js` depending on which package you installed.
|
|
40
46
|
|
|
41
47
|
## Publish (maintainers)
|
|
42
48
|
|
|
@@ -46,10 +52,10 @@ The global `cortex` command must point at `.../node_modules/@mateooo93/cortex/sh
|
|
|
46
52
|
./script/publish-npm.sh v0.25.25 --yes
|
|
47
53
|
```
|
|
48
54
|
|
|
49
|
-
**npmjs.org** (
|
|
55
|
+
**npmjs.org** (public `mateooo93-cortex` — requires npm Automation token):
|
|
50
56
|
|
|
51
57
|
```bash
|
|
52
58
|
./script/publish-npm.sh v0.25.25 --yes --registry npmjs
|
|
53
59
|
```
|
|
54
60
|
|
|
55
|
-
After the first GitHub Packages publish, set the package visibility to **Public** under the repo's **Packages** tab so anyone can install without a token.
|
|
61
|
+
After the first GitHub Packages publish, set the package visibility to **Public** under the repo's **Packages** tab so anyone can install without a token.
|
package/lib/path-check.js
CHANGED
|
@@ -102,7 +102,7 @@ function warnIfShadowed() {
|
|
|
102
102
|
console.warn("");
|
|
103
103
|
console.warn("cortex-cli: another `cortex` command comes first on your PATH:");
|
|
104
104
|
console.warn(` ${firstOnPath}`);
|
|
105
|
-
console.warn(
|
|
105
|
+
console.warn(`cortex npm shim: ${shimPath}`);
|
|
106
106
|
console.warn("");
|
|
107
107
|
if (looksLikeCognitiveScale(firstOnPath)) {
|
|
108
108
|
console.warn("Remove the conflicting CognitiveScale CLI, then open a new terminal:");
|
|
@@ -118,4 +118,4 @@ function warnIfShadowed() {
|
|
|
118
118
|
console.warn("");
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
module.exports = { warnIfShadowed, resolveCortexOnPath, looksLikeCognitiveScale };
|
|
121
|
+
module.exports = { warnIfShadowed, resolveCortexOnPath, looksLikeCognitiveScale };
|
package/lib/run.js
CHANGED
|
@@ -17,7 +17,7 @@ async function main() {
|
|
|
17
17
|
|
|
18
18
|
if (!binaryPath || !fs.existsSync(binaryPath)) {
|
|
19
19
|
console.error(
|
|
20
|
-
`cortex-cli: native binary not installed. Re-run: npm install -g ${packageName}
|
|
20
|
+
`cortex-cli: native binary not installed. Re-run: npm install -g ${packageName}`
|
|
21
21
|
);
|
|
22
22
|
process.exit(1);
|
|
23
23
|
}
|
|
@@ -48,4 +48,4 @@ async function main() {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
main();
|
|
51
|
+
main();
|
package/package.json
CHANGED