diff --git a/package.json b/package.json index ae6cfbb..86c9f3a 100644 --- a/package.json +++ b/package.json @@ -32,34 +32,21 @@ "dist", "package.json" ], - "workspaces": [ - "examples/*", - "tests" - ], "scripts": { "build": "tsup", "dev": "tsup --watch", "format": "prettier --write \"**/*.{ts,tsx,md}\"", - "size": "size-limit", + "size": "pnpm --filter size size", "test": "pnpm --filter tests test", "test:ci": "pnpm --filter tests test:ci" }, "devDependencies": { - "@size-limit/preset-small-lib": "11.0.1", "prettier": "3.1.0", - "size-limit": "11.0.1", "tsup": "8.0.1", "typescript": "5.3.3", "zustand": "4.4.7" }, "peerDependencies": { "zustand": "^4.3.0" - }, - "size-limit": [ - { - "limit": "1 kB", - "path": "dist/index.js", - "gzip": true - } - ] + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8636651..db0cace 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,15 +8,9 @@ importers: .: devDependencies: - '@size-limit/preset-small-lib': - specifier: 11.0.1 - version: 11.0.1(size-limit@11.0.1) prettier: specifier: 3.1.0 version: 3.1.0 - size-limit: - specifier: 11.0.1 - version: 11.0.1 tsup: specifier: 8.0.1 version: 8.0.1(typescript@5.3.3) @@ -76,6 +70,15 @@ importers: specifier: 5.3.3 version: 5.3.3 + size: + devDependencies: + '@size-limit/preset-small-lib': + specifier: 11.0.1 + version: 11.0.1(size-limit@11.0.1) + size-limit: + specifier: 11.0.1 + version: 11.0.1 + tests: devDependencies: '@testing-library/jest-dom': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 35d5eb6..1ee0c98 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,4 @@ packages: - "examples/*" - "tests" + - "size" diff --git a/size/package.json b/size/package.json new file mode 100644 index 0000000..0fa8c3d --- /dev/null +++ b/size/package.json @@ -0,0 +1,19 @@ +{ + "name": "size", + "version": "0.0.0", + "private": true, + "scripts": { + "size": "size-limit" + }, + "devDependencies": { + "@size-limit/preset-small-lib": "11.0.1", + "size-limit": "11.0.1" + }, + "size-limit": [ + { + "limit": "1 kB", + "path": "../dist/index.js", + "gzip": true + } + ] +} diff --git a/tsconfig.json b/tsconfig.json index 1f07108..0b6ce5d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "display": "Zundo", + "display": "zundo", "compilerOptions": { "outDir": "./dist", "rootDir": "./src",