Skip to content

Commit 6afcdae

Browse files
committed
Fix paths
1 parent 6d1fa50 commit 6afcdae

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

demo/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useCallback, useMemo, useState } from "react";
22
import { createRoot } from "react-dom/client";
33

4-
import { ReactP5Wrapper } from "../src/main.tsx";
4+
import { ReactP5Wrapper } from "@/main.tsx";
55
import "./demo.css";
66
import { sketch as box } from "./sketches/box";
77
import { sketch as plane } from "./sketches/plane";

src/components/ReactP5Wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import { propsAreEqual } from "@utils/propsAreEqual";
33

4-
const ReactP5WrapperGuard = React.lazy(() => import("./ReactP5WrapperGuard"));
4+
const ReactP5WrapperGuard = React.lazy(() => import("@components/ReactP5WrapperGuard"));
55

66
export const ReactP5Wrapper = React.memo(ReactP5WrapperGuard, propsAreEqual);

src/components/ReactP5WrapperGuard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ReactNode } from "react";
77
import { FallbackProps } from "react-error-boundary";
88

99
const ReactP5WrapperWithSketch = React.lazy(
10-
() => import("./ReactP5WrapperWithSketch")
10+
() => import("@components/ReactP5WrapperWithSketch")
1111
);
1212

1313
const ErrorBoundary = React.lazy(() =>

src/main.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export { ReactP5Wrapper } from "./components/ReactP5Wrapper";
2-
export { P5WrapperClassName } from "./constants/P5WrapperClassName";
3-
export { type P5CanvasInstance } from "./contracts/P5CanvasInstance";
4-
export { type P5WrapperProps } from "./contracts/P5WrapperProps";
5-
export { type Sketch } from "./contracts/Sketch";
6-
export { type SketchProps } from "./contracts/SketchProps";
1+
export { ReactP5Wrapper } from "@components/ReactP5Wrapper";
2+
export { P5WrapperClassName } from "@constants/P5WrapperClassName";
3+
export { type P5CanvasInstance } from "@contracts/P5CanvasInstance";
4+
export { type P5WrapperProps } from "@contracts/P5WrapperProps";
5+
export { type Sketch } from "@contracts/Sketch";
6+
export { type SketchProps } from "@contracts/SketchProps";

src/utils/updateCanvasInstance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { type Sketch } from "@contracts/Sketch";
33
import { type SketchProps } from "@contracts/SketchProps";
44
import { type WrapperRef } from "@contracts/WrapperRef";
55

6-
import { createCanvasInstance } from "./createCanvasInstance";
7-
import { removeCanvasInstance } from "./removeCanvasInstance";
6+
import { createCanvasInstance } from "@utils/createCanvasInstance";
7+
import { removeCanvasInstance } from "@utils/removeCanvasInstance";
88

99
export function updateCanvasInstance<Props extends SketchProps>(
1010
canvasInstanceRef: CanvasInstanceRef<Props>,

tests/exports.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createElement, isValidElement } from "react";
22
import { assert, describe, expect, it, vi } from "vitest";
33

4-
import { P5WrapperClassName, ReactP5Wrapper } from "../src/main";
4+
import { P5WrapperClassName, ReactP5Wrapper } from "@/main";
55

66
describe("Exports", () => {
77
describe("P5WrapperClassName", () => {

tests/utils/removeCanvasInstance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { removeCanvasInstance } from "@utils/removeCanvasInstance";
44
import { createRef } from "react";
55
import { describe, expect, it, vi } from "vitest";
66

7-
import { SketchProps } from "../../src/main";
7+
import { SketchProps } from "@/main";
88

99
describe("removeCanvasInstance", () => {
1010
it("Calls the remove method on the canvas if it exists", () => {

tests/utils/updateCanvasInstance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { updateCanvasInstance } from "@utils/updateCanvasInstance";
66
import { createRef } from "react";
77
import { describe, expect, it, vi } from "vitest";
88

9-
import { SketchProps } from "../../src/main";
9+
import { SketchProps } from "@/main";
1010

1111
describe("updateCanvasInstance", () => {
1212
it("Should update a canvas instance to a new version", () => {

0 commit comments

Comments
 (0)