@layers/amba-core 1.0.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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +42 -0
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @layers/amba-core
2
+
3
+ Internal shared runtime for the amba TypeScript SDKs. **Not intended for direct application use** — install one of the platform-specific wrappers instead:
4
+
5
+ | If you're targeting… | Use |
6
+ | -------------------------------- | --------------------------- |
7
+ | Browser | `@layers/amba-web` |
8
+ | Node.js | `@layers/amba-node` |
9
+ | React Native (Expo Go + bare RN) | `@layers/amba-react-native` |
10
+ | Expo with config plugin | `@layers/amba-expo` |
11
+
12
+ ## License
13
+
14
+ MIT.
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@layers/amba-core",
3
+ "version": "1.0.0",
4
+ "description": "amba SDK runtime — shared client core used by @layers/amba-web, @layers/amba-node, @layers/amba-react-native. Internal dependency; install one of those packages instead.",
5
+ "type": "module",
6
+ "main": "./pkg/amba_core.js",
7
+ "types": "./pkg/amba_core.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./pkg/amba_core.d.ts",
11
+ "import": "./pkg/amba_core.js"
12
+ },
13
+ "./wasm": "./pkg/amba_core_bg.wasm"
14
+ },
15
+ "files": [
16
+ "pkg/amba_core.js",
17
+ "pkg/amba_core_bg.wasm",
18
+ "pkg/amba_core.d.ts",
19
+ "pkg/amba_core_bg.wasm.d.ts",
20
+ "README.md"
21
+ ],
22
+ "sideEffects": [
23
+ "./pkg/snippets/*"
24
+ ],
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/layers/amba.git",
29
+ "directory": "sdks/packages/core"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "engines": {
35
+ "node": ">=20.0.0"
36
+ },
37
+ "scripts": {
38
+ "build": "cd ../../core && wasm-pack build --target web --out-name amba_core --out-dir ../sdks/packages/core/pkg",
39
+ "build:bundler": "cd ../../core && wasm-pack build --target bundler --out-name amba_core --out-dir ../sdks/packages/core/pkg-bundler",
40
+ "build:nodejs": "cd ../../core && wasm-pack build --target nodejs --out-name amba_core --out-dir ../sdks/packages/core/pkg-node"
41
+ }
42
+ }