mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
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:
parent
e7fe400fa8
commit
e9d8dffb02
49 changed files with 95 additions and 100 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "ReactCharm",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
1
packages/react/init.luau
Normal file
1
packages/react/init.luau
Normal file
|
|
@ -0,0 +1 @@
|
|||
return require(script.src)
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue