Skip to content

Commit 5d6918a

Browse files
committed
dedupe
1 parent 190e536 commit 5d6918a

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
example:
20+
- ./examples/basic
2021
- ./examples/vite-react
2122
- ./examples/parcel-react
2223
- ./examples/tests-rtl
24+
- ./examples/yjs
2325

2426
steps:
2527
- name: checkout

examples/tests-rtl/vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { defineConfig } from "vitest/config";
22

33
export default defineConfig({
4+
resolve: {
5+
dedupe: ["react", "react-dom", "react-redux"],
6+
},
47
test: {
58
environment: "jsdom",
69
setupFiles: ["./tests/setup.ts"],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"module": "./dist/esm/index.js",
1111
"scripts": {
1212
"test": "vitest --exclude examples",
13+
"test:examples": "npm --prefix examples/tests-rtl test",
1314
"typecheck": "tsc --noEmit",
1415
"typecheck:lib": "tsc --noEmit --project tsconfig.lib.json",
1516
"typecheck:examples": "tsc --noEmit -p examples/basic/tsconfig.json && tsc --noEmit -p examples/vite-react/tsconfig.json && tsc --noEmit -p examples/yjs/tsconfig.json && tsc --noEmit -p examples/tests-rtl/tsconfig.json",

src/store/schema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { type Operation, lift } from "effection";
22
import { type Draft, enablePatches, produceWithPatches } from "immer";
33
import { API_ACTION_PREFIX, ActionContext, emit } from "../action.js";
44
import { type BaseMiddleware, compose } from "../compose.js";
5-
import { type AnyState, ListenersContext, type Next } from "../index.js";
5+
import type { AnyState, Next } from "../types.js";
66
import { StoreUpdateContext, expectStore } from "./context.js";
77
import { slice } from "./slice/index.js";
8+
import { ListenersContext } from "./store.js";
89
import type {
910
FactoryInitial,
1011
FactoryReturn,

src/store/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Operation, Scope } from "effection";
22
import type { Draft, Immutable, Patch } from "immer";
3-
import type { BaseCtx } from "../index.js";
3+
import type { BaseCtx } from "../compose.js";
44
import type { AnyAction, AnyState } from "../types.js";
55
import type { createRun } from "./run.js";
66
import type { LoaderOutput } from "./slice/loaders.js";

0 commit comments

Comments
 (0)