build: remove project json files (#46)

* build: remove project json files

Including Rojo project files in packages interferes with certain Wally packages that depend on roblox-ts packages

* build: create project files for release
This commit is contained in:
richard 2025-03-09 15:33:04 -07:00 • committed by GitHub
parent e7fe400fa8
commit e9d8dffb02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 95 additions and 100 deletions

View file

@ -1,6 +0,0 @@
{
"name": "ReactCharm",
"tree": {
"$path": "src"
}
}

1
packages/react/init.luau Normal file
View file

@ -0,0 +1 @@
return require(script.src)

View file

@ -4,8 +4,8 @@
"description": "React bindings for Charm",
"repository": "littensy/charm",
"license": "MIT",
"main": "src/init.luau",
"types": "src/index.d.ts",
"main": "init.luau",
"types": "index.d.ts",
"scripts": {
"prepare": "cp ../../LICENSE.md . && cp ../../README.md .",
"publish:wally": "wally publish"

View file

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

View file

@ -3,7 +3,9 @@ name = "littensy/react-charm"
version = "0.2.0"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
exclude = ["package.json", "node_modules"]
include = ["LICENSE.md"]
[dependencies]
Charm = "littensy/charm@^0.9"
charm = "littensy/charm@^0.9"
React = "jsdotlua/react@^17"