Skip to content

Commit

Permalink
some updates (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Jun 2, 2024
1 parent 0ecd37a commit 98e763b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 48 deletions.
35 changes: 3 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js

# testing
package-lock.json
dist
coverage

# next.js
.next/
out/
build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

/dist
.next/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"zustand": "4.5.2"
},
"peerDependencies": {
"zustand": "^4.3.0"
"zustand": "^4.3.0 || ^5.0.0"
},
"peerDependenciesMeta": {
"zustand": {
Expand Down
4 changes: 2 additions & 2 deletions tests/__tests__/react.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ describe('React Re-renders when state changes', () => {
});

// React Code from examples/web/pages/reactive.tsx
import { TemporalState, temporal } from '../../src';
import { StoreApi, useStore, create } from 'zustand';
import { type TemporalState, temporal } from '../../src';
import { type StoreApi, useStore, create } from 'zustand';

interface MyState {
bears: number;
Expand Down
1 change: 0 additions & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"microdiff": "1.4.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"vite": "5.2.12",
"vitest": "1.6.0",
"vitest-localstorage-mock": "0.1.2",
"zustand": "4.5.2"
Expand Down
3 changes: 1 addition & 2 deletions tests/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
Expand Down
32 changes: 22 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "zundo",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"target": "ESNext",
"baseUrl": ".",
"composite": false,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
"module": "esnext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noEmit": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
"outDir": "dist",
"rootDir": ".",
"skipLibCheck": true,
"strict": true
"strict": true,
"target": "esnext",
"verbatimModuleSyntax": true
},
"exclude": ["node_modules", "dist"],
"include": ["src"]
"display": "zundo",
"exclude": [
"node_modules",
"dist"
],
"include": [
"src/**/*",
"tests/**/*"
]
}

0 comments on commit 98e763b

Please sign in to comment.