Skip to content

Commit eb34bd5

Browse files
committed
chore: set base-url of config to src
1 parent 28592f7 commit eb34bd5

10 files changed

Lines changed: 59 additions & 59 deletions

File tree

playground/examples/SolarExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createEffect, createMemo, createSignal, Show, type ParentProps, type Ref } from "solid-js"
2-
import type { Meta } from "src/types.ts"
32
import * as THREE from "three"
43
import { Canvas, createT, Entity, useFrame } from "../../src/index.ts"
4+
import type { Meta } from "../../src/types.ts"
55
import { OrbitControls } from "../controls/OrbitControls.tsx"
66

77
const T = createT(THREE)

pnpm-lock.yaml

Lines changed: 51 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/data-structure/augmented-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Accessor } from "solid-js"
2-
import type { Meta } from "src/types.ts"
2+
import type { Meta } from "../types.ts"
33
import { augment } from "../utils.ts"
44
import { Stack } from "./stack.ts"
55

src/testing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type Accessor, type JSX, createRoot, mergeProps } from "solid-js"
2-
import { useRef } from "src/utils.ts"
32
import type { CanvasProps } from "../canvas.tsx"
43
import { createThree } from "../create-three.tsx"
4+
import { useRef } from "../utils.ts"
55
import { WebGL2RenderingContext } from "./webgl2-rendering-context.ts"
66

77
/**

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Accessor, Context, JSX } from "solid-js"
22
import { createRenderEffect, type MergeProps, mergeProps, onCleanup, type Ref } from "solid-js"
3-
import type { CameraKind, Constructor, Loader, Meta } from "src/types.ts"
43
import {
54
Camera,
65
Material,
@@ -11,6 +10,7 @@ import {
1110
Vector3,
1211
} from "three"
1312
import { $S3C } from "./constants.ts"
13+
import type { CameraKind, Constructor, Loader, Meta } from "./types.ts"
1414
import type { Measure } from "./utils/use-measure.ts"
1515

1616
/**********************************************************************************/

tests/core/hooks.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { buildGraph } from "src/utils.ts"
21
import * as THREE from "three"
32
import { describe, expect, it } from "vitest"
43
import { createT, useFrame, useThree } from "../../src/index.ts"
54
import { test } from "../../src/testing/index.tsx"
65
import type { Context } from "../../src/types.ts"
6+
import { buildGraph } from "../../src/utils.ts"
77
import { asyncUtils } from "../utils/async-utils.ts"
88

99
const resolvers: (() => void)[] = []

tests/core/renderer.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ describe("renderer", () => {
196196
<>
197197
<T.Mesh ref={immutableRef} />
198198
<T.Mesh ref={mutableRef} />
199-
{/* @ts-expect-error TODO: fix type-error */}
200199
<T.Mesh ref={r => (mutableRefSpecific = r)} />
201200
</>
202201
)

tests/web/canvas.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("web Canvas", () => {
2323
let ref: Context
2424

2525
render(() => (
26-
<TestCanvas ref={ref}>
26+
<TestCanvas ref={ref!}>
2727
<T.Group />
2828
</TestCanvas>
2929
))

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"allowImportingTsExtensions": true,
44
"allowSyntheticDefaultImports": true,
5-
"baseUrl": ".",
5+
"baseUrl": "src",
66
"esModuleInterop": true,
77
"forceConsistentCasingInFileNames": true,
88
"isolatedModules": true,

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-expect-error
12
import { solidPlugin } from "esbuild-plugin-solid"
23
import { defineConfig, type Options } from "tsup"
34

0 commit comments

Comments
 (0)