rari 0.12.2 → 0.13.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/dist/platform.mjs +1 -1
- package/package.json +8 -7
package/dist/platform.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{existsSync as e}from"node:fs";import{dirname as t,join as n,parse as r}from"node:path";import i from"node:process";import{fileURLToPath as a}from"node:url";const o={"linux-x64":`rari-linux-x64`,"linux-arm64":`rari-linux-arm64`,"darwin-x64":`rari-darwin-x64`,"darwin-arm64":`rari-darwin-arm64`,"win32-x64":`rari-win32-x64`};function s(){let e=i.platform,t=i.arch,n;switch(e){case`darwin`:n=`darwin`;break;case`linux`:n=`linux`;break;case`win32`:n=`win32`;break;default:throw Error(`Unsupported platform: ${e}. rari supports Linux, macOS, and Windows.`)}let r;switch(t){case`x64`:r=`x64`;break;case`arm64`:r=`arm64`;break;default:throw Error(`Unsupported architecture: ${t}. rari supports x64 and ARM64.`)}let a=o[`${n}-${r}`];if(!a)throw Error(`Unsupported platform combination: ${n}-${r}. Supported platforms: ${Object.keys(o).join(`, `)}`);return{platform:n,arch:r,packageName:a,binaryName:n===`win32`?`rari.exe`:`rari`}}function c(){let{packageName:o,binaryName:c}=s();try{let a=i.cwd(),s=null,l=r(a).root;for(;a!==l&&a!==``;){if(e(n(a,`packages`))){s=a;break}let r=t(a);if(r===a)break;a=r}if(s){let t=n(n(s,`packages`,o),`bin`,c);if(e(t))return t}}catch{}try{let t=import.meta.resolve(`${o}/package.json`),r=n(a(new URL(`.`,t)),`bin`,c);if(e(r))return r;throw Error(`Binary not found at ${r}`)}catch{throw Error(`Failed to locate rari binary for ${o}. Please ensure the platform package is installed: npm install ${o}`)}}function l(){let{packageName:e}=s();return`
|
|
1
|
+
import{existsSync as e}from"node:fs";import{dirname as t,join as n,parse as r}from"node:path";import i from"node:process";import{fileURLToPath as a}from"node:url";const o={"linux-x64":`rari-linux-x64`,"linux-arm64":`rari-linux-arm64`,"darwin-x64":`rari-darwin-x64`,"darwin-arm64":`rari-darwin-arm64`,"win32-arm64":`rari-win32-arm64`,"win32-x64":`rari-win32-x64`};function s(){let e=i.platform,t=i.arch,n;switch(e){case`darwin`:n=`darwin`;break;case`linux`:n=`linux`;break;case`win32`:n=`win32`;break;default:throw Error(`Unsupported platform: ${e}. rari supports Linux, macOS, and Windows.`)}let r;switch(t){case`x64`:r=`x64`;break;case`arm64`:r=`arm64`;break;default:throw Error(`Unsupported architecture: ${t}. rari supports x64 and ARM64.`)}let a=o[`${n}-${r}`];if(!a)throw Error(`Unsupported platform combination: ${n}-${r}. Supported platforms: ${Object.keys(o).join(`, `)}`);return{platform:n,arch:r,packageName:a,binaryName:n===`win32`?`rari.exe`:`rari`}}function c(){let{packageName:o,binaryName:c}=s();try{let a=i.cwd(),s=null,l=r(a).root;for(;a!==l&&a!==``;){if(e(n(a,`packages`))){s=a;break}let r=t(a);if(r===a)break;a=r}if(s){let t=n(n(s,`packages`,o),`bin`,c);if(e(t))return t}}catch{}try{let t=import.meta.resolve(`${o}/package.json`),r=n(a(new URL(`.`,t)),`bin`,c);if(e(r))return r;throw Error(`Binary not found at ${r}`)}catch{throw Error(`Failed to locate rari binary for ${o}. Please ensure the platform package is installed: npm install ${o}`)}}function l(){let{packageName:e}=s();return`
|
|
2
2
|
To install rari for your platform, run:
|
|
3
3
|
|
|
4
4
|
npm install ${e}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rari",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"description": "Runtime Accelerated Rendering Infrastructure (rari)",
|
|
6
6
|
"author": "Ryan Skinner",
|
|
7
7
|
"license": "MIT",
|
|
@@ -110,17 +110,18 @@
|
|
|
110
110
|
"rolldown": "^1.0.0-rc.16"
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
113
|
-
"rari-darwin-arm64": "0.
|
|
114
|
-
"rari-darwin-x64": "0.
|
|
115
|
-
"rari-linux-arm64": "0.
|
|
116
|
-
"rari-linux-x64": "0.
|
|
117
|
-
"rari-win32-
|
|
113
|
+
"rari-darwin-arm64": "0.13.0",
|
|
114
|
+
"rari-darwin-x64": "0.13.0",
|
|
115
|
+
"rari-linux-arm64": "0.13.0",
|
|
116
|
+
"rari-linux-x64": "0.13.0",
|
|
117
|
+
"rari-win32-arm64": "0.13.0",
|
|
118
|
+
"rari-win32-x64": "0.13.0"
|
|
118
119
|
},
|
|
119
120
|
"devDependencies": {
|
|
120
121
|
"@types/node": "^25.6.0",
|
|
121
122
|
"@types/react": "^19.2.14",
|
|
122
123
|
"@types/react-dom": "^19.2.3",
|
|
123
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
124
|
+
"@typescript/native-preview": "^7.0.0-dev.20260420.1",
|
|
124
125
|
"vite-plus": "^0.1.18",
|
|
125
126
|
"@rari/deploy": "0.1.0",
|
|
126
127
|
"@rari/logger": "0.1.0"
|