@stacksjs/actions 0.75.172 → 0.75.174
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/build/android-config.d.ts +32 -0
- package/dist/build/android-config.js +1 -1
- package/dist/build/android-icons.d.ts +15 -0
- package/dist/build/android-icons.js +2 -0
- package/dist/build/android.js +1 -1
- package/dist/build/native-screens.d.ts +3 -3
- package/dist/build/native-screens.js +1 -1
- package/package.json +39 -39
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import type { AndroidMobileConfig } from '@stacksjs/types';
|
|
2
|
+
/** Which floored features this android config uses. */
|
|
3
|
+
export declare function androidCraftFeatures(config: AndroidMobileConfig, options?: { appBundle?: boolean }): AndroidCraftFeature[];
|
|
4
|
+
/** Refuse to generate an app the resolved Craft would build without what config/mobile.ts asks for. */
|
|
5
|
+
export declare function assertCraftSupportsAndroid(config: AndroidMobileConfig, version: string, source: string, options?: { appBundle?: boolean }): void;
|
|
2
6
|
export declare function toCraftAndroidConfig(config: AndroidMobileConfig): CraftAndroidConfig;
|
|
3
7
|
export declare function validateAndroidMobileConfig(config: AndroidMobileConfig): void;
|
|
8
|
+
/**
|
|
9
|
+
* The first craft-native release whose Android template honours a feature
|
|
10
|
+
* of `config/mobile.ts`'s android section, the Android sibling of
|
|
11
|
+
* ios-config.ts's CRAFT_CAPABILITY_FLOORS. An older template copies the
|
|
12
|
+
* keys into craft.config.json and has no Kotlin reading them: the build
|
|
13
|
+
* succeeds and the app opens one bare screen, with no tabs, no Health
|
|
14
|
+
* Connect reads and no background refresh.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CRAFT_ANDROID_FLOORS: {
|
|
17
|
+
/** The native app shell: tabs, paths to screens, the app script, synchronous stores. */
|
|
18
|
+
nativeShell: '0.0.169';
|
|
19
|
+
/** Health Connect for native screens (workouts, sleep, heart rate, mindful, nutrition). */
|
|
20
|
+
healthConnect: '0.0.169';
|
|
21
|
+
/** WorkManager background refresh for the app script. */
|
|
22
|
+
backgroundRefresh: '0.0.169';
|
|
23
|
+
/** `bundleRelease` (an AAB for Google Play) and release signing from the environment. */
|
|
24
|
+
appBundle: '0.0.169'
|
|
25
|
+
};
|
|
4
26
|
export declare interface CraftAndroidConfig {
|
|
5
27
|
[key: string]: unknown
|
|
6
28
|
appName: string
|
|
@@ -10,11 +32,21 @@ export declare interface CraftAndroidConfig {
|
|
|
10
32
|
minSdk?: number
|
|
11
33
|
targetSdk?: number
|
|
12
34
|
darkMode?: boolean
|
|
35
|
+
appearance?: AndroidMobileConfig['appearance']
|
|
13
36
|
backgroundColor?: string
|
|
37
|
+
backgroundColorDark?: string
|
|
14
38
|
devServerURL?: string
|
|
15
39
|
trustedOrigins?: string[]
|
|
16
40
|
urlSchemes?: string[]
|
|
17
41
|
appIconPath?: string
|
|
18
42
|
googleServicesFile?: string
|
|
19
43
|
enableHealthConnect?: boolean
|
|
44
|
+
renderer?: AndroidMobileConfig['renderer']
|
|
45
|
+
nativeScreens?: Record<string, string>
|
|
46
|
+
nativeApp?: string
|
|
47
|
+
tabs?: AndroidMobileConfig['tabs']
|
|
48
|
+
backgroundRefresh?: AndroidMobileConfig['backgroundRefresh']
|
|
49
|
+
healthConnect?: AndroidMobileConfig['healthConnect']
|
|
50
|
+
privacyPolicyURL?: string
|
|
20
51
|
}
|
|
52
|
+
export type AndroidCraftFeature = keyof typeof CRAFT_ANDROID_FLOORS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{normalizeMobileUrl}from"./ios-config";const CAPABILITY_KEYS={speechRecognition:"enableSpeechRecognition",haptics:"enableHaptics",share:"enableShare",camera:"enableCamera",biometric:"enableBiometric",pushNotifications:"enablePushNotifications",secureStorage:"enableSecureStorage",geolocation:"enableGeolocation",backgroundLocation:"enableBackgroundLocation",keepAwake:"enableKeepAwake",deepLinks:"enableDeepLinks",healthConnect:"enableHealthConnect",localNetwork:"enableLocalNetwork"};export function toCraftAndroidConfig(config){const devServerURL=normalizeMobileUrl(config.url),trustedOrigins=new Set(config.trustedOrigins??[]);if(devServerURL)trustedOrigins.add(new URL(devServerURL).origin);const craft={appName:config.appName,packageName:config.packageName,version:config.version,versionCode:config.versionCode,minSdk:config.minSdk,targetSdk:config.targetSdk,darkMode:config.darkMode,backgroundColor:config.backgroundColor,devServerURL,trustedOrigins:[...trustedOrigins],urlSchemes:config.urlSchemes,appIconPath:config.appIcon,googleServicesFile:config.googleServicesFile};for(const[key,nativeKey]of Object.entries(CAPABILITY_KEYS)){const enabled=config.capabilities?.[key];if(enabled!==void 0)craft[nativeKey]=enabled}if(config.capabilities?.backgroundLocation)craft.enableGeolocation=!0;return craft}export function validateAndroidMobileConfig(config){if(!config.appName?.trim())throw Error("config/mobile.ts must define android.appName");if(!/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$/.test(config.packageName))throw Error(`Invalid Android package name: ${config.packageName}`);if(config.url&&config.webAssets)throw Error("Choose either android.url or android.webAssets in config/mobile.ts, not both");if(!config.url&&!config.webAssets)throw Error("config/mobile.ts must define android.url or android.webAssets");if(config.fallbackWebAssets&&!config.url)throw Error("android.fallbackWebAssets requires android.url");if(config.url){const normalized=normalizeMobileUrl(config.url),url=new URL(normalized),isLocal=["localhost","127.0.0.1","10.0.2.2"].includes(url.hostname);if(url.protocol!=="https:"&&!isLocal)throw Error("android.url must use HTTPS outside local development")}if(config.capabilities?.healthConnect&&(config.minSdk??26)<26)throw Error("Android Health Connect requires android.minSdk 26 or newer");for(const scheme of config.urlSchemes??[])if(!/^[a-z][a-z0-9+.-]*$/i.test(scheme))throw Error(`Invalid Android URL scheme: ${scheme}`)}
|
|
1
|
+
import{NATIVE_APP_ROUTE,normalizeMobileUrl}from"./ios-config";const CAPABILITY_KEYS={speechRecognition:"enableSpeechRecognition",haptics:"enableHaptics",share:"enableShare",camera:"enableCamera",biometric:"enableBiometric",pushNotifications:"enablePushNotifications",secureStorage:"enableSecureStorage",geolocation:"enableGeolocation",backgroundLocation:"enableBackgroundLocation",keepAwake:"enableKeepAwake",deepLinks:"enableDeepLinks",healthConnect:"enableHealthConnect",localNetwork:"enableLocalNetwork"};export const CRAFT_ANDROID_FLOORS={nativeShell:"0.0.169",healthConnect:"0.0.169",backgroundRefresh:"0.0.169",appBundle:"0.0.169"};export function androidCraftFeatures(config,options={}){const features=[];if(config.renderer==="native"&&Object.keys(config.nativeScreens??{}).length)features.push("nativeShell");if(config.capabilities?.healthConnect&&config.renderer==="native")features.push("healthConnect");if(config.backgroundRefresh?.enabled)features.push("backgroundRefresh");if(options.appBundle)features.push("appBundle");return features}export function assertCraftSupportsAndroid(config,version,source,options={}){const missing=androidCraftFeatures(config,options).filter((feature)=>!Bun.semver.satisfies(version,`>=${CRAFT_ANDROID_FLOORS[feature]}`));if(!missing.length)return;const needed=missing.map((feature)=>CRAFT_ANDROID_FLOORS[feature]).reduce((max,next)=>Bun.semver.order(next,max)>0?next:max,"0.0.0");throw Error(`The Craft Android builder is craft-native ${version} (${source}), which would build the app without ${missing.map((feature)=>`${feature} (needs >= ${CRAFT_ANDROID_FLOORS[feature]})`).join(", ")}. Install craft-native >= ${needed}: look for an older copy nested under @stacksjs/mobile in bun.lock, or raise the app's own craft-native pin.`)}export function toCraftAndroidConfig(config){const devServerURL=normalizeMobileUrl(config.url),trustedOrigins=new Set(config.trustedOrigins??[]);if(devServerURL)trustedOrigins.add(new URL(devServerURL).origin);const native=config.renderer==="native",craft={appName:config.appName,packageName:config.packageName,version:config.version,versionCode:config.versionCode,minSdk:config.minSdk,targetSdk:config.targetSdk,darkMode:config.darkMode,appearance:config.appearance,backgroundColor:config.backgroundColor,backgroundColorDark:config.backgroundColorDark,devServerURL,trustedOrigins:[...trustedOrigins],urlSchemes:config.urlSchemes,appIconPath:config.appIcon,googleServicesFile:config.googleServicesFile,renderer:config.renderer,nativeScreens:native?config.nativeScreens:void 0,nativeApp:native&&config.nativeApp?NATIVE_APP_ROUTE:void 0,tabs:native?config.tabs:void 0,backgroundRefresh:native?config.backgroundRefresh:void 0,healthConnect:config.capabilities?.healthConnect?config.healthConnect:void 0,privacyPolicyURL:config.privacyPolicyUrl};for(const[key,nativeKey]of Object.entries(CAPABILITY_KEYS)){const enabled=config.capabilities?.[key];if(enabled!==void 0)craft[nativeKey]=enabled}if(config.capabilities?.backgroundLocation)craft.enableGeolocation=!0;for(const key of Object.keys(craft))if(craft[key]===void 0)delete craft[key];return craft}export function validateAndroidMobileConfig(config){if(!config.appName?.trim())throw Error("config/mobile.ts must define android.appName");if(!/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$/.test(config.packageName))throw Error(`Invalid Android package name: ${config.packageName}`);if(config.renderer!==void 0&&config.renderer!=="web"&&config.renderer!=="native")throw Error(`android.renderer must be 'web' or 'native', not ${String(config.renderer)}`);if(config.renderer==="native"){if(!Object.keys(config.nativeScreens??{}).length)throw Error("android.renderer 'native' draws every screen natively: list them in android.nativeScreens");if(config.webAssets)throw Error("android.renderer 'native' has no web view to show android.webAssets in: set android.url to the app's site instead");if(config.fallbackWebAssets)throw Error("android.fallbackWebAssets is the web view's offline page; android.renderer 'native' has no web view");if(!config.url)throw Error("android.renderer 'native' needs android.url: the app's site, where its API answers")}else{if(config.url&&config.webAssets)throw Error("Choose either android.url or android.webAssets in config/mobile.ts, not both");if(!config.url&&!config.webAssets)throw Error("config/mobile.ts must define android.url or android.webAssets");if(config.fallbackWebAssets&&!config.url)throw Error("android.fallbackWebAssets requires android.url")}if(config.nativeApp&&config.renderer!=="native")throw Error("android.nativeApp runs beside native screens: set android.renderer to 'native'");for(const tab of config.tabs??[])if(!tab.id?.startsWith("/"))throw Error(`An android.tabs entry needs an id that is an app path, like /m (got ${String(tab.id)})`);if(config.url){const normalized=normalizeMobileUrl(config.url),url=new URL(normalized),isLocal=["localhost","127.0.0.1","10.0.2.2"].includes(url.hostname);if(url.protocol!=="https:"&&!isLocal)throw Error("android.url must use HTTPS outside local development")}if(config.capabilities?.healthConnect&&(config.minSdk??26)<26)throw Error("Android Health Connect requires android.minSdk 26 or newer");if(config.healthConnect&&!config.capabilities?.healthConnect)throw Error("android.healthConnect lists Health Connect data, but android.capabilities.healthConnect is off");const minutes=config.backgroundRefresh?.minimumIntervalMinutes;if(minutes!==void 0&&(!Number.isFinite(minutes)||minutes<15))throw Error("android.backgroundRefresh.minimumIntervalMinutes is at least 15 (WorkManager's shortest period)");for(const scheme of config.urlSchemes??[])if(!/^[a-z][a-z0-9+.-]*$/i.test(scheme))throw Error(`Invalid Android URL scheme: ${scheme}`)}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app's icons as vectors for the Android app, which has no SF Symbols:
|
|
3
|
+
* every Lucide icon stx maps to a symbol (`LUCIDE_TO_SF`), by its own name and
|
|
4
|
+
* by the symbol, so an `<Icon>`, a tab and a bar button draw the icon the web
|
|
5
|
+
* shows. Lucide comes from the app's `@iconify-json/lucide`; an app without it
|
|
6
|
+
* gets no table, and Craft draws Android's nearest glyphs instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare function androidIconTable(root: string, lucideToSf: Record<string, string>): AndroidIconTable | null;
|
|
9
|
+
/** Writes the table next to the generated project and answers its path, or null. */
|
|
10
|
+
export declare function writeAndroidIconTable(root: string, output: string, lucideToSf: Record<string, string>): string | null;
|
|
11
|
+
export declare interface AndroidIconTable {
|
|
12
|
+
viewBox: number
|
|
13
|
+
strokeWidth: number
|
|
14
|
+
icons: Record<string, string>
|
|
15
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{existsSync,readFileSync,writeFileSync}from"node:fs";import{createRequire}from"node:module";import{join}from"node:path";export function androidIconTable(root,lucideToSf){let collection;try{const file=createRequire(join(root,"package.json")).resolve("@iconify-json/lucide/icons.json");collection=JSON.parse(readFileSync(file,"utf8"))}catch{return null}const bodyOf=(name)=>{const icon=collection.icons?.[name];if(icon?.body)return icon.body;const parent=collection.aliases?.[name]?.parent;return parent?collection.icons?.[parent]?.body:void 0},icons={};for(const[name,symbol]of Object.entries(lucideToSf)){const body=bodyOf(name);if(!body)continue;icons[name]=body;icons[symbol]??=body}return{viewBox:collection.width??24,strokeWidth:2,icons}}export function writeAndroidIconTable(root,output,lucideToSf){const table=androidIconTable(root,lucideToSf);if(!table||!Object.keys(table.icons).length)return null;const file=join(output,"craft-icons.json");writeFileSync(file,`${JSON.stringify(table)}
|
|
2
|
+
`);return existsSync(file)?file:null}
|
package/dist/build/android.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{existsSync,readFileSync,writeFileSync}from"node:fs";import{pathToFileURL}from"node:url";import process from"node:process";import{log}from"@stacksjs/cli";import{projectPath,storagePath}from"@stacksjs/path";import{craftBuilderSpecifier}from"./craft-entry";import{resolveCraftBuilderProvenance}from"./craft-provenance";import{toCraftAndroidConfig,validateAndroidMobileConfig}from"./android-config";import{resolveMobilePath}from"./ios-config";process.exitCode=1;
|
|
1
|
+
import{existsSync,readFileSync,writeFileSync}from"node:fs";import{pathToFileURL}from"node:url";import process from"node:process";import{log}from"@stacksjs/cli";import{projectPath,storagePath}from"@stacksjs/path";import{craftBuilderSpecifier,craftBuilderVersion}from"./craft-entry";import{resolveCraftBuilderProvenance}from"./craft-provenance";import{assertCraftSupportsAndroid,toCraftAndroidConfig,validateAndroidMobileConfig}from"./android-config";import{resolveMobilePath}from"./ios-config";import{compileNativeScreens}from"./native-screens";import{writeAndroidIconTable}from"./android-icons";process.exitCode=1;function craftAndroidEntry(){const explicit=process.env.CRAFT_ANDROID_SRC;return explicit?pathToFileURL(explicit).href:craftBuilderSpecifier("android",projectPath())}async function loadCraftAndroidBuilder(){try{return await import(craftAndroidEntry())}catch(error){throw Error("Craft Android builder is unavailable. Install the current craft-native package or set CRAFT_ANDROID_SRC to packages/android/src/index.ts in a Craft checkout.",{cause:error})}}const configPath=projectPath("config/mobile.ts");if(!existsSync(configPath))throw Error("Missing config/mobile.ts. Add an android section before running `buddy build:android`.");const configModule=await import(`${pathToFileURL(configPath).href}?t=${Date.now()}`),config=configModule.default.android;if(!config)throw Error("config/mobile.ts must define an android section");validateAndroidMobileConfig(config);const output=resolveMobilePath(projectPath(),config.output)??storagePath("framework/mobile/android"),webAssets=resolveMobilePath(projectPath(),config.webAssets),fallbackWebAssets=resolveMobilePath(projectPath(),config.fallbackWebAssets),craftConfig=toCraftAndroidConfig(config);craftConfig.appIconPath=resolveMobilePath(projectPath(),config.appIcon);craftConfig.googleServicesFile=resolveMobilePath(projectPath(),config.googleServicesFile);if(process.env.NODE_ENV==="production"&&config.capabilities?.pushNotifications&&!craftConfig.googleServicesFile)throw Error("Production Android push notifications require android.googleServicesFile in config/mobile.ts");const appBundle=process.env.STACKS_ANDROID_BUNDLE==="1",release=appBundle||process.env.NODE_ENV==="production",native=config.renderer==="native",nativeBundle=native?await compileNativeScreens(config,projectPath(),output,void 0,"android"):null;if(nativeBundle){for(const diagnostic of nativeBundle.diagnostics??[])log.warn(`${diagnostic.file?`${diagnostic.file}: `:""}${diagnostic.message}`);log.info(`Compiled ${Object.keys(config.nativeScreens??{}).length} native screen path(s) into ${nativeBundle.outFile}`)}const{LUCIDE_TO_SF}=native?await import("@stacksjs/stx/native"):{LUCIDE_TO_SF:{}},iconsPath=native?writeAndroidIconTable(projectPath(),output,LUCIDE_TO_SF):null;if(native&&!iconsPath)log.warn("No @iconify-json/lucide in the app: Android draws its own glyphs for the screens' icons.");const builder=await loadCraftAndroidBuilder(),craftVersion=craftBuilderVersion(craftAndroidEntry(),projectPath());if(craftVersion)assertCraftSupportsAndroid(config,craftVersion.version,craftVersion.manifest,{appBundle});else log.warn(`Could not read the craft-native version behind ${craftAndroidEntry()}, so the build cannot check that it supports what config/mobile.ts asks for.`);await builder.init({name:config.appName,packageName:config.packageName,output,config:craftConfig});await builder.build(native?{output,nativeBundlePath:nativeBundle.outFile,iconsPath:iconsPath??void 0,release,bundle:appBundle,compile:process.env.STACKS_ANDROID_SKIP_GRADLE!=="1"}:{output,htmlPath:webAssets??fallbackWebAssets,devServer:craftConfig.devServerURL,release,bundle:appBundle,compile:process.env.STACKS_ANDROID_SKIP_GRADLE!=="1"});const sourceRevision=Bun.spawnSync(["git","rev-parse","HEAD"],{cwd:projectPath()}).stdout.toString().trim(),generatedConfig=JSON.parse(readFileSync(`${output}/craft.config.json`,"utf8"));writeFileSync(`${output}/stacks-mobile.json`,`${JSON.stringify({schemaVersion:"1.0.0",platform:"android",sourceRevision,source:native?{kind:"native",site:craftConfig.devServerURL}:webAssets?{kind:"bundled",path:webAssets}:{kind:"remote",url:craftConfig.devServerURL,fallback:fallbackWebAssets?{kind:"bundled",path:fallbackWebAssets}:void 0},capabilities:config.capabilities??{},builder:resolveCraftBuilderProvenance(process.env.CRAFT_ANDROID_SRC),craft:generatedConfig},null,2)}
|
|
2
2
|
`);log.success(`Built the Craft Android project in ${output}`);await log.flush();process.exitCode=0;
|
|
@@ -4,16 +4,16 @@ import type { IosMobileConfig } from '@stacksjs/types';
|
|
|
4
4
|
* `nativeScreens`, in `nativeScreensDir` (`resources/native` by default).
|
|
5
5
|
* A screen named twice, for two paths, is compiled once.
|
|
6
6
|
*/
|
|
7
|
-
export declare function nativeScreenFiles(config: Pick<IosMobileConfig, 'nativeScreens' | 'nativeScreensDir'>, root: string): Record<string, string>;
|
|
7
|
+
export declare function nativeScreenFiles(config: Pick<IosMobileConfig, 'nativeScreens' | 'nativeScreensDir'>, root: string, section?: 'ios' | 'android'): Record<string, string>;
|
|
8
8
|
/** The app script's file (`nativeApp`), or null when the app has none. */
|
|
9
|
-
export declare function nativeAppFile(config: Pick<IosMobileConfig, 'nativeApp'>, root: string): string | null;
|
|
9
|
+
export declare function nativeAppFile(config: Pick<IosMobileConfig, 'nativeApp'>, root: string, section?: 'ios' | 'android'): string | null;
|
|
10
10
|
/**
|
|
11
11
|
* Compiles the app's native screens into the one bundle Craft runs them from,
|
|
12
12
|
* and answers its path; nothing when the app has none. The bundle goes in the
|
|
13
13
|
* generated project's own folder, so a rebuild replaces it and git never sees
|
|
14
14
|
* it.
|
|
15
15
|
*/
|
|
16
|
-
export declare function compileNativeScreens(config: Pick<IosMobileConfig, 'nativeScreens' | 'nativeScreensDir' | 'nativeApp'>, root: string, output: string, compile?: CompileNativeBundle): Promise<{ outFile: string, diagnostics: NativeBundleResult['diagnostics'] } | null>;
|
|
16
|
+
export declare function compileNativeScreens(config: Pick<IosMobileConfig, 'nativeScreens' | 'nativeScreensDir' | 'nativeApp'>, root: string, output: string, compile?: CompileNativeBundle, section?: 'ios' | 'android'): Promise<{ outFile: string, diagnostics: NativeBundleResult['diagnostics'] } | null>;
|
|
17
17
|
/** What stx's native compiler answers (`@stacksjs/stx/native`). */
|
|
18
18
|
declare interface NativeBundleResult {
|
|
19
19
|
outFile: string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync,mkdirSync}from"node:fs";import{join,resolve}from"node:path";export function nativeScreenFiles(config,root){const dir=resolve(root,config.nativeScreensDir??"resources/native"),files={};for(const name of Object.values(config.nativeScreens??{})){if(files[name])continue;const file=join(dir,`${name}.stx`);if(!existsSync(file))throw Error(
|
|
1
|
+
import{existsSync,mkdirSync}from"node:fs";import{join,resolve}from"node:path";export function nativeScreenFiles(config,root,section="ios"){const dir=resolve(root,config.nativeScreensDir??"resources/native"),files={};for(const name of Object.values(config.nativeScreens??{})){if(files[name])continue;const file=join(dir,`${name}.stx`);if(!existsSync(file))throw Error(`${section}.nativeScreens names the screen "${name}", but ${file} does not exist.`);files[name]=file}return files}export function nativeAppFile(config,root,section="ios"){if(!config.nativeApp)return null;const file=resolve(root,config.nativeApp);if(!existsSync(file))throw Error(`${section}.nativeApp names ${config.nativeApp}, but ${file} does not exist.`);return file}export async function compileNativeScreens(config,root,output,compile,section="ios"){const screens=nativeScreenFiles(config,root,section),names=Object.keys(screens),app=nativeAppFile(config,root,section);if(!names.length){if(app)throw Error(`${section}.nativeApp runs beside native screens: list them in ${section}.nativeScreens`);return null}const compileBundle=compile??(await import("@stacksjs/stx/native")).compileNativeBundle;mkdirSync(output,{recursive:!0});const outFile=join(output,"native-screens.js"),result=await compileBundle({screens,initialScreen:names[0],minify:!0,outFile,root,...app?{app}:{}});return{outFile:result.outFile||outFile,diagnostics:result.diagnostics??[]}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.174",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -66,53 +66,53 @@
|
|
|
66
66
|
"prepublishOnly": "bun run build"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@stacksjs/action-runner": "0.75.
|
|
70
|
-
"@stacksjs/ai": "0.75.
|
|
71
|
-
"@stacksjs/analytics": "0.75.
|
|
72
|
-
"@stacksjs/api": "0.75.
|
|
73
|
-
"@stacksjs/auth": "0.75.
|
|
74
|
-
"@stacksjs/build": "0.75.
|
|
69
|
+
"@stacksjs/action-runner": "0.75.174",
|
|
70
|
+
"@stacksjs/ai": "0.75.174",
|
|
71
|
+
"@stacksjs/analytics": "0.75.174",
|
|
72
|
+
"@stacksjs/api": "0.75.174",
|
|
73
|
+
"@stacksjs/auth": "0.75.174",
|
|
74
|
+
"@stacksjs/build": "0.75.174",
|
|
75
75
|
"@stacksjs/bumpx": "^0.2.21",
|
|
76
76
|
"@stacksjs/bunpress": "^0.2.15",
|
|
77
|
-
"@stacksjs/cli": "0.75.
|
|
78
|
-
"@stacksjs/cloud": "0.75.
|
|
79
|
-
"@stacksjs/cms": "0.75.
|
|
77
|
+
"@stacksjs/cli": "0.75.174",
|
|
78
|
+
"@stacksjs/cloud": "0.75.174",
|
|
79
|
+
"@stacksjs/cms": "0.75.174",
|
|
80
80
|
"@stacksjs/components": "^0.2.483",
|
|
81
|
-
"@stacksjs/config": "0.75.
|
|
82
|
-
"@stacksjs/database": "0.75.
|
|
83
|
-
"@stacksjs/desktop-build": "0.75.
|
|
84
|
-
"@stacksjs/dns": "0.75.
|
|
85
|
-
"@stacksjs/enums": "0.75.
|
|
86
|
-
"@stacksjs/env": "0.75.
|
|
87
|
-
"@stacksjs/error-handling": "0.75.
|
|
81
|
+
"@stacksjs/config": "0.75.174",
|
|
82
|
+
"@stacksjs/database": "0.75.174",
|
|
83
|
+
"@stacksjs/desktop-build": "0.75.174",
|
|
84
|
+
"@stacksjs/dns": "0.75.174",
|
|
85
|
+
"@stacksjs/enums": "0.75.174",
|
|
86
|
+
"@stacksjs/env": "0.75.174",
|
|
87
|
+
"@stacksjs/error-handling": "0.75.174",
|
|
88
88
|
"@stacksjs/gitit": "^0.2.5",
|
|
89
|
-
"@stacksjs/i18n": "0.75.
|
|
90
|
-
"@stacksjs/image": "0.75.
|
|
91
|
-
"@stacksjs/logging": "0.75.
|
|
89
|
+
"@stacksjs/i18n": "0.75.174",
|
|
90
|
+
"@stacksjs/image": "0.75.174",
|
|
91
|
+
"@stacksjs/logging": "0.75.174",
|
|
92
92
|
"@stacksjs/logsmith": "^0.2.11",
|
|
93
|
-
"@stacksjs/mobile": "0.75.
|
|
94
|
-
"@stacksjs/orm": "0.75.
|
|
95
|
-
"@stacksjs/path": "0.75.
|
|
96
|
-
"@stacksjs/payments": "0.75.
|
|
97
|
-
"@stacksjs/queue": "0.75.
|
|
98
|
-
"@stacksjs/registry": "0.75.
|
|
99
|
-
"@stacksjs/router": "0.75.
|
|
93
|
+
"@stacksjs/mobile": "0.75.174",
|
|
94
|
+
"@stacksjs/orm": "0.75.174",
|
|
95
|
+
"@stacksjs/path": "0.75.174",
|
|
96
|
+
"@stacksjs/payments": "0.75.174",
|
|
97
|
+
"@stacksjs/queue": "0.75.174",
|
|
98
|
+
"@stacksjs/registry": "0.75.174",
|
|
99
|
+
"@stacksjs/router": "0.75.174",
|
|
100
100
|
"@stacksjs/rpx": "^0.11.54",
|
|
101
|
-
"@stacksjs/scheduler": "0.75.
|
|
102
|
-
"@stacksjs/search-engine": "0.75.
|
|
103
|
-
"@stacksjs/security": "0.75.
|
|
104
|
-
"@stacksjs/server": "0.75.
|
|
105
|
-
"@stacksjs/sites": "0.75.
|
|
106
|
-
"@stacksjs/storage": "0.75.
|
|
107
|
-
"@stacksjs/strings": "0.75.
|
|
101
|
+
"@stacksjs/scheduler": "0.75.174",
|
|
102
|
+
"@stacksjs/search-engine": "0.75.174",
|
|
103
|
+
"@stacksjs/security": "0.75.174",
|
|
104
|
+
"@stacksjs/server": "0.75.174",
|
|
105
|
+
"@stacksjs/sites": "0.75.174",
|
|
106
|
+
"@stacksjs/storage": "0.75.174",
|
|
107
|
+
"@stacksjs/strings": "0.75.174",
|
|
108
108
|
"@stacksjs/stx": "^0.2.483",
|
|
109
109
|
"@stacksjs/tlsx": "^0.13.19",
|
|
110
110
|
"@stacksjs/ts-cloud": "^0.16.52",
|
|
111
111
|
"@stacksjs/ts-md": "^0.1.1",
|
|
112
|
-
"@stacksjs/tunnel": "0.75.
|
|
113
|
-
"@stacksjs/types": "0.75.
|
|
114
|
-
"@stacksjs/utils": "0.75.
|
|
115
|
-
"@stacksjs/whois": "0.75.
|
|
112
|
+
"@stacksjs/tunnel": "0.75.174",
|
|
113
|
+
"@stacksjs/types": "0.75.174",
|
|
114
|
+
"@stacksjs/utils": "0.75.174",
|
|
115
|
+
"@stacksjs/whois": "0.75.174",
|
|
116
116
|
"bun-plugin-stx": "^0.2.483"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@stacksjs/validation": "0.75.
|
|
131
|
+
"@stacksjs/validation": "0.75.174",
|
|
132
132
|
"better-dx": "^0.2.24"
|
|
133
133
|
}
|
|
134
134
|
}
|