Skip to content

Commit 03b03c4

Browse files
authored
fix: update package name, dependency versions & add dependencies (#13)
1 parent 24c3b22 commit 03b03c4

File tree

6 files changed

+1713
-19
lines changed

6 files changed

+1713
-19
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
[![bundle size][bundle-size-src]][bundle-size-href]
66
[![license][license-src]][license-href]
77

8-
This plugin generates type-safe GLTF file representations in TypeScript and optimizes the loading and bundling of
8+
This plugin generates type-safe glTF file representations in TypeScript and optimizes the loading and bundling of
99
models in web projects, while being bundler-agnostic (Vite, Rollup, Webpack, esbuild, Rspack, ...).
1010

1111
## project overview
1212

13-
This plugin scans all model files in the project source, deconstructs the GLTF JSON representation, and places
14-
generated type files next to them. It uses [three.js](https://github.com/mrdoob/three.js/) to parse the GLTF files,
13+
This plugin scans all model files in the project source, deconstructs the glTF JSON representation, and places
14+
generated type files next to them. It uses [three.js](https://github.com/mrdoob/three.js/) to parse the glTF files,
1515
including modifications like path resolutions etc.
1616

1717
With this plugin you get:
1818

19-
- ✅ Type safe GLTF file representations with correct inner [three.js](https://github.com/mrdoob/three.js/) types
19+
- ✅ Type safe glTF file representations with correct inner [three.js](https://github.com/mrdoob/three.js/) types
2020
like `Object3D`, `Mesh`, etc..
2121
- ✅ Building will fail if a model is missing due to type-safe workflow.
2222
- ✅ Only the used models are bundled in the final product, not all included in your dev project.

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "gltf-type-toolkit",
2+
"name": "@todde.tv/gltf-type-toolkit",
33
"type": "module",
44
"version": "1.0.0-rc.0",
55
"packageManager": "pnpm@9.15.4",
6-
"description": "This plugin generates type-safe GLTF file representations in TypeScript and optimizes the loading and bundling of models in web projects, while being bundler-agnostic (Vite, Rollup, Webpack, esbuild, Rspack, ...).",
6+
"description": "This plugin generates type-safe glTF file representations in TypeScript and optimizes the loading and bundling of models in web projects, while being bundler-agnostic (Vite, Rollup, Webpack, esbuild, Rspack, ...).",
77
"author": "Thorsten Seyschab <business@todde.tv> (https://todde.tv/)",
88
"contributors": [
99
{
@@ -39,7 +39,8 @@
3939
"rolldown",
4040
"vite",
4141
"esbuild",
42-
"rspack"
42+
"rspack",
43+
"unplugin"
4344
],
4445
"exports": {
4546
".": {
@@ -118,9 +119,11 @@
118119
"@farmfe/core": ">=1",
119120
"@nuxt/kit": "^3",
120121
"@nuxt/schema": "^3",
122+
"@rspack/core": "^1",
123+
"astro": "*",
121124
"esbuild": "*",
122125
"rollup": "^3 || ^4",
123-
"three": "^0.170.0",
126+
"three": ">=0.170.0",
124127
"vite": ">=3",
125128
"webpack": "^4 || ^5"
126129
},
@@ -134,6 +137,12 @@
134137
"@nuxt/schema": {
135138
"optional": true
136139
},
140+
"@rspack/core": {
141+
"optional": true
142+
},
143+
"astro": {
144+
"optional": true
145+
},
137146
"esbuild": {
138147
"optional": true
139148
},

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "gltf-type-toolkit-playground",
2+
"name": "@todde.tv/gltf-type-toolkit-playground",
33
"type": "module",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)