Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ build/
dist/
.cache/
.parcel-cache/
.turbo/

# misc
.DS_Store
Expand Down
26 changes: 8 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@
"version": "0.0.1",
"license": "MIT",
"private": true,
"preconstruct": {
"packages": [
"packages/*"
]
},
"packageManager": "[email protected]",
"scripts": {
"postinstall": "preconstruct dev",
"build": "preconstruct build",
"watch": "preconstruct watch",
"dev": "preconstruct dev",
"postinstall": "turbo build",
"build": "turbo build",
"dev": "turbo dev",
"lint": "pretty-quick --staged",
"lint:full": "eslint packages/*/src",
"ci:version": "pnpm changeset version && pnpm --filter \"leva\" --filter \"@leva-ui/*\" install --lockfile-only",
"ci:publish": "pnpm build && pnpm changeset publish",
"validate": "preconstruct validate",
"tsc": "tsc --noEmit",
"test": "vitest",
"test:run": "vitest run",
Expand All @@ -35,17 +29,12 @@
{
"name": "Leva",
"limit": "3s",
"path": "packages/leva/dist/leva.*.prod.js"
"path": "packages/leva/dist/index.mjs"
},
{
"name": "Leva Plugin Spring",
"limit": "3s",
"path": "packages/plugin-spring/dist/leva-ui-plugin-spring.*.prod.js"
},
{
"name": "Leva Plugin Dates",
"limit": "3s",
"path": "packages/plugin-dates/dist/leva-ui-plugin-dates.*.prod.js"
"path": "packages/plugin-spring/dist/index.mjs"
}
],
"repository": {
Expand All @@ -60,7 +49,6 @@
"@babel/preset-typescript": "^7.18.6",
"@changesets/cli": "^2.26.0",
"@emotion/react": "^11.10.5",
"@preconstruct/cli": "^2.3.0",
"@radix-ui/react-icons": "^1.1.1",
"@size-limit/preset-big-lib": "^8.1.0",
"@stitches/react": "^1.2.8",
Expand Down Expand Up @@ -101,6 +89,8 @@
"size-limit": "^8.1.0",
"storybook": "^10.0.2",
"tsd": "^0.25.0",
"tsdown": "^0.16.0",
"turbo": "^2.3.3",
"typescript": "catalog:",
"jsdom": "^27.1.0",
"vitest": "^4.0.8"
Expand Down
5 changes: 3 additions & 2 deletions packages/leva/headless/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"main": "dist/leva-headless.cjs.js",
"module": "dist/leva-headless.esm.js"
"main": "../dist/headless/index.cjs",
"module": "../dist/headless/index.mjs",
"types": "../dist/headless/index.d.cts"
}
52 changes: 42 additions & 10 deletions packages/leva/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,52 @@
{
"name": "leva",
"version": "0.10.1",
"main": "dist/leva.cjs.js",
"module": "dist/leva.esm.js",
"types": "dist/leva.cjs.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./plugin": {
"import": {
"types": "./dist/plugin/index.d.mts",
"default": "./dist/plugin/index.mjs"
},
"require": {
"types": "./dist/plugin/index.d.cts",
"default": "./dist/plugin/index.cjs"
}
},
"./headless": {
"import": {
"types": "./dist/headless/index.d.mts",
"default": "./dist/headless/index.mjs"
},
"require": {
"types": "./dist/headless/index.d.cts",
"default": "./dist/headless/index.cjs"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pmndrs/leva.git",
"directory": "packages/leva"
},
"bugs": "https://github.com/pmndrs/leva/issues",
"preconstruct": {
"entrypoints": [
"index.ts",
"plugin/index.ts",
"headless/index.ts"
]
"scripts": {
"dev": "tsdown --watch",
"build": "rm -rf dist && tsdown",
"clean": "rm -rf dist"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
Expand All @@ -36,6 +66,8 @@
"zustand": "^5.0.8"
},
"devDependencies": {
"@welldone-software/why-did-you-render": "^6.2.3"
"@welldone-software/why-did-you-render": "^6.2.3",
"tsdown": "^0.16.0",
"typescript": "catalog:"
}
}
6 changes: 3 additions & 3 deletions packages/leva/plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"main": "dist/leva-plugin.cjs.js",
"module": "dist/leva-plugin.esm.js",
"types": "dist/leva-plugin.cjs.d.ts"
"main": "../dist/plugin/index.cjs",
"module": "../dist/plugin/index.mjs",
"types": "../dist/plugin/index.d.cts"
}
12 changes: 12 additions & 0 deletions packages/leva/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: [
'src/index.ts',
'src/plugin/index.ts',
'src/headless/index.ts'
],
format: ['cjs', 'esm'],
dts: true,
clean: false,
})
27 changes: 23 additions & 4 deletions packages/plugin-bezier/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@leva-ui/plugin-bezier",
"version": "0.10.0",
"main": "dist/leva-ui-plugin-bezier.cjs.js",
"module": "dist/leva-ui-plugin-bezier.esm.js",
"types": "dist/leva-ui-plugin-bezier.cjs.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pmndrs/leva.git",
"directory": "packages/plugin-beziers"
},
"bugs": "https://github.com/pmndrs/leva/issues",
"scripts": {
"dev": "tsdown --watch",
"build": "rm -rf dist && tsdown",
"clean": "rm -rf dist"
},
"peerDependencies": {
"@use-gesture/react": "catalog:",
"leva": ">=0.10.1",
Expand All @@ -22,6 +39,8 @@
},
"devDependencies": {
"@use-gesture/react": "catalog:",
"leva": "workspace:*"
"leva": "workspace:*",
"tsdown": "^0.16.0",
"typescript": "catalog:"
}
}
8 changes: 8 additions & 0 deletions packages/plugin-bezier/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: false,
})
27 changes: 23 additions & 4 deletions packages/plugin-dates/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@leva-ui/plugin-dates",
"version": "0.10.1",
"main": "dist/leva-ui-plugin-dates.cjs.js",
"module": "dist/leva-ui-plugin-dates.esm.js",
"types": "dist/leva-ui-plugin-dates.cjs.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pmndrs/leva.git",
"directory": "packages/plugin-dates"
},
"bugs": "https://github.com/pmndrs/leva/issues",
"scripts": {
"dev": "tsdown --watch",
"build": "rm -rf dist && tsdown",
"clean": "rm -rf dist"
},
"peerDependencies": {
"@use-gesture/react": "catalog:",
"leva": ">=0.10.1",
Expand All @@ -23,6 +40,8 @@
"devDependencies": {
"@types/react-datepicker": "^7.0.0",
"@use-gesture/react": "catalog:",
"leva": "workspace:*"
"leva": "workspace:*",
"tsdown": "^0.16.0",
"typescript": "catalog:"
}
}
8 changes: 8 additions & 0 deletions packages/plugin-dates/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: false,
})
27 changes: 23 additions & 4 deletions packages/plugin-plot/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@leva-ui/plugin-plot",
"version": "0.10.0",
"main": "dist/leva-ui-plugin-plot.cjs.js",
"module": "dist/leva-ui-plugin-plot.esm.js",
"types": "dist/leva-ui-plugin-plot.cjs.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pmndrs/leva.git",
"directory": "packages/plugin-plot"
},
"bugs": "https://github.com/pmndrs/leva/issues",
"scripts": {
"dev": "tsdown --watch",
"build": "rm -rf dist && tsdown",
"clean": "rm -rf dist"
},
"peerDependencies": {
"@use-gesture/react": "catalog:",
"leva": ">=0.10.1",
Expand All @@ -22,6 +39,8 @@
},
"devDependencies": {
"@use-gesture/react": "catalog:",
"leva": "workspace:*"
"leva": "workspace:*",
"tsdown": "^0.16.0",
"typescript": "catalog:"
}
}
8 changes: 8 additions & 0 deletions packages/plugin-plot/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: false,
})
27 changes: 23 additions & 4 deletions packages/plugin-spring/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
{
"name": "@leva-ui/plugin-spring",
"version": "0.10.0",
"main": "dist/leva-ui-plugin-spring.cjs.js",
"module": "dist/leva-ui-plugin-spring.esm.js",
"types": "dist/leva-ui-plugin-spring.cjs.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pmndrs/leva.git",
"directory": "packages/plugin-spring"
},
"bugs": "https://github.com/pmndrs/leva/issues",
"scripts": {
"dev": "tsdown --watch",
"build": "rm -rf dist && tsdown",
"clean": "rm -rf dist"
},
"peerDependencies": {
"@use-gesture/react": "catalog:",
"leva": ">=0.10.1",
Expand All @@ -22,6 +39,8 @@
},
"devDependencies": {
"@use-gesture/react": "catalog:",
"leva": "workspace:*"
"leva": "workspace:*",
"tsdown": "^0.16.0",
"typescript": "catalog:"
}
}
8 changes: 8 additions & 0 deletions packages/plugin-spring/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: false,
})
Loading
Loading