fix: support roblox-ts modules

This commit is contained in:
Richard 2024-10-12 19:24:21 -07:00
parent 3b0fa2d596
commit 175717f47e
6 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{ {
"name": "charm-sync", "name": "CharmSync",
"tree": { "tree": {
"$path": "src" "$path": "src"
} }

View file

@ -1,5 +1,5 @@
{ {
"name": "charm", "name": "Charm",
"tree": { "tree": {
"$path": "src" "$path": "src"
} }

View file

@ -1,5 +1,5 @@
{ {
"name": "react-charm", "name": "ReactCharm",
"tree": { "tree": {
"$path": "src" "$path": "src"
} }

View file

@ -1,5 +1,7 @@
local Charm = require(script.Parent.Charm) local Charm = require(script.Parent.Charm)
local React = require(script.Parent.React) local React = if script.Parent:FindFirstChild("react")
then require(script.Parent.react) :: never
else require(script.Parent.React)
--[=[ --[=[
A hook that subscribes to changes in the given atom or molecule. The A hook that subscribes to changes in the given atom or molecule. The

View file

@ -1,5 +1,5 @@
{ {
"name": "vide-charm", "name": "VideCharm",
"tree": { "tree": {
"$path": "src" "$path": "src"
} }

View file

@ -1,5 +1,7 @@
local Charm = require(script.Parent.Charm) local Charm = require(script.Parent.Charm)
local Vide = require(script.Parent.Vide) local Vide = if script.Parent:FindFirstChild("vide")
then require(script.Parent.vide.src) :: never
else require(script.Parent.Vide)
--[=[ --[=[
Subscribes to the state of an atom and returns a Vide source. Subscribes to the state of an atom and returns a Vide source.