@weft-js/compiler-darwin-arm64 0.1.1 → 0.1.3

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
@@ -1,3 +1,42 @@
1
- # @weft-js/compiler-darwin-arm64
1
+ <p align="center">
2
+ <a href="https://github.com/Ravonus/weft"><img src="https://raw.githubusercontent.com/Ravonus/weft/main/site/public/logo.svg" width="72" height="72" alt="Weft"></a>
3
+ </p>
2
4
 
3
- The weft compiler as a Node addon for darwin-arm64. @weft-js/core installs it by itself where it fits and runs its WASM build where it doesn't: same output, a little slower. Don't depend on this directly.
5
+ <h1 align="center">@weft-js/compiler-darwin-arm64</h1>
6
+
7
+ <p align="center">
8
+ <strong>Weft's Rust compiler as a native Node addon for darwin-arm64.</strong><br>
9
+ Installed for you by <a href="https://www.npmjs.com/package/@weft-js/core">@weft-js/core</a>. You never depend on it directly.
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/@weft-js/compiler-darwin-arm64"><img src="https://img.shields.io/npm/v/@weft-js/compiler-darwin-arm64?color=145c3c&label=npm" alt="npm version"></a>
14
+ <a href="https://github.com/Ravonus/weft/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-145c3c" alt="MIT license"></a>
15
+ </p>
16
+
17
+ ## What this is
18
+
19
+ [@weft-js/core](https://www.npmjs.com/package/@weft-js/core) lists one of these addons per platform in its
20
+ `optionalDependencies`. Your package manager installs only the one that matches your OS, CPU and C library, and
21
+ core's compiler loader picks it up. When no addon fits, or the one installed is a different version or fails to load,
22
+ core runs the same compiler as WebAssembly instead: the output is byte-identical, a little slower to produce.
23
+ `npx weft doctor` says which one your app is using.
24
+
25
+ | Platform | Package |
26
+ | ------------------ | -------------------------------------- |
27
+ | macOS, Apple silicon | `@weft-js/compiler-darwin-arm64` |
28
+ | macOS, Intel | `@weft-js/compiler-darwin-x64` |
29
+ | Linux x64, glibc | `@weft-js/compiler-linux-x64-gnu` |
30
+ | Linux x64, musl | `@weft-js/compiler-linux-x64-musl` |
31
+ | Linux arm64, glibc | `@weft-js/compiler-linux-arm64-gnu` |
32
+ | Linux arm64, musl | `@weft-js/compiler-linux-arm64-musl` |
33
+ | Windows x64 | `@weft-js/compiler-win32-x64` |
34
+ | Everything else | WebAssembly, built into core |
35
+
36
+ ## Links
37
+
38
+ - [Compiler source](https://github.com/Ravonus/weft/tree/main/crates/weft-compiler) (Rust, on [Oxc](https://oxc.rs))
39
+ - [@weft-js/core](https://www.npmjs.com/package/@weft-js/core) and [Weft on GitHub](https://github.com/Ravonus/weft)
40
+ - [Changelog](https://github.com/Ravonus/weft/blob/main/CHANGELOG.md) · [Issues](https://github.com/Ravonus/weft/issues)
41
+
42
+ MIT licensed.
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@weft-js/compiler-darwin-arm64",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "weft compiler addon for darwin-arm64",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Ravonus/weft.git",
9
+ "directory": "crates/weft-compiler"
10
+ },
11
+ "homepage": "https://github.com/Ravonus/weft/tree/main/packages/core#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/Ravonus/weft/issues"
14
+ },
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -16,4 +25,4 @@
16
25
  "cpu": [
17
26
  "arm64"
18
27
  ]
19
- }
28
+ }
Binary file