Skip to content

Commit

Permalink
Add back sideEffects and elements folder. (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated authored Jan 30, 2025
1 parent 28ede12 commit ddbe6d4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion moq-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "moq-web"
authors = ["Luke Curley <[email protected]>"]
edition = "2021"
version = "0.4.0"
version = "0.4.1"
license = "MIT OR Apache-2.0"
repository = "https://github.com/kixelated/moq-web"
description = "Web implementation for MoQ utilizing WebAssembly+Typescript"
Expand Down
4 changes: 2 additions & 2 deletions moq-web/src/meet/index.tsx → moq-web/src/element/meet.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as Rust from "@rust";
import type { MoqWatchElement } from "..";

import { Element, attribute, element } from "../element/component";
import { jsx } from "../element/jsx";
import { Element, attribute, element } from "./component";
import { jsx } from "./jsx";

import "@shoelace-style/shoelace/dist/components/spinner/spinner.js";
import "@shoelace-style/shoelace/dist/components/alert/alert.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as Rust from "@rust";

import { Element, attribute, element } from "../element/component";
import { Element, attribute, element } from "./component";

import { jsx, jsxFragment } from "../element/jsx";
import { jsx, jsxFragment } from "./jsx";

import "@shoelace-style/shoelace/dist/components/radio-group/radio-group.js";
import "@shoelace-style/shoelace/dist/components/radio-button/radio-button.js";
Expand Down
6 changes: 3 additions & 3 deletions moq-web/src/watch/index.tsx → moq-web/src/element/watch.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as Rust from "@rust";
import * as Comlink from "comlink";
import type { Bridge } from "./bridge";
import type { Bridge } from "../watch/bridge";

import { Element, attribute, element } from "../element/component";
import { jsx } from "../element/jsx";
import { Element, attribute, element } from "./component";
import { jsx } from "./jsx";

import "@shoelace-style/shoelace/dist/components/button/button.js";
import "@shoelace-style/shoelace/dist/components/icon/icon.js";
Expand Down
6 changes: 3 additions & 3 deletions moq-web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { MoqWatchElement } from "./watch";
export { MoqMeetElement } from "./meet";
export { MoqPublishElement } from "./publish";
export { MoqWatchElement } from "./element/watch";
export { MoqMeetElement } from "./element/meet";
export { MoqPublishElement } from "./element/publish";
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"import": "./dist/element/video.js"
},
"./publish": {
"types": "./dist/publish/index.d.ts",
"import": "./dist/publish/index.js"
"types": "./dist/element/publish.d.ts",
"import": "./dist/element/publish.js"
},
"./watch": {
"types": "./dist/watch/index.d.ts",
"import": "./dist/watch/index.js"
"types": "./dist/element/watch.d.ts",
"import": "./dist/element/watch.js"
},
"./meet": {
"types": "./dist/meet/index.d.ts",
"import": "./dist/meet/index.js"
"types": "./dist/element/meet.d.ts",
"import": "./dist/element/meet.js"
}
},
"sideEffects": ["./dist/rust.*", "./dist/snippets/*"],
"sideEffects": ["./dist/rust.*", "./dist/snippets/*", "./dist/element/*"],
"files": ["dist", "README.md", "LICENSE*"],
"scripts": {
"build": "wasm-pack build --out-dir ../dist moq-web --release --scope kixelated --out-name rust && rm dist/.gitignore dist/package.json && tsc && tsc-alias",
Expand Down

0 comments on commit ddbe6d4

Please sign in to comment.