yavascript 0.0.7 → 0.0.9

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 CHANGED
@@ -34,6 +34,7 @@ Additionally, you can do other things that are either not present in bash or are
34
34
  - Pretty-print complex structures
35
35
  - Call low-level POSIX C APIs like fputs, sprintf, isatty
36
36
  - Perform work in threads
37
+ - Import packages from npm (via "npm:" imports) or local node_modules
37
38
 
38
39
  You'll also find analogues to familiar CLI tools, like:
39
40
 
@@ -84,17 +85,17 @@ supporting the ES2020 specification.
84
85
 
85
86
  ## Compiling
86
87
 
87
- ### Binaries (all platforms)
88
+ You'll need to install these prerequisites:
88
89
 
89
- You will need docker installed, then run `meta/docker/build-all.sh`.
90
+ - [node.js](https://nodejs.org/en)
91
+ - [ninja](https://ninja-build.org/)
92
+ - [glow](https://github.com/charmbracelet/glow)
90
93
 
91
- ### Binaries (just for your machine)
94
+ Then run `meta/build.sh` to build binaries for the current platform (will be output in `dist`), or `meta/build-all.sh` to build binaries for all platforms (will be output in `bin`).
92
95
 
93
- You will need node.js and ninja installed, then run `meta/build.sh`.
96
+ ### Building the Docker image
94
97
 
95
- ### Docker image
96
-
97
- You will need docker installed, then run `docker build -t yourusername/yavascript .`.
98
+ You will need docker installed. After building binaries for all platforms, ensure yavascript is in your PATH, then run `meta/docker/build-image.sh`.
98
99
 
99
100
  ---
100
101
 
@@ -5,19 +5,19 @@ var binDir = path.resolve(__dirname, "..", "bin");
5
5
  function getBinaryPath(platformAndArch) {
6
6
  switch (platformAndArch) {
7
7
  case "darwin-arm64": {
8
- return path.join(binDir, "darwin-arm64", "yavascript");
8
+ return path.join(binDir, "aarch64-apple-darwin", "yavascript");
9
9
  }
10
10
  case "darwin-x64": {
11
- return path.join(binDir, "darwin-x86_64", "yavascript");
11
+ return path.join(binDir, "x86_64-apple-darwin", "yavascript");
12
12
  }
13
13
  case "linux-arm64": {
14
- return path.join(binDir, "linux-aarch64", "yavascript");
14
+ return path.join(binDir, "aarch64-unknown-linux-static", "yavascript");
15
15
  }
16
16
  case "linux-x64": {
17
- return path.join(binDir, "linux-amd64", "yavascript");
17
+ return path.join(binDir, "x86_64-unknown-linux-static", "yavascript");
18
18
  }
19
19
  case "win32-x64": {
20
- return path.join(binDir, "windows-x86_64", "yavascript.exe");
20
+ return path.join(binDir, "x86_64-pc-windows-static", "yavascript.exe");
21
21
  }
22
22
  default: {
23
23
  throw new Error("Unsupported platform: " + platformAndArch);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yavascript",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "main": "lib/index.js",
5
5
  "bin": "lib/cli.js",
6
6
  "types": "yavascript.d.ts",