diff --git a/package.json b/package.json index 37abc159..5a891173 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,10 @@ "effects", "fx" ], + "maintainers": [ + "Alvaro Saburido (https://github.com/alvarosabu/)", + "Tino Koch (https://github.com/Tinoooo)" + ], "exports": { "./three": { "types": "./dist/three.d.ts", @@ -27,7 +31,8 @@ "./pmndrs": { "types": "./dist/pmndrs.d.ts", "import": "./dist/pmndrs.js" - } + }, + "./*": "./*" }, "files": [ "*.d.ts", diff --git a/vite.config.ts b/vite.config.ts index b584fedd..10a24c16 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,6 +36,13 @@ export default defineConfig({ watch: { include: [resolve(__dirname, 'src')], }, + lib: { + entry: { + three: resolve(__dirname, 'src/core/three/index.ts'), + pmndrs: resolve(__dirname, 'src/core/pmndrs/index.ts'), + }, + formats: ['es'], + }, rollupOptions: { plugins: [ analyze(), @@ -46,10 +53,6 @@ export default defineConfig({ }), ], external: ['three', 'vue', '@tresjs/core', 'postprocessing', '@vueuse/core'], - input: { - three: resolve(__dirname, 'src/core/three/index.ts'), - pmndrs: resolve(__dirname, 'src/core/pmndrs/index.ts'), - }, output: { entryFileNames: '[name].js', exports: 'named',