@trajectonomics/cli 0.3.0 → 0.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/README.md +2 -2
- package/bin/launcher.js +3 -3
- package/package.json +6 -16
package/README.md
CHANGED
|
@@ -12,14 +12,14 @@ Linux and macOS, one line (verifies the release checksum, installs `traj` to `~/
|
|
|
12
12
|
or `$TRAJ_INSTALL_DIR`, and prints what it installed):
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
curl -fsSL https://github.com/trajectonomics/
|
|
15
|
+
curl -fsSL https://github.com/trajectonomics/trajectonomics/releases/latest/download/install.sh | sh
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Windows, one line (installs to `%LOCALAPPDATA%\traj\bin`, adds it to the user `PATH` once,
|
|
19
19
|
and needs a new shell afterwards):
|
|
20
20
|
|
|
21
21
|
```powershell
|
|
22
|
-
irm https://github.com/trajectonomics/
|
|
22
|
+
irm https://github.com/trajectonomics/trajectonomics/releases/latest/download/install.ps1 | iex
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
npm, on any machine with Node 20 or later, or with Bun (`npx` needs no Bun; the package
|
package/bin/launcher.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createHash } from "node:crypto"
|
|
3
3
|
import { constants } from "node:os"
|
|
4
4
|
|
|
5
|
-
/** The
|
|
6
|
-
export const RELEASE_BASE = "https://github.com/trajectonomics/
|
|
5
|
+
/** The releases root of this repository: one cli release's assets sit under `download/cli-v<version>`. */
|
|
6
|
+
export const RELEASE_BASE = "https://github.com/trajectonomics/trajectonomics/releases"
|
|
7
7
|
|
|
8
8
|
/** `process.platform`-`process.arch` to asset name. */
|
|
9
9
|
const ASSETS = {
|
|
@@ -60,7 +60,7 @@ export function exitStatus(code, signal) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function releaseUrl(version, name, base = RELEASE_BASE) {
|
|
63
|
-
return `${base}/download/v${version}/${name}`
|
|
63
|
+
return `${base}/download/cli-v${version}/${name}`
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trajectonomics/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "trajectonomics command line",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/trajectonomics/
|
|
22
|
+
"url": "git+https://github.com/trajectonomics/trajectonomics.git",
|
|
23
|
+
"directory": "apps/cli"
|
|
23
24
|
},
|
|
24
|
-
"homepage": "https://github.com/trajectonomics/cli#readme",
|
|
25
|
+
"homepage": "https://github.com/trajectonomics/trajectonomics/tree/main/apps/cli#readme",
|
|
25
26
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/trajectonomics/
|
|
27
|
+
"url": "https://github.com/trajectonomics/trajectonomics/issues"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
30
|
"dev": "bun run src/index.ts",
|
|
@@ -32,17 +33,6 @@
|
|
|
32
33
|
"lint": "biome ci --error-on-warnings .",
|
|
33
34
|
"format": "biome check --write .",
|
|
34
35
|
"build": "bun build src/index.ts --compile --no-compile-autoload-bunfig --no-compile-autoload-dotenv --outfile dist/traj",
|
|
35
|
-
"check": "bun run lint && bun run typecheck && bun test && bun run build"
|
|
36
|
-
"update:skills": "bunx skills@latest update -p -y"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@biomejs/biome": "2.6.3",
|
|
40
|
-
"@trajectonomics/ledger": "0.1.0-alpha.0",
|
|
41
|
-
"@trajectonomics/sim": "0.2.0-alpha.17",
|
|
42
|
-
"@trajectonomics/tax": "0.2.0-alpha.6",
|
|
43
|
-
"@trajectonomics/tooling": "1.1.0",
|
|
44
|
-
"@types/bun": "^1.4.4",
|
|
45
|
-
"typescript": "^7.0.2",
|
|
46
|
-
"zod": "^4.6.7"
|
|
36
|
+
"check": "bun run lint && bun run typecheck && bun test && bun run build"
|
|
47
37
|
}
|
|
48
38
|
}
|