From db995fbd0cb439e4febf0b651b70c05bcde4e125 Mon Sep 17 00:00:00 2001 From: ck-tekton <33156025+charkour@users.noreply.github.com> Date: Fri, 16 Dec 2022 15:39:04 -0500 Subject: [PATCH] 0.0.2 --- package.json | 21 +++++++++++++++------ tsup.config.ts | 8 ++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 tsup.config.ts diff --git a/package.json b/package.json index 5ce1c17..a5b43db 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { - "name": "spritz", - "version": "0.0.1", - "description": "initalize zustand stores with react context", - "main": "index.js", + "name": "zustand-di", + "version": "0.0.2", + "description": "initialize zustand stores with react context", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "tsup", + "dev": "vitest --watch" }, "keywords": [ "zustand", @@ -12,11 +13,19 @@ "context", "dependency-injection" ], - "author": "", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "author": "Charles Kornoelje", "license": "MIT", + "peerDependencies": { + "react": "^18.2.0", + "zustand": "^4.1.5" + }, "devDependencies": { "@types/react": "^18.0.26", "react": "^18.2.0", + "tsup": "^6.5.0", + "typescript": "^4.9.4", "zustand": "^4.1.5" } } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..3157a8f --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.tsx'], + sourcemap: true, + clean: true, + dts: true, +}); \ No newline at end of file