Skip to content

[💡] - Library system #31

@obfuscatedgenerated

Description

@obfuscatedgenerated

Creating some function exposed on the ollieos module to import a file in a script from a file on the OS file system (can be done manually but nicer if it was available with one function acting like JS import())

Makes the dependency system actually useful. Could even see if we can convert types as an object somehow, using webpack in some way as it wrangles all exports to the end of its bundle

Example
await ollieos_import("/usr/bin/mylib/string.js")

Or if maybe even await ollieos_import("mylib/string.js") to default to pkg dir if not specified

Have all sorts of resolution (such as no need for .js, have it resolve the prefixed names that pkgbuild makes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting effort estimateThis issue needs its effort setawaiting triageThis issue needs its priority setfeatureNew feature or requestunreviewedThis issue hasn't yet been reviewed by a collaborator

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions