Skip to content

Commit 0db8d64

Browse files
committed
Add @luna/lib.native
1 parent df4de94 commit 0db8d64

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

plugins/lib.native/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@luna/lib.native",
3+
"description": "Luna library exposing helpers in native space",
4+
"author": {
5+
"name": "Inrixia",
6+
"url": "https://github.com/Inrixia",
7+
"avatarUrl": "https://2.gravatar.com/avatar/eeaffef9eb9b436dccc58c6c44c9fe8c3528e83e3bf64e1c736a68dbe8c097d3"
8+
},
9+
"exports": "./src/index.native.ts"
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const getPackage = async () => require("./app/package.json");

render/src/LunaPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class LunaPlugin {
6767
public static readonly plugins: Record<string, LunaPlugin> = {};
6868

6969
// Static list of Luna plugins that should be seperate from user plugins
70-
public static readonly corePlugins: Set<string> = new Set(["@luna/lib", "@luna/ui", "@luna/unstable", "@luna/dev"]);
70+
public static readonly corePlugins: Set<string> = new Set(["@luna/lib", "@luna/lib.native", "@luna/ui", "@luna/unstable", "@luna/dev"]);
7171

7272
static {
7373
// Ensure all plugins are unloaded on beforeunload

render/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { LunaPlugin } from "./LunaPlugin";
2222
// Wrap loading of plugins in a timeout so native/preload.ts can populate modules with @luna/core (see native/preload.ts)
2323
setTimeout(async () => {
2424
// Load lib
25+
await LunaPlugin.fromStorage({ enabled: true, url: "https://luna/luna.lib.native" });
2526
await LunaPlugin.fromStorage({ enabled: true, url: "https://luna/luna.lib" });
2627
// Load ui after lib as it depends on it.
2728
await LunaPlugin.fromStorage({ enabled: true, url: "https://luna/luna.ui" });

0 commit comments

Comments
 (0)